├── cbindings ├── qt6.pas ├── TODO ├── package │ ├── whatsnew │ ├── scripts │ │ ├── Legacy │ │ │ └── updateQt6-build.bash │ │ └── check4update.bash │ ├── copyright │ ├── libqt6pas-devel.spec │ └── libqt6pas6.spec ├── src │ ├── qlcltabwidget.h │ ├── qlclabstractspinbox.h │ ├── qlcltabwidget_c.cpp │ ├── qlcltabwidget_c.h │ ├── qframe_hook_c.h │ ├── qlayout_hook_c.h │ ├── qslider_hook_c.h │ ├── qlclabstractspinbox_c.cpp │ ├── qlistview_hook_c.h │ ├── qlclabstractspinbox_c.h │ ├── qscrollbar_hook_c.h │ ├── qstylefactory_c.h │ ├── qtableview_hook_c.h │ ├── qframe_hook_c.cpp │ ├── qpushbutton_hook_c.h │ ├── qlayout_hook_c.cpp │ ├── qslider_hook_c.cpp │ ├── qframe_hook.h │ ├── qlistview_hook_c.cpp │ ├── qlayout_hook.h │ ├── qscrollbar_hook_c.cpp │ ├── qtableview_hook_c.cpp │ ├── qtimer_hook_c.h │ ├── qpushbutton_hook_c.cpp │ ├── qslider_hook.h │ ├── qabstractscrollarea_hook_c.h │ ├── qtoolbox_hook_c.h │ ├── qmdiarea_hook_c.h │ ├── qwidget_hook_c.h │ ├── qabstractprintdialog_hook_c.h │ ├── qcheckbox_hook_c.h │ ├── qlistview_hook.h │ ├── qscrollbar_hook.h │ ├── qlcdnumber_hook_c.h │ ├── qpushbutton_hook.h │ ├── qtableview_hook.h │ ├── qstatusbar_hook_c.h │ ├── qtoolbutton_hook_c.h │ ├── qprintdialog_hook_c.h │ ├── qabstractscrollarea_hook.h │ ├── qapplication_hook_c.h │ ├── qprogressbar_hook_c.h │ ├── qabstractprintdialog_hook.h │ ├── qstylefactory_c.cpp │ ├── qdesktopservices_c.h │ ├── qabstractscrollarea_hook_c.cpp │ ├── qdrag_hook_c.h │ ├── qfontcombobox_hook_c.h │ ├── qsizegrip_c.h │ ├── qlclthread_c.h │ ├── qabstractprintdialog_hook_c.cpp │ ├── qlabel_hook_c.h │ ├── qprogressdialog_hook_c.h │ ├── qsocketnotifier_hook_c.h │ ├── qthread_hook_c.h │ ├── qtimer_hook_c.cpp │ ├── qmenubar_hook_c.h │ ├── qobject_hook_c.h │ ├── qabstractspinbox_hook_c.h │ ├── qtreeview_hook_c.h │ ├── qshortcut_hook_c.h │ ├── qprintpreviewdialog_hook_c.h │ ├── qtoolbox_hook_c.cpp │ ├── qtabwidget_hook_c.h │ ├── qcheckbox_hook_c.cpp │ ├── qlcdnumber_hook_c.cpp │ ├── qmdiarea_hook_c.cpp │ ├── qwidget_hook_c.cpp │ ├── qactiongroup_hook_c.h │ ├── qmainwindow_hook_c.h │ ├── qstatusbar_hook_c.cpp │ ├── qtoolbutton_hook_c.cpp │ ├── qwhatsthis_c.h │ ├── qdialog_hook_c.h │ ├── qprintdialog_hook_c.cpp │ ├── qscrollbar_c.h │ ├── qmdisubwindow_hook_c.h │ ├── qlclopenglwidget_c.h │ ├── qprogressbar_hook_c.cpp │ ├── qstackedlayout_hook_c.h │ ├── qstackedwidget_hook_c.h │ ├── qtabbar_hook_c.h │ ├── qsplitter_hook_c.h │ ├── qsystemtrayicon_hook_c.h │ ├── qapplication_hook_c.cpp │ ├── qgroupbox_hook_c.h │ ├── qradiobutton_c.h │ ├── qpixmapcache_c.h │ ├── qfontcombobox_hook_c.cpp │ ├── qprogressdialog_hook_c.cpp │ ├── qsocketnotifier_hook_c.cpp │ ├── qlclthread_c.cpp │ ├── qsizegrip_c.cpp │ ├── qsurface_c.h │ ├── qmenu_hook_c.h │ ├── qfilesystemwatcher_hook_c.h │ ├── qabstractspinbox_hook_c.cpp │ ├── qdrag_hook_c.cpp │ ├── qprintpreviewwidget_hook_c.h │ ├── qlabel_hook_c.cpp │ ├── qthread_hook_c.cpp │ ├── qprintpreviewdialog_hook_c.cpp │ ├── qlclabstractscrollarea_c.h │ ├── qmenubar_hook_c.cpp │ ├── qobject_hook_c.cpp │ ├── qstandarditemmodel_hook_c.h │ ├── qdesktopwidget_hook_c.h │ ├── qgraphicsscene_hook_c.h │ ├── qtreeview_hook_c.cpp │ ├── qcompleter_hook_c.h │ ├── qiodevice_hook_c.h │ ├── qshortcut_hook_c.cpp │ ├── qclipboard_hook_c.h │ ├── qlclthread.h │ ├── qlclmessageevent.h │ ├── qactiongroup_hook_c.cpp │ ├── qsocketnotifier_c.h │ ├── qtabwidget_hook_c.cpp │ ├── qaction_hook_c.h │ ├── qdesktopservices_c.cpp │ ├── qgesturerecognizer_c.h │ ├── qnativeeventfilter_hook_c.h │ ├── qmainwindow_hook_c.cpp │ ├── qlclopenglwidget_c.cpp │ ├── qtooltip_c.h │ ├── qmdisubwindow_hook_c.cpp │ ├── qstackedlayout_hook_c.cpp │ ├── qstackedwidget_hook_c.cpp │ ├── qsystemtrayicon_hook_c.cpp │ ├── qcalendarwidget_hook_c.h │ ├── qdialog_hook_c.cpp │ ├── qscrollbar_c.cpp │ ├── qtabbar_hook_c.cpp │ ├── qfiledialog_hook_c.h │ ├── qgroupbox_hook_c.cpp │ ├── qcheckbox_c.h │ ├── qfilesystemwatcher_hook_c.cpp │ ├── qdockwidget_hook_c.h │ ├── qsplitter_hook_c.cpp │ ├── qprintpreviewwidget_hook_c.cpp │ ├── qspinbox_hook_c.h │ ├── qabstractbutton_hook_c.h │ ├── qlclabstractscrollarea_c.cpp │ ├── qwhatsthis_c.cpp │ ├── qabstractitemdelegate_hook_c.h │ ├── qslider_c.h │ ├── qmenu_hook_c.cpp │ ├── qprintpreviewdialog_c.h │ ├── qrubberband_c.h │ ├── qradiobutton_c.cpp │ ├── qkeycombination_c.h │ ├── qitemselectionmodel_hook_c.h │ ├── qpagesetupdialog_c.h │ ├── qstandarditemmodel_hook_c.cpp │ ├── qbuttongroup_hook_c.h │ ├── qcoreapplication_hook_c.h │ ├── qdesktopwidget_hook_c.cpp │ ├── qsurface_c.cpp │ ├── qgraphicsscene_hook_c.cpp │ ├── qfontcombobox_c.h │ ├── qtextedit_hook_c.h │ ├── qtranslator_c.h │ ├── qlineedit_hook_c.h │ ├── qabstractslider_hook_c.h │ ├── qtimer_hook.h │ ├── qnativeeventfilter_hook_c.cpp │ ├── qabstractitemview_hook_c.h │ ├── qiodevice_hook_c.cpp │ ├── qpixmapcache_c.cpp │ ├── qcompleter_hook_c.cpp │ ├── qclipboard_hook_c.cpp │ ├── qlcdnumber_hook.h │ ├── qtextbrowser_hook_c.h │ ├── qbuffer_c.h │ ├── qsocketnotifier_c.cpp │ ├── qtoolbar_hook_c.h │ ├── qcombobox_hook_c.h │ ├── qprogressdialog_hook.h │ ├── qaction_hook_c.cpp │ ├── qbitmap_c.h │ ├── qaccessible_c.h │ └── qgesturerecognizer_c.cpp └── refresh.bash └── .gitignore /cbindings/qt6.pas: -------------------------------------------------------------------------------- 1 | {$I qtdefines.inc} 2 | {$i qt62.pas} 3 | -------------------------------------------------------------------------------- /cbindings/TODO: -------------------------------------------------------------------------------- 1 | *Qt-6 bindings based on LTS Qt-6.2.3 for Lazarus. 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | BUILD/ 2 | Makefile 3 | tmp/ 4 | *.deb 5 | *.rpm 6 | *.tar.gz 7 | libQt* 8 | 9 | -------------------------------------------------------------------------------- /cbindings/package/whatsnew: -------------------------------------------------------------------------------- 1 | Fixed wrong QFontMetricsF_forizontalAdvance() output (2024-11-15) 2 | Fixed bug in bindings (2024-11-21) 3 | -------------------------------------------------------------------------------- /cbindings/src/qlcltabwidget.h: -------------------------------------------------------------------------------- 1 | #ifndef QLCLTABWIDGET_H 2 | #define QLCLTABWIDGET_H 3 | 4 | #include 5 | 6 | 7 | class QLCLTabWidget : public QTabWidget 8 | { 9 | public: 10 | static QTabBar *tabBarHandle(QTabWidget *protectedhandle) 11 | { 12 | return reinterpret_cast(protectedhandle)->tabBar(); 13 | } 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /cbindings/src/qlclabstractspinbox.h: -------------------------------------------------------------------------------- 1 | #ifndef QLCLABSTRACTSPINBOX_H 2 | #define QLCLABSTRACTSPINBOX_H 3 | 4 | #include 5 | 6 | 7 | 8 | class QLCLAbstractSpinBox : public QAbstractSpinBox 9 | { 10 | public: 11 | static QLineEdit *lineEditHandle(QAbstractSpinBox *protectedhandle) 12 | { 13 | return reinterpret_cast(protectedhandle)->lineEdit(); 14 | } 15 | }; 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /cbindings/src/qlcltabwidget_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qlcltabwidget_c.h" 13 | 14 | QTabBarH QLCLTabWidget_tabBarHandle(QTabWidgetH protectedhandle) 15 | { 16 | return (QTabBarH) QLCLTabWidget::tabBarHandle((QTabWidget*)protectedhandle); 17 | } 18 | 19 | -------------------------------------------------------------------------------- /cbindings/package/scripts/Legacy/updateQt6-build.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | set -e 3 | 4 | # simple script to update the libQt6Pas files on the machine where the 5 | # actual library is built, in my case a Fedora 35 box. It needs to be one 6 | # where the version of Qt6 is 6.2 7 | # No license, use in any way you see fit, David Bannon, 2022-12-17 8 | 9 | if [ -e "master.zip" ]; then 10 | rm master.zip 11 | fi 12 | if [ -d "libqt6pas-master-old" ]; then 13 | rm -Rf libqt6pas-master-old 14 | fi 15 | ls -ltr 16 | # something strange here, mv does not obay -f as I expect. 17 | wget https://github.com/davidbannon/libqt6pas/archive/refs/heads/master.zip 18 | if [ -d "libqt6pas-master" ]; then 19 | mv libqt6pas-master libqt6pas-master-old 20 | fi 21 | unzip master.zip 22 | -------------------------------------------------------------------------------- /cbindings/src/qlcltabwidget_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLCLTABWIDGET_C_H 13 | #define QLCLTABWIDGET_C_H 14 | 15 | #include "qlcltabwidget.h" 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QTabBarH QLCLTabWidget_tabBarHandle(QTabWidgetH protectedhandle); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cbindings/src/qframe_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QFRAME_HOOK_C_H 13 | #define QFRAME_HOOK_C_H 14 | 15 | #include "qframe_hook.h" 16 | 17 | C_EXPORT QFrame_hookH QFrame_hook_Create(QObjectH handle); 18 | C_EXPORT void QFrame_hook_Destroy(QFrame_hookH handle); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cbindings/package/scripts/check4update.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | 3 | QTV=6 # or 5 or 6 4 | 5 | REMOTE_pro="https://gitlab.com/freepascal.org/lazarus/lazarus/-/raw/main/lcl/interfaces/qt""$QTV""/cbindings/Qt""$QTV""Pas.pro" 6 | REMOTEfile="Qt""$QTV""Pas.pro" 7 | LOCALfile="libQtPas_src/cbindings/Qt""$QTV""Pas.pro" 8 | 9 | 10 | # https://raw.githubusercontent.com/davidbannon/libqt6pas/master/cbindings/Qt6Pas.pro 11 | 12 | wget "$REMOTE_pro" 13 | REMOTEpat=`grep VER_PAT "$REMOTEfile"` 14 | LOCALpat=`grep VER_PAT "$LOCALfile"` 15 | if [ "$REMOTEpat" == "$LOCALpat" ]; then 16 | echo "all clear" 17 | exit 0 18 | else 19 | # this means we need to raise an issue 20 | echo "hmm, seems we have issues" 21 | echo "$REMOTEpat" >> result.text 22 | cat result.text 23 | exit 1 24 | fi 25 | -------------------------------------------------------------------------------- /cbindings/src/qlayout_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLAYOUT_HOOK_C_H 13 | #define QLAYOUT_HOOK_C_H 14 | 15 | #include "qlayout_hook.h" 16 | 17 | C_EXPORT QLayout_hookH QLayout_hook_Create(QObjectH handle); 18 | C_EXPORT void QLayout_hook_Destroy(QLayout_hookH handle); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cbindings/src/qslider_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSLIDER_HOOK_C_H 13 | #define QSLIDER_HOOK_C_H 14 | 15 | #include "qslider_hook.h" 16 | 17 | C_EXPORT QSlider_hookH QSlider_hook_Create(QObjectH handle); 18 | C_EXPORT void QSlider_hook_Destroy(QSlider_hookH handle); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cbindings/src/qlclabstractspinbox_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qlclabstractspinbox_c.h" 13 | 14 | QLineEditH QLCLAbstractSpinBox_lineEditHandle(QAbstractSpinBoxH protectedhandle) 15 | { 16 | return (QLineEditH) QLCLAbstractSpinBox::lineEditHandle((QAbstractSpinBox*)protectedhandle); 17 | } 18 | 19 | -------------------------------------------------------------------------------- /cbindings/src/qlistview_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLISTVIEW_HOOK_C_H 13 | #define QLISTVIEW_HOOK_C_H 14 | 15 | #include "qlistview_hook.h" 16 | 17 | C_EXPORT QListView_hookH QListView_hook_Create(QObjectH handle); 18 | C_EXPORT void QListView_hook_Destroy(QListView_hookH handle); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cbindings/src/qlclabstractspinbox_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLCLABSTRACTSPINBOX_C_H 13 | #define QLCLABSTRACTSPINBOX_C_H 14 | 15 | #include "qlclabstractspinbox.h" 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QLineEditH QLCLAbstractSpinBox_lineEditHandle(QAbstractSpinBoxH protectedhandle); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cbindings/src/qscrollbar_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSCROLLBAR_HOOK_C_H 13 | #define QSCROLLBAR_HOOK_C_H 14 | 15 | #include "qscrollbar_hook.h" 16 | 17 | C_EXPORT QScrollBar_hookH QScrollBar_hook_Create(QObjectH handle); 18 | C_EXPORT void QScrollBar_hook_Destroy(QScrollBar_hookH handle); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cbindings/src/qstylefactory_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSTYLEFACTORY_C_H 13 | #define QSTYLEFACTORY_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT void QStyleFactory_keys(QStringListH retval); 19 | C_EXPORT QStyleH QStyleFactory_create(PWideString AnonParam1); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qtableview_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTABLEVIEW_HOOK_C_H 13 | #define QTABLEVIEW_HOOK_C_H 14 | 15 | #include "qtableview_hook.h" 16 | 17 | C_EXPORT QTableView_hookH QTableView_hook_Create(QObjectH handle); 18 | C_EXPORT void QTableView_hook_Destroy(QTableView_hookH handle); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cbindings/src/qframe_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qframe_hook_c.h" 13 | 14 | QFrame_hookH QFrame_hook_Create(QObjectH handle) 15 | { 16 | return (QFrame_hookH) new QFrame_hook((QObject*)handle); 17 | } 18 | 19 | void QFrame_hook_Destroy(QFrame_hookH handle) 20 | { 21 | delete (QFrame_hook *)handle; 22 | } 23 | 24 | -------------------------------------------------------------------------------- /cbindings/src/qpushbutton_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QPUSHBUTTON_HOOK_C_H 13 | #define QPUSHBUTTON_HOOK_C_H 14 | 15 | #include "qpushbutton_hook.h" 16 | 17 | C_EXPORT QPushButton_hookH QPushButton_hook_Create(QObjectH handle); 18 | C_EXPORT void QPushButton_hook_Destroy(QPushButton_hookH handle); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cbindings/src/qlayout_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qlayout_hook_c.h" 13 | 14 | QLayout_hookH QLayout_hook_Create(QObjectH handle) 15 | { 16 | return (QLayout_hookH) new QLayout_hook((QObject*)handle); 17 | } 18 | 19 | void QLayout_hook_Destroy(QLayout_hookH handle) 20 | { 21 | delete (QLayout_hook *)handle; 22 | } 23 | 24 | -------------------------------------------------------------------------------- /cbindings/src/qslider_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qslider_hook_c.h" 13 | 14 | QSlider_hookH QSlider_hook_Create(QObjectH handle) 15 | { 16 | return (QSlider_hookH) new QSlider_hook((QObject*)handle); 17 | } 18 | 19 | void QSlider_hook_Destroy(QSlider_hookH handle) 20 | { 21 | delete (QSlider_hook *)handle; 22 | } 23 | 24 | -------------------------------------------------------------------------------- /cbindings/src/qframe_hook.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QFRAME_HOOK_H 13 | #define QFRAME_HOOK_H 14 | 15 | #include 16 | 17 | #include "qwidget_hook.h" 18 | 19 | class QFrame_hook : public QWidget_hook { 20 | Q_OBJECT 21 | public: 22 | QFrame_hook(QObject *handle) : QWidget_hook(handle) { 23 | } 24 | }; 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qlistview_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qlistview_hook_c.h" 13 | 14 | QListView_hookH QListView_hook_Create(QObjectH handle) 15 | { 16 | return (QListView_hookH) new QListView_hook((QObject*)handle); 17 | } 18 | 19 | void QListView_hook_Destroy(QListView_hookH handle) 20 | { 21 | delete (QListView_hook *)handle; 22 | } 23 | 24 | -------------------------------------------------------------------------------- /cbindings/src/qlayout_hook.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLAYOUT_HOOK_H 13 | #define QLAYOUT_HOOK_H 14 | 15 | #include 16 | 17 | #include "qobject_hook.h" 18 | 19 | class QLayout_hook : public QObject_hook { 20 | Q_OBJECT 21 | public: 22 | QLayout_hook(QObject *handle) : QObject_hook(handle) { 23 | } 24 | }; 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qscrollbar_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qscrollbar_hook_c.h" 13 | 14 | QScrollBar_hookH QScrollBar_hook_Create(QObjectH handle) 15 | { 16 | return (QScrollBar_hookH) new QScrollBar_hook((QObject*)handle); 17 | } 18 | 19 | void QScrollBar_hook_Destroy(QScrollBar_hookH handle) 20 | { 21 | delete (QScrollBar_hook *)handle; 22 | } 23 | 24 | -------------------------------------------------------------------------------- /cbindings/src/qtableview_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qtableview_hook_c.h" 13 | 14 | QTableView_hookH QTableView_hook_Create(QObjectH handle) 15 | { 16 | return (QTableView_hookH) new QTableView_hook((QObject*)handle); 17 | } 18 | 19 | void QTableView_hook_Destroy(QTableView_hookH handle) 20 | { 21 | delete (QTableView_hook *)handle; 22 | } 23 | 24 | -------------------------------------------------------------------------------- /cbindings/src/qtimer_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTIMER_HOOK_C_H 13 | #define QTIMER_HOOK_C_H 14 | 15 | #include "qtimer_hook.h" 16 | 17 | C_EXPORT QTimer_hookH QTimer_hook_Create(QObjectH handle); 18 | C_EXPORT void QTimer_hook_Destroy(QTimer_hookH handle); 19 | C_EXPORT void QTimer_hook_hook_timeout(QTimer_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qpushbutton_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qpushbutton_hook_c.h" 13 | 14 | QPushButton_hookH QPushButton_hook_Create(QObjectH handle) 15 | { 16 | return (QPushButton_hookH) new QPushButton_hook((QObject*)handle); 17 | } 18 | 19 | void QPushButton_hook_Destroy(QPushButton_hookH handle) 20 | { 21 | delete (QPushButton_hook *)handle; 22 | } 23 | 24 | -------------------------------------------------------------------------------- /cbindings/src/qslider_hook.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSLIDER_HOOK_H 13 | #define QSLIDER_HOOK_H 14 | 15 | #include 16 | 17 | #include "qabstractslider_hook.h" 18 | 19 | class QSlider_hook : public QAbstractSlider_hook { 20 | Q_OBJECT 21 | public: 22 | QSlider_hook(QObject *handle) : QAbstractSlider_hook(handle) { 23 | } 24 | }; 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qabstractscrollarea_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QABSTRACTSCROLLAREA_HOOK_C_H 13 | #define QABSTRACTSCROLLAREA_HOOK_C_H 14 | 15 | #include "qabstractscrollarea_hook.h" 16 | 17 | C_EXPORT QAbstractScrollArea_hookH QAbstractScrollArea_hook_Create(QObjectH handle); 18 | C_EXPORT void QAbstractScrollArea_hook_Destroy(QAbstractScrollArea_hookH handle); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cbindings/src/qtoolbox_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTOOLBOX_HOOK_C_H 13 | #define QTOOLBOX_HOOK_C_H 14 | 15 | #include "qtoolbox_hook.h" 16 | 17 | C_EXPORT QToolBox_hookH QToolBox_hook_Create(QObjectH handle); 18 | C_EXPORT void QToolBox_hook_Destroy(QToolBox_hookH handle); 19 | C_EXPORT void QToolBox_hook_hook_currentChanged(QToolBox_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qmdiarea_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QMDIAREA_HOOK_C_H 13 | #define QMDIAREA_HOOK_C_H 14 | 15 | #include "qmdiarea_hook.h" 16 | 17 | C_EXPORT QMdiArea_hookH QMdiArea_hook_Create(QObjectH handle); 18 | C_EXPORT void QMdiArea_hook_Destroy(QMdiArea_hookH handle); 19 | C_EXPORT void QMdiArea_hook_hook_subWindowActivated(QMdiArea_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qwidget_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QWIDGET_HOOK_C_H 13 | #define QWIDGET_HOOK_C_H 14 | 15 | #include "qwidget_hook.h" 16 | 17 | C_EXPORT QWidget_hookH QWidget_hook_Create(QObjectH handle); 18 | C_EXPORT void QWidget_hook_Destroy(QWidget_hookH handle); 19 | C_EXPORT void QWidget_hook_hook_customContextMenuRequested(QWidget_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qabstractprintdialog_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QABSTRACTPRINTDIALOG_HOOK_C_H 13 | #define QABSTRACTPRINTDIALOG_HOOK_C_H 14 | 15 | #include "qabstractprintdialog_hook.h" 16 | 17 | C_EXPORT QAbstractPrintDialog_hookH QAbstractPrintDialog_hook_Create(QObjectH handle); 18 | C_EXPORT void QAbstractPrintDialog_hook_Destroy(QAbstractPrintDialog_hookH handle); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cbindings/src/qcheckbox_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QCHECKBOX_HOOK_C_H 13 | #define QCHECKBOX_HOOK_C_H 14 | 15 | #include "qcheckbox_hook.h" 16 | 17 | C_EXPORT QCheckBox_hookH QCheckBox_hook_Create(QObjectH handle); 18 | C_EXPORT void QCheckBox_hook_Destroy(QCheckBox_hookH handle); 19 | C_EXPORT void QCheckBox_hook_hook_stateChanged(QCheckBox_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qlistview_hook.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLISTVIEW_HOOK_H 13 | #define QLISTVIEW_HOOK_H 14 | 15 | #include 16 | 17 | #include "qabstractitemview_hook.h" 18 | 19 | class QListView_hook : public QAbstractItemView_hook { 20 | Q_OBJECT 21 | public: 22 | QListView_hook(QObject *handle) : QAbstractItemView_hook(handle) { 23 | } 24 | }; 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qscrollbar_hook.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSCROLLBAR_HOOK_H 13 | #define QSCROLLBAR_HOOK_H 14 | 15 | #include 16 | 17 | #include "qabstractslider_hook.h" 18 | 19 | class QScrollBar_hook : public QAbstractSlider_hook { 20 | Q_OBJECT 21 | public: 22 | QScrollBar_hook(QObject *handle) : QAbstractSlider_hook(handle) { 23 | } 24 | }; 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qlcdnumber_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLCDNUMBER_HOOK_C_H 13 | #define QLCDNUMBER_HOOK_C_H 14 | 15 | #include "qlcdnumber_hook.h" 16 | 17 | C_EXPORT QLCDNumber_hookH QLCDNumber_hook_Create(QObjectH handle); 18 | C_EXPORT void QLCDNumber_hook_Destroy(QLCDNumber_hookH handle); 19 | C_EXPORT void QLCDNumber_hook_hook_overflow(QLCDNumber_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qpushbutton_hook.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QPUSHBUTTON_HOOK_H 13 | #define QPUSHBUTTON_HOOK_H 14 | 15 | #include 16 | 17 | #include "qabstractbutton_hook.h" 18 | 19 | class QPushButton_hook : public QAbstractButton_hook { 20 | Q_OBJECT 21 | public: 22 | QPushButton_hook(QObject *handle) : QAbstractButton_hook(handle) { 23 | } 24 | }; 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qtableview_hook.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTABLEVIEW_HOOK_H 13 | #define QTABLEVIEW_HOOK_H 14 | 15 | #include 16 | 17 | #include "qabstractitemview_hook.h" 18 | 19 | class QTableView_hook : public QAbstractItemView_hook { 20 | Q_OBJECT 21 | public: 22 | QTableView_hook(QObject *handle) : QAbstractItemView_hook(handle) { 23 | } 24 | }; 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qstatusbar_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSTATUSBAR_HOOK_C_H 13 | #define QSTATUSBAR_HOOK_C_H 14 | 15 | #include "qstatusbar_hook.h" 16 | 17 | C_EXPORT QStatusBar_hookH QStatusBar_hook_Create(QObjectH handle); 18 | C_EXPORT void QStatusBar_hook_Destroy(QStatusBar_hookH handle); 19 | C_EXPORT void QStatusBar_hook_hook_messageChanged(QStatusBar_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qtoolbutton_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTOOLBUTTON_HOOK_C_H 13 | #define QTOOLBUTTON_HOOK_C_H 14 | 15 | #include "qtoolbutton_hook.h" 16 | 17 | C_EXPORT QToolButton_hookH QToolButton_hook_Create(QObjectH handle); 18 | C_EXPORT void QToolButton_hook_Destroy(QToolButton_hookH handle); 19 | C_EXPORT void QToolButton_hook_hook_triggered(QToolButton_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qprintdialog_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QPRINTDIALOG_HOOK_C_H 13 | #define QPRINTDIALOG_HOOK_C_H 14 | 15 | #include "qprintdialog_hook.h" 16 | 17 | C_EXPORT QPrintDialog_hookH QPrintDialog_hook_Create(QObjectH handle); 18 | C_EXPORT void QPrintDialog_hook_Destroy(QPrintDialog_hookH handle); 19 | C_EXPORT void QPrintDialog_hook_hook_accepted(QPrintDialog_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qabstractscrollarea_hook.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QABSTRACTSCROLLAREA_HOOK_H 13 | #define QABSTRACTSCROLLAREA_HOOK_H 14 | 15 | #include 16 | 17 | #include "qframe_hook.h" 18 | 19 | class QAbstractScrollArea_hook : public QFrame_hook { 20 | Q_OBJECT 21 | public: 22 | QAbstractScrollArea_hook(QObject *handle) : QFrame_hook(handle) { 23 | } 24 | }; 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qapplication_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QAPPLICATION_HOOK_C_H 13 | #define QAPPLICATION_HOOK_C_H 14 | 15 | #include "qapplication_hook.h" 16 | 17 | C_EXPORT QApplication_hookH QApplication_hook_Create(QObjectH handle); 18 | C_EXPORT void QApplication_hook_Destroy(QApplication_hookH handle); 19 | C_EXPORT void QApplication_hook_hook_focusChanged(QApplication_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qprogressbar_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QPROGRESSBAR_HOOK_C_H 13 | #define QPROGRESSBAR_HOOK_C_H 14 | 15 | #include "qprogressbar_hook.h" 16 | 17 | C_EXPORT QProgressBar_hookH QProgressBar_hook_Create(QObjectH handle); 18 | C_EXPORT void QProgressBar_hook_Destroy(QProgressBar_hookH handle); 19 | C_EXPORT void QProgressBar_hook_hook_valueChanged(QProgressBar_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qabstractprintdialog_hook.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QABSTRACTPRINTDIALOG_HOOK_H 13 | #define QABSTRACTPRINTDIALOG_HOOK_H 14 | 15 | #include 16 | 17 | #include "qdialog_hook.h" 18 | 19 | class QAbstractPrintDialog_hook : public QDialog_hook { 20 | Q_OBJECT 21 | public: 22 | QAbstractPrintDialog_hook(QObject *handle) : QDialog_hook(handle) { 23 | } 24 | }; 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qstylefactory_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qstylefactory_c.h" 13 | 14 | void QStyleFactory_keys(QStringListH retval) 15 | { 16 | *(QStringList *)retval = QStyleFactory::keys(); 17 | } 18 | 19 | QStyleH QStyleFactory_create(PWideString AnonParam1) 20 | { 21 | QString t_AnonParam1; 22 | copyPWideStringToQString(AnonParam1, t_AnonParam1); 23 | return (QStyleH) QStyleFactory::create(t_AnonParam1); 24 | } 25 | 26 | -------------------------------------------------------------------------------- /cbindings/src/qdesktopservices_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QDESKTOPSERVICES_C_H 13 | #define QDESKTOPSERVICES_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT bool QDesktopServices_openUrl(const QUrlH url); 19 | C_EXPORT void QDesktopServices_setUrlHandler(PWideString scheme, QObjectH receiver, const char* method); 20 | C_EXPORT void QDesktopServices_unsetUrlHandler(PWideString scheme); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qabstractscrollarea_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qabstractscrollarea_hook_c.h" 13 | 14 | QAbstractScrollArea_hookH QAbstractScrollArea_hook_Create(QObjectH handle) 15 | { 16 | return (QAbstractScrollArea_hookH) new QAbstractScrollArea_hook((QObject*)handle); 17 | } 18 | 19 | void QAbstractScrollArea_hook_Destroy(QAbstractScrollArea_hookH handle) 20 | { 21 | delete (QAbstractScrollArea_hook *)handle; 22 | } 23 | 24 | -------------------------------------------------------------------------------- /cbindings/src/qdrag_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QDRAG_HOOK_C_H 13 | #define QDRAG_HOOK_C_H 14 | 15 | #include "qdrag_hook.h" 16 | 17 | C_EXPORT QDrag_hookH QDrag_hook_Create(QObjectH handle); 18 | C_EXPORT void QDrag_hook_Destroy(QDrag_hookH handle); 19 | C_EXPORT void QDrag_hook_hook_actionChanged(QDrag_hookH handle, QHookH hook); 20 | C_EXPORT void QDrag_hook_hook_targetChanged(QDrag_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qfontcombobox_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QFONTCOMBOBOX_HOOK_C_H 13 | #define QFONTCOMBOBOX_HOOK_C_H 14 | 15 | #include "qfontcombobox_hook.h" 16 | 17 | C_EXPORT QFontComboBox_hookH QFontComboBox_hook_Create(QObjectH handle); 18 | C_EXPORT void QFontComboBox_hook_Destroy(QFontComboBox_hookH handle); 19 | C_EXPORT void QFontComboBox_hook_hook_currentFontChanged(QFontComboBox_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qsizegrip_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSIZEGRIP_C_H 13 | #define QSIZEGRIP_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QSizeGripH QSizeGrip_Create(QWidgetH parent); 19 | C_EXPORT void QSizeGrip_Destroy(QSizeGripH handle); 20 | C_EXPORT void QSizeGrip_sizeHint(QSizeGripH handle, PSize retval); 21 | C_EXPORT void QSizeGrip_setVisible(QSizeGripH handle, bool AnonParam1); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /cbindings/src/qlclthread_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLCLTHREAD_C_H 13 | #define QLCLTHREAD_C_H 14 | 15 | #include "qlclthread.h" 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QLCLThreadH QLCLThread_Create(QObjectH parent); 19 | C_EXPORT void QLCLThread_Destroy(QLCLThreadH handle); 20 | C_EXPORT void QLCLThread_override_run(QLCLThreadH handle, const QOverrideHook hook); 21 | C_EXPORT int QLCLThread_exec(QLCLThreadH handle); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /cbindings/src/qabstractprintdialog_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qabstractprintdialog_hook_c.h" 13 | 14 | QAbstractPrintDialog_hookH QAbstractPrintDialog_hook_Create(QObjectH handle) 15 | { 16 | return (QAbstractPrintDialog_hookH) new QAbstractPrintDialog_hook((QObject*)handle); 17 | } 18 | 19 | void QAbstractPrintDialog_hook_Destroy(QAbstractPrintDialog_hookH handle) 20 | { 21 | delete (QAbstractPrintDialog_hook *)handle; 22 | } 23 | 24 | -------------------------------------------------------------------------------- /cbindings/src/qlabel_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLABEL_HOOK_C_H 13 | #define QLABEL_HOOK_C_H 14 | 15 | #include "qlabel_hook.h" 16 | 17 | C_EXPORT QLabel_hookH QLabel_hook_Create(QObjectH handle); 18 | C_EXPORT void QLabel_hook_Destroy(QLabel_hookH handle); 19 | C_EXPORT void QLabel_hook_hook_linkActivated(QLabel_hookH handle, QHookH hook); 20 | C_EXPORT void QLabel_hook_hook_linkHovered(QLabel_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qprogressdialog_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QPROGRESSDIALOG_HOOK_C_H 13 | #define QPROGRESSDIALOG_HOOK_C_H 14 | 15 | #include "qprogressdialog_hook.h" 16 | 17 | C_EXPORT QProgressDialog_hookH QProgressDialog_hook_Create(QObjectH handle); 18 | C_EXPORT void QProgressDialog_hook_Destroy(QProgressDialog_hookH handle); 19 | C_EXPORT void QProgressDialog_hook_hook_canceled(QProgressDialog_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qsocketnotifier_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSOCKETNOTIFIER_HOOK_C_H 13 | #define QSOCKETNOTIFIER_HOOK_C_H 14 | 15 | #include "qsocketnotifier_hook.h" 16 | 17 | C_EXPORT QSocketNotifier_hookH QSocketNotifier_hook_Create(QObjectH handle); 18 | C_EXPORT void QSocketNotifier_hook_Destroy(QSocketNotifier_hookH handle); 19 | C_EXPORT void QSocketNotifier_hook_hook_activated(QSocketNotifier_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qthread_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTHREAD_HOOK_C_H 13 | #define QTHREAD_HOOK_C_H 14 | 15 | #include "qthread_hook.h" 16 | 17 | C_EXPORT QThread_hookH QThread_hook_Create(QObjectH handle); 18 | C_EXPORT void QThread_hook_Destroy(QThread_hookH handle); 19 | C_EXPORT void QThread_hook_hook_started(QThread_hookH handle, QHookH hook); 20 | C_EXPORT void QThread_hook_hook_finished(QThread_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qtimer_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qtimer_hook_c.h" 13 | 14 | QTimer_hookH QTimer_hook_Create(QObjectH handle) 15 | { 16 | return (QTimer_hookH) new QTimer_hook((QObject*)handle); 17 | } 18 | 19 | void QTimer_hook_Destroy(QTimer_hookH handle) 20 | { 21 | delete (QTimer_hook *)handle; 22 | } 23 | 24 | void QTimer_hook_hook_timeout(QTimer_hookH handle, QHookH hook) 25 | { 26 | ((QTimer_hook *)handle)->hook_timeout(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qmenubar_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QMENUBAR_HOOK_C_H 13 | #define QMENUBAR_HOOK_C_H 14 | 15 | #include "qmenubar_hook.h" 16 | 17 | C_EXPORT QMenuBar_hookH QMenuBar_hook_Create(QObjectH handle); 18 | C_EXPORT void QMenuBar_hook_Destroy(QMenuBar_hookH handle); 19 | C_EXPORT void QMenuBar_hook_hook_triggered(QMenuBar_hookH handle, QHookH hook); 20 | C_EXPORT void QMenuBar_hook_hook_hovered(QMenuBar_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qobject_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2022 by Jan Van hijfte, Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QOBJECT_HOOK_C_H 13 | #define QOBJECT_HOOK_C_H 14 | 15 | #include "qobject_hook.h" 16 | 17 | C_EXPORT QObject_hookH QObject_hook_Create(QObjectH handle); 18 | C_EXPORT void QObject_hook_Destroy(QObject_hookH handle); 19 | C_EXPORT void QObject_hook_hook_events(QObject_hookH handle, QHookH hook); 20 | C_EXPORT void QObject_hook_hook_destroyed(QObject_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qabstractspinbox_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QABSTRACTSPINBOX_HOOK_C_H 13 | #define QABSTRACTSPINBOX_HOOK_C_H 14 | 15 | #include "qabstractspinbox_hook.h" 16 | 17 | C_EXPORT QAbstractSpinBox_hookH QAbstractSpinBox_hook_Create(QObjectH handle); 18 | C_EXPORT void QAbstractSpinBox_hook_Destroy(QAbstractSpinBox_hookH handle); 19 | C_EXPORT void QAbstractSpinBox_hook_hook_editingFinished(QAbstractSpinBox_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qtreeview_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTREEVIEW_HOOK_C_H 13 | #define QTREEVIEW_HOOK_C_H 14 | 15 | #include "qtreeview_hook.h" 16 | 17 | C_EXPORT QTreeView_hookH QTreeView_hook_Create(QObjectH handle); 18 | C_EXPORT void QTreeView_hook_Destroy(QTreeView_hookH handle); 19 | C_EXPORT void QTreeView_hook_hook_expanded(QTreeView_hookH handle, QHookH hook); 20 | C_EXPORT void QTreeView_hook_hook_collapsed(QTreeView_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qshortcut_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSHORTCUT_HOOK_C_H 13 | #define QSHORTCUT_HOOK_C_H 14 | 15 | #include "qshortcut_hook.h" 16 | 17 | C_EXPORT QShortcut_hookH QShortcut_hook_Create(QObjectH handle); 18 | C_EXPORT void QShortcut_hook_Destroy(QShortcut_hookH handle); 19 | C_EXPORT void QShortcut_hook_hook_activated(QShortcut_hookH handle, QHookH hook); 20 | C_EXPORT void QShortcut_hook_hook_activatedAmbiguously(QShortcut_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qprintpreviewdialog_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QPRINTPREVIEWDIALOG_HOOK_C_H 13 | #define QPRINTPREVIEWDIALOG_HOOK_C_H 14 | 15 | #include "qprintpreviewdialog_hook.h" 16 | 17 | C_EXPORT QPrintPreviewDialog_hookH QPrintPreviewDialog_hook_Create(QObjectH handle); 18 | C_EXPORT void QPrintPreviewDialog_hook_Destroy(QPrintPreviewDialog_hookH handle); 19 | C_EXPORT void QPrintPreviewDialog_hook_hook_paintRequested(QPrintPreviewDialog_hookH handle, QHookH hook); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cbindings/src/qtoolbox_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qtoolbox_hook_c.h" 13 | 14 | QToolBox_hookH QToolBox_hook_Create(QObjectH handle) 15 | { 16 | return (QToolBox_hookH) new QToolBox_hook((QObject*)handle); 17 | } 18 | 19 | void QToolBox_hook_Destroy(QToolBox_hookH handle) 20 | { 21 | delete (QToolBox_hook *)handle; 22 | } 23 | 24 | void QToolBox_hook_hook_currentChanged(QToolBox_hookH handle, QHookH hook) 25 | { 26 | ((QToolBox_hook *)handle)->hook_currentChanged(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qtabwidget_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTABWIDGET_HOOK_C_H 13 | #define QTABWIDGET_HOOK_C_H 14 | 15 | #include "qtabwidget_hook.h" 16 | 17 | C_EXPORT QTabWidget_hookH QTabWidget_hook_Create(QObjectH handle); 18 | C_EXPORT void QTabWidget_hook_Destroy(QTabWidget_hookH handle); 19 | C_EXPORT void QTabWidget_hook_hook_currentChanged(QTabWidget_hookH handle, QHookH hook); 20 | C_EXPORT void QTabWidget_hook_hook_tabCloseRequested(QTabWidget_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qcheckbox_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qcheckbox_hook_c.h" 13 | 14 | QCheckBox_hookH QCheckBox_hook_Create(QObjectH handle) 15 | { 16 | return (QCheckBox_hookH) new QCheckBox_hook((QObject*)handle); 17 | } 18 | 19 | void QCheckBox_hook_Destroy(QCheckBox_hookH handle) 20 | { 21 | delete (QCheckBox_hook *)handle; 22 | } 23 | 24 | void QCheckBox_hook_hook_stateChanged(QCheckBox_hookH handle, QHookH hook) 25 | { 26 | ((QCheckBox_hook *)handle)->hook_stateChanged(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qlcdnumber_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qlcdnumber_hook_c.h" 13 | 14 | QLCDNumber_hookH QLCDNumber_hook_Create(QObjectH handle) 15 | { 16 | return (QLCDNumber_hookH) new QLCDNumber_hook((QObject*)handle); 17 | } 18 | 19 | void QLCDNumber_hook_Destroy(QLCDNumber_hookH handle) 20 | { 21 | delete (QLCDNumber_hook *)handle; 22 | } 23 | 24 | void QLCDNumber_hook_hook_overflow(QLCDNumber_hookH handle, QHookH hook) 25 | { 26 | ((QLCDNumber_hook *)handle)->hook_overflow(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qmdiarea_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qmdiarea_hook_c.h" 13 | 14 | QMdiArea_hookH QMdiArea_hook_Create(QObjectH handle) 15 | { 16 | return (QMdiArea_hookH) new QMdiArea_hook((QObject*)handle); 17 | } 18 | 19 | void QMdiArea_hook_Destroy(QMdiArea_hookH handle) 20 | { 21 | delete (QMdiArea_hook *)handle; 22 | } 23 | 24 | void QMdiArea_hook_hook_subWindowActivated(QMdiArea_hookH handle, QHookH hook) 25 | { 26 | ((QMdiArea_hook *)handle)->hook_subWindowActivated(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qwidget_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qwidget_hook_c.h" 13 | 14 | QWidget_hookH QWidget_hook_Create(QObjectH handle) 15 | { 16 | return (QWidget_hookH) new QWidget_hook((QObject*)handle); 17 | } 18 | 19 | void QWidget_hook_Destroy(QWidget_hookH handle) 20 | { 21 | delete (QWidget_hook *)handle; 22 | } 23 | 24 | void QWidget_hook_hook_customContextMenuRequested(QWidget_hookH handle, QHookH hook) 25 | { 26 | ((QWidget_hook *)handle)->hook_customContextMenuRequested(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qactiongroup_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QACTIONGROUP_HOOK_C_H 13 | #define QACTIONGROUP_HOOK_C_H 14 | 15 | #include "qactiongroup_hook.h" 16 | 17 | C_EXPORT QActionGroup_hookH QActionGroup_hook_Create(QObjectH handle); 18 | C_EXPORT void QActionGroup_hook_Destroy(QActionGroup_hookH handle); 19 | C_EXPORT void QActionGroup_hook_hook_triggered(QActionGroup_hookH handle, QHookH hook); 20 | C_EXPORT void QActionGroup_hook_hook_hovered(QActionGroup_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qmainwindow_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QMAINWINDOW_HOOK_C_H 13 | #define QMAINWINDOW_HOOK_C_H 14 | 15 | #include "qmainwindow_hook.h" 16 | 17 | C_EXPORT QMainWindow_hookH QMainWindow_hook_Create(QObjectH handle); 18 | C_EXPORT void QMainWindow_hook_Destroy(QMainWindow_hookH handle); 19 | C_EXPORT void QMainWindow_hook_hook_iconSizeChanged(QMainWindow_hookH handle, QHookH hook); 20 | C_EXPORT void QMainWindow_hook_hook_toolButtonStyleChanged(QMainWindow_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qstatusbar_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qstatusbar_hook_c.h" 13 | 14 | QStatusBar_hookH QStatusBar_hook_Create(QObjectH handle) 15 | { 16 | return (QStatusBar_hookH) new QStatusBar_hook((QObject*)handle); 17 | } 18 | 19 | void QStatusBar_hook_Destroy(QStatusBar_hookH handle) 20 | { 21 | delete (QStatusBar_hook *)handle; 22 | } 23 | 24 | void QStatusBar_hook_hook_messageChanged(QStatusBar_hookH handle, QHookH hook) 25 | { 26 | ((QStatusBar_hook *)handle)->hook_messageChanged(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qtoolbutton_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qtoolbutton_hook_c.h" 13 | 14 | QToolButton_hookH QToolButton_hook_Create(QObjectH handle) 15 | { 16 | return (QToolButton_hookH) new QToolButton_hook((QObject*)handle); 17 | } 18 | 19 | void QToolButton_hook_Destroy(QToolButton_hookH handle) 20 | { 21 | delete (QToolButton_hook *)handle; 22 | } 23 | 24 | void QToolButton_hook_hook_triggered(QToolButton_hookH handle, QHookH hook) 25 | { 26 | ((QToolButton_hook *)handle)->hook_triggered(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qwhatsthis_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QWHATSTHIS_C_H 13 | #define QWHATSTHIS_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT void QWhatsThis_enterWhatsThisMode(); 19 | C_EXPORT bool QWhatsThis_inWhatsThisMode(); 20 | C_EXPORT void QWhatsThis_leaveWhatsThisMode(); 21 | C_EXPORT void QWhatsThis_showText(const QPointH pos, PWideString text, QWidgetH w); 22 | C_EXPORT void QWhatsThis_hideText(); 23 | C_EXPORT QActionH QWhatsThis_createAction(QObjectH parent); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /cbindings/src/qdialog_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QDIALOG_HOOK_C_H 13 | #define QDIALOG_HOOK_C_H 14 | 15 | #include "qdialog_hook.h" 16 | 17 | C_EXPORT QDialog_hookH QDialog_hook_Create(QObjectH handle); 18 | C_EXPORT void QDialog_hook_Destroy(QDialog_hookH handle); 19 | C_EXPORT void QDialog_hook_hook_finished(QDialog_hookH handle, QHookH hook); 20 | C_EXPORT void QDialog_hook_hook_accepted(QDialog_hookH handle, QHookH hook); 21 | C_EXPORT void QDialog_hook_hook_rejected(QDialog_hookH handle, QHookH hook); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /cbindings/src/qprintdialog_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qprintdialog_hook_c.h" 13 | 14 | QPrintDialog_hookH QPrintDialog_hook_Create(QObjectH handle) 15 | { 16 | return (QPrintDialog_hookH) new QPrintDialog_hook((QObject*)handle); 17 | } 18 | 19 | void QPrintDialog_hook_Destroy(QPrintDialog_hookH handle) 20 | { 21 | delete (QPrintDialog_hook *)handle; 22 | } 23 | 24 | void QPrintDialog_hook_hook_accepted(QPrintDialog_hookH handle, QHookH hook) 25 | { 26 | ((QPrintDialog_hook *)handle)->hook_accepted(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qscrollbar_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSCROLLBAR_C_H 13 | #define QSCROLLBAR_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QScrollBarH QScrollBar_Create(QWidgetH parent); 19 | C_EXPORT void QScrollBar_Destroy(QScrollBarH handle); 20 | C_EXPORT QScrollBarH QScrollBar_Create2(Qt::Orientation AnonParam1, QWidgetH parent); 21 | C_EXPORT void QScrollBar_sizeHint(QScrollBarH handle, PSize retval); 22 | C_EXPORT bool QScrollBar_event(QScrollBarH handle, QEventH event); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /cbindings/src/qmdisubwindow_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QMDISUBWINDOW_HOOK_C_H 13 | #define QMDISUBWINDOW_HOOK_C_H 14 | 15 | #include "qmdisubwindow_hook.h" 16 | 17 | C_EXPORT QMdiSubWindow_hookH QMdiSubWindow_hook_Create(QObjectH handle); 18 | C_EXPORT void QMdiSubWindow_hook_Destroy(QMdiSubWindow_hookH handle); 19 | C_EXPORT void QMdiSubWindow_hook_hook_windowStateChanged(QMdiSubWindow_hookH handle, QHookH hook); 20 | C_EXPORT void QMdiSubWindow_hook_hook_aboutToActivate(QMdiSubWindow_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qlclopenglwidget_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2020 by Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLCLOPENGLWIDGET_C_H 13 | #define QLCLOPENGLWIDGET_C_H 14 | 15 | #include "qlclopenglwidget.h" 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QLCLOpenGLWidgetH QLCLOpenGLWidget_Create(QWidgetH parent, unsigned int f); 19 | C_EXPORT void QLCLOpenGLWidget_Destroy(QLCLOpenGLWidgetH handle); 20 | C_EXPORT void QLCLOpenGLWidget_override_paintGL(QLCLOpenGLWidgetH handle, const QOverrideHook hook); 21 | C_EXPORT void QLCLOpenGLWidget_InheritedPaintGL(QLCLOpenGLWidgetH handle); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /cbindings/src/qprogressbar_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qprogressbar_hook_c.h" 13 | 14 | QProgressBar_hookH QProgressBar_hook_Create(QObjectH handle) 15 | { 16 | return (QProgressBar_hookH) new QProgressBar_hook((QObject*)handle); 17 | } 18 | 19 | void QProgressBar_hook_Destroy(QProgressBar_hookH handle) 20 | { 21 | delete (QProgressBar_hook *)handle; 22 | } 23 | 24 | void QProgressBar_hook_hook_valueChanged(QProgressBar_hookH handle, QHookH hook) 25 | { 26 | ((QProgressBar_hook *)handle)->hook_valueChanged(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qstackedlayout_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSTACKEDLAYOUT_HOOK_C_H 13 | #define QSTACKEDLAYOUT_HOOK_C_H 14 | 15 | #include "qstackedlayout_hook.h" 16 | 17 | C_EXPORT QStackedLayout_hookH QStackedLayout_hook_Create(QObjectH handle); 18 | C_EXPORT void QStackedLayout_hook_Destroy(QStackedLayout_hookH handle); 19 | C_EXPORT void QStackedLayout_hook_hook_widgetRemoved(QStackedLayout_hookH handle, QHookH hook); 20 | C_EXPORT void QStackedLayout_hook_hook_currentChanged(QStackedLayout_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qstackedwidget_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSTACKEDWIDGET_HOOK_C_H 13 | #define QSTACKEDWIDGET_HOOK_C_H 14 | 15 | #include "qstackedwidget_hook.h" 16 | 17 | C_EXPORT QStackedWidget_hookH QStackedWidget_hook_Create(QObjectH handle); 18 | C_EXPORT void QStackedWidget_hook_Destroy(QStackedWidget_hookH handle); 19 | C_EXPORT void QStackedWidget_hook_hook_currentChanged(QStackedWidget_hookH handle, QHookH hook); 20 | C_EXPORT void QStackedWidget_hook_hook_widgetRemoved(QStackedWidget_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qtabbar_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTABBAR_HOOK_C_H 13 | #define QTABBAR_HOOK_C_H 14 | 15 | #include "qtabbar_hook.h" 16 | 17 | C_EXPORT QTabBar_hookH QTabBar_hook_Create(QObjectH handle); 18 | C_EXPORT void QTabBar_hook_Destroy(QTabBar_hookH handle); 19 | C_EXPORT void QTabBar_hook_hook_currentChanged(QTabBar_hookH handle, QHookH hook); 20 | C_EXPORT void QTabBar_hook_hook_tabCloseRequested(QTabBar_hookH handle, QHookH hook); 21 | C_EXPORT void QTabBar_hook_hook_tabMoved(QTabBar_hookH handle, QHookH hook); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /cbindings/src/qsplitter_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSPLITTER_HOOK_C_H 13 | #define QSPLITTER_HOOK_C_H 14 | 15 | #include "qsplitter_hook.h" 16 | 17 | C_EXPORT QSplitter_hookH QSplitter_hook_Create(QObjectH handle); 18 | C_EXPORT void QSplitter_hook_Destroy(QSplitter_hookH handle); 19 | C_EXPORT void QSplitter_hook_hook_splitterMoved(QSplitter_hookH handle, QHookH hook); 20 | C_EXPORT QSplitterHandle_hookH QSplitterHandle_hook_Create(QObjectH handle); 21 | C_EXPORT void QSplitterHandle_hook_Destroy(QSplitterHandle_hookH handle); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /cbindings/src/qsystemtrayicon_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSYSTEMTRAYICON_HOOK_C_H 13 | #define QSYSTEMTRAYICON_HOOK_C_H 14 | 15 | #include "qsystemtrayicon_hook.h" 16 | 17 | C_EXPORT QSystemTrayIcon_hookH QSystemTrayIcon_hook_Create(QObjectH handle); 18 | C_EXPORT void QSystemTrayIcon_hook_Destroy(QSystemTrayIcon_hookH handle); 19 | C_EXPORT void QSystemTrayIcon_hook_hook_activated(QSystemTrayIcon_hookH handle, QHookH hook); 20 | C_EXPORT void QSystemTrayIcon_hook_hook_messageClicked(QSystemTrayIcon_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qapplication_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2022 by Jan Van hijfte, Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qapplication_hook_c.h" 13 | 14 | QApplication_hookH QApplication_hook_Create(QObjectH handle) 15 | { 16 | return (QApplication_hookH) new QApplication_hook((QObject*)handle); 17 | } 18 | 19 | void QApplication_hook_Destroy(QApplication_hookH handle) 20 | { 21 | delete (QApplication_hook *)handle; 22 | } 23 | 24 | void QApplication_hook_hook_focusChanged(QApplication_hookH handle, QHookH hook) 25 | { 26 | ((QApplication_hook *)handle)->hook_focusChanged(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qgroupbox_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QGROUPBOX_HOOK_C_H 13 | #define QGROUPBOX_HOOK_C_H 14 | 15 | #include "qgroupbox_hook.h" 16 | 17 | C_EXPORT QGroupBox_hookH QGroupBox_hook_Create(QObjectH handle); 18 | C_EXPORT void QGroupBox_hook_Destroy(QGroupBox_hookH handle); 19 | C_EXPORT void QGroupBox_hook_hook_clicked(QGroupBox_hookH handle, QHookH hook); 20 | C_EXPORT void QGroupBox_hook_hook_clicked2(QGroupBox_hookH handle, QHookH hook); 21 | C_EXPORT void QGroupBox_hook_hook_toggled(QGroupBox_hookH handle, QHookH hook); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /cbindings/src/qradiobutton_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QRADIOBUTTON_C_H 13 | #define QRADIOBUTTON_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QRadioButtonH QRadioButton_Create(QWidgetH parent); 19 | C_EXPORT void QRadioButton_Destroy(QRadioButtonH handle); 20 | C_EXPORT QRadioButtonH QRadioButton_Create2(PWideString text, QWidgetH parent); 21 | C_EXPORT void QRadioButton_sizeHint(QRadioButtonH handle, PSize retval); 22 | C_EXPORT void QRadioButton_minimumSizeHint(QRadioButtonH handle, PSize retval); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /cbindings/src/qpixmapcache_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2014-2022 by Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QPIXMAPCACHE_C_H 13 | #define QPIXMAPCACHE_C_H 14 | 15 | #include 16 | #include 17 | #include "pascalbind.h" 18 | 19 | C_EXPORT void QPixmapCache_clear(); 20 | C_EXPORT int QPixmapCache_cacheLimit(); 21 | C_EXPORT void QPixmapCache_setCacheLimit(int limit); 22 | C_EXPORT bool QPixmapCache_find(const PWideString key, QPixmapH retval); 23 | C_EXPORT bool QPixmapCache_insert(const PWideString key, QPixmapH pixmap); 24 | C_EXPORT void QPixmapCache_remove(const PWideString key); 25 | #endif 26 | -------------------------------------------------------------------------------- /cbindings/src/qfontcombobox_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qfontcombobox_hook_c.h" 13 | 14 | QFontComboBox_hookH QFontComboBox_hook_Create(QObjectH handle) 15 | { 16 | return (QFontComboBox_hookH) new QFontComboBox_hook((QObject*)handle); 17 | } 18 | 19 | void QFontComboBox_hook_Destroy(QFontComboBox_hookH handle) 20 | { 21 | delete (QFontComboBox_hook *)handle; 22 | } 23 | 24 | void QFontComboBox_hook_hook_currentFontChanged(QFontComboBox_hookH handle, QHookH hook) 25 | { 26 | ((QFontComboBox_hook *)handle)->hook_currentFontChanged(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qprogressdialog_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qprogressdialog_hook_c.h" 13 | 14 | QProgressDialog_hookH QProgressDialog_hook_Create(QObjectH handle) 15 | { 16 | return (QProgressDialog_hookH) new QProgressDialog_hook((QObject*)handle); 17 | } 18 | 19 | void QProgressDialog_hook_Destroy(QProgressDialog_hookH handle) 20 | { 21 | delete (QProgressDialog_hook *)handle; 22 | } 23 | 24 | void QProgressDialog_hook_hook_canceled(QProgressDialog_hookH handle, QHookH hook) 25 | { 26 | ((QProgressDialog_hook *)handle)->hook_canceled(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qsocketnotifier_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qsocketnotifier_hook_c.h" 13 | 14 | QSocketNotifier_hookH QSocketNotifier_hook_Create(QObjectH handle) 15 | { 16 | return (QSocketNotifier_hookH) new QSocketNotifier_hook((QObject*)handle); 17 | } 18 | 19 | void QSocketNotifier_hook_Destroy(QSocketNotifier_hookH handle) 20 | { 21 | delete (QSocketNotifier_hook *)handle; 22 | } 23 | 24 | void QSocketNotifier_hook_hook_activated(QSocketNotifier_hookH handle, QHookH hook) 25 | { 26 | ((QSocketNotifier_hook *)handle)->hook_activated(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qlclthread_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qlclthread_c.h" 13 | 14 | QLCLThreadH QLCLThread_Create(QObjectH parent) 15 | { 16 | return (QLCLThreadH) new QLCLThread((QObject*)parent); 17 | } 18 | 19 | void QLCLThread_Destroy(QLCLThreadH handle) 20 | { 21 | delete (QLCLThread *)handle; 22 | } 23 | 24 | void QLCLThread_override_run(QLCLThreadH handle, const QOverrideHook hook) 25 | { 26 | ((QLCLThread *)handle)->override_run(hook); 27 | } 28 | 29 | int QLCLThread_exec(QLCLThreadH handle) 30 | { 31 | return (int) ((QLCLThread *)handle)->exec(); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qsizegrip_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qsizegrip_c.h" 13 | 14 | QSizeGripH QSizeGrip_Create(QWidgetH parent) 15 | { 16 | return (QSizeGripH) new QSizeGrip((QWidget*)parent); 17 | } 18 | 19 | void QSizeGrip_Destroy(QSizeGripH handle) 20 | { 21 | delete (QSizeGrip *)handle; 22 | } 23 | 24 | void QSizeGrip_sizeHint(QSizeGripH handle, PSize retval) 25 | { 26 | *(QSize *)retval = ((QSizeGrip *)handle)->sizeHint(); 27 | } 28 | 29 | void QSizeGrip_setVisible(QSizeGripH handle, bool AnonParam1) 30 | { 31 | ((QSizeGrip *)handle)->setVisible(AnonParam1); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qsurface_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2017-2022 by Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSURFACE_C_H 13 | #define QSURFACE_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT void QSurface_Destroy(QSurfaceH handle); 19 | C_EXPORT void QSurface_size(QSurfaceH handle, PSize retval); 20 | C_EXPORT bool QSurface_supportsOpenGL(QSurfaceH handle); 21 | C_EXPORT QSurface::SurfaceClass QSurface_surfaceClass(QSurfaceH handle); 22 | C_EXPORT QSurface::SurfaceType QSurface_surfaceType(QSurfaceH handle); 23 | C_EXPORT void QSurface_format(QSurfaceH handle, QSurfaceFormatH areturn); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /cbindings/package/copyright: -------------------------------------------------------------------------------- 1 | 2 | This is the file COPYING.TXT, it applies to the Free Pascal Qt6 Binding. 3 | 4 | Copyright (c) 2005-2022 by Jan Van hijfte, Željan Rikalo 5 | 6 | The source code of the Free Pascal Qt6 binding is 7 | distributed under the GNU Lesser General Public License 8 | /usr/share/common-licenses/LGPL-2 9 | 10 | As a special exception, the copyright holders of this library give you 11 | permission to link this library with independent modules to produce an 12 | executable, regardless of the license terms of these independent modules, 13 | and to copy and distribute the resulting executable under terms of your choice, 14 | provided that you also meet, for each linked independent module, the terms 15 | and conditions of the license of that module. An independent module is a module 16 | which is not derived from or based on this library. If you modify this 17 | library, you may extend this exception to your version of the library, but you are 18 | not obligated to do so. If you do not wish to do so, delete this exception 19 | statement from your version. 20 | 21 | 22 | -------------------------------------------------------------------------------- /cbindings/src/qmenu_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QMENU_HOOK_C_H 13 | #define QMENU_HOOK_C_H 14 | 15 | #include "qmenu_hook.h" 16 | 17 | C_EXPORT QMenu_hookH QMenu_hook_Create(QObjectH handle); 18 | C_EXPORT void QMenu_hook_Destroy(QMenu_hookH handle); 19 | C_EXPORT void QMenu_hook_hook_aboutToShow(QMenu_hookH handle, QHookH hook); 20 | C_EXPORT void QMenu_hook_hook_aboutToHide(QMenu_hookH handle, QHookH hook); 21 | C_EXPORT void QMenu_hook_hook_triggered(QMenu_hookH handle, QHookH hook); 22 | C_EXPORT void QMenu_hook_hook_hovered(QMenu_hookH handle, QHookH hook); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /cbindings/src/qfilesystemwatcher_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QFILESYSTEMWATCHER_HOOK_C_H 13 | #define QFILESYSTEMWATCHER_HOOK_C_H 14 | 15 | #include "qfilesystemwatcher_hook.h" 16 | 17 | C_EXPORT QFileSystemWatcher_hookH QFileSystemWatcher_hook_Create(QObjectH handle); 18 | C_EXPORT void QFileSystemWatcher_hook_Destroy(QFileSystemWatcher_hookH handle); 19 | C_EXPORT void QFileSystemWatcher_hook_hook_fileChanged(QFileSystemWatcher_hookH handle, QHookH hook); 20 | C_EXPORT void QFileSystemWatcher_hook_hook_directoryChanged(QFileSystemWatcher_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qabstractspinbox_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qabstractspinbox_hook_c.h" 13 | 14 | QAbstractSpinBox_hookH QAbstractSpinBox_hook_Create(QObjectH handle) 15 | { 16 | return (QAbstractSpinBox_hookH) new QAbstractSpinBox_hook((QObject*)handle); 17 | } 18 | 19 | void QAbstractSpinBox_hook_Destroy(QAbstractSpinBox_hookH handle) 20 | { 21 | delete (QAbstractSpinBox_hook *)handle; 22 | } 23 | 24 | void QAbstractSpinBox_hook_hook_editingFinished(QAbstractSpinBox_hookH handle, QHookH hook) 25 | { 26 | ((QAbstractSpinBox_hook *)handle)->hook_editingFinished(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qdrag_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qdrag_hook_c.h" 13 | 14 | QDrag_hookH QDrag_hook_Create(QObjectH handle) 15 | { 16 | return (QDrag_hookH) new QDrag_hook((QObject*)handle); 17 | } 18 | 19 | void QDrag_hook_Destroy(QDrag_hookH handle) 20 | { 21 | delete (QDrag_hook *)handle; 22 | } 23 | 24 | void QDrag_hook_hook_actionChanged(QDrag_hookH handle, QHookH hook) 25 | { 26 | ((QDrag_hook *)handle)->hook_actionChanged(hook); 27 | } 28 | 29 | void QDrag_hook_hook_targetChanged(QDrag_hookH handle, QHookH hook) 30 | { 31 | ((QDrag_hook *)handle)->hook_targetChanged(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qprintpreviewwidget_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QPRINTPREVIEWWIDGET_HOOK_C_H 13 | #define QPRINTPREVIEWWIDGET_HOOK_C_H 14 | 15 | #include "qprintpreviewwidget_hook.h" 16 | 17 | C_EXPORT QPrintPreviewWidget_hookH QPrintPreviewWidget_hook_Create(QObjectH handle); 18 | C_EXPORT void QPrintPreviewWidget_hook_Destroy(QPrintPreviewWidget_hookH handle); 19 | C_EXPORT void QPrintPreviewWidget_hook_hook_paintRequested(QPrintPreviewWidget_hookH handle, QHookH hook); 20 | C_EXPORT void QPrintPreviewWidget_hook_hook_previewChanged(QPrintPreviewWidget_hookH handle, QHookH hook); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /cbindings/src/qlabel_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qlabel_hook_c.h" 13 | 14 | QLabel_hookH QLabel_hook_Create(QObjectH handle) 15 | { 16 | return (QLabel_hookH) new QLabel_hook((QObject*)handle); 17 | } 18 | 19 | void QLabel_hook_Destroy(QLabel_hookH handle) 20 | { 21 | delete (QLabel_hook *)handle; 22 | } 23 | 24 | void QLabel_hook_hook_linkActivated(QLabel_hookH handle, QHookH hook) 25 | { 26 | ((QLabel_hook *)handle)->hook_linkActivated(hook); 27 | } 28 | 29 | void QLabel_hook_hook_linkHovered(QLabel_hookH handle, QHookH hook) 30 | { 31 | ((QLabel_hook *)handle)->hook_linkHovered(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qthread_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qthread_hook_c.h" 13 | 14 | QThread_hookH QThread_hook_Create(QObjectH handle) 15 | { 16 | return (QThread_hookH) new QThread_hook((QObject*)handle); 17 | } 18 | 19 | void QThread_hook_Destroy(QThread_hookH handle) 20 | { 21 | delete (QThread_hook *)handle; 22 | } 23 | 24 | void QThread_hook_hook_started(QThread_hookH handle, QHookH hook) 25 | { 26 | ((QThread_hook *)handle)->hook_started(hook); 27 | } 28 | 29 | void QThread_hook_hook_finished(QThread_hookH handle, QHookH hook) 30 | { 31 | ((QThread_hook *)handle)->hook_finished(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qprintpreviewdialog_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qprintpreviewdialog_hook_c.h" 13 | 14 | QPrintPreviewDialog_hookH QPrintPreviewDialog_hook_Create(QObjectH handle) 15 | { 16 | return (QPrintPreviewDialog_hookH) new QPrintPreviewDialog_hook((QObject*)handle); 17 | } 18 | 19 | void QPrintPreviewDialog_hook_Destroy(QPrintPreviewDialog_hookH handle) 20 | { 21 | delete (QPrintPreviewDialog_hook *)handle; 22 | } 23 | 24 | void QPrintPreviewDialog_hook_hook_paintRequested(QPrintPreviewDialog_hookH handle, QHookH hook) 25 | { 26 | ((QPrintPreviewDialog_hook *)handle)->hook_paintRequested(hook); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /cbindings/src/qlclabstractscrollarea_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLCLABSTRACTSCROLLAREA_C_H 13 | #define QLCLABSTRACTSCROLLAREA_C_H 14 | 15 | #include "qlclabstractscrollarea.h" 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QLCLAbstractScrollAreaH QLCLAbstractScrollArea_Create(QWidgetH parent); 19 | C_EXPORT void QLCLAbstractScrollArea_Destroy(QLCLAbstractScrollAreaH handle); 20 | C_EXPORT void QLCLAbstractScrollArea_override_viewportEvent(QLCLAbstractScrollAreaH handle, const QOverrideHook hook); 21 | C_EXPORT bool QLCLAbstractScrollArea_InheritedViewportEvent(QLCLAbstractScrollAreaH handle, QEventH event); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /cbindings/src/qmenubar_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qmenubar_hook_c.h" 13 | 14 | QMenuBar_hookH QMenuBar_hook_Create(QObjectH handle) 15 | { 16 | return (QMenuBar_hookH) new QMenuBar_hook((QObject*)handle); 17 | } 18 | 19 | void QMenuBar_hook_Destroy(QMenuBar_hookH handle) 20 | { 21 | delete (QMenuBar_hook *)handle; 22 | } 23 | 24 | void QMenuBar_hook_hook_triggered(QMenuBar_hookH handle, QHookH hook) 25 | { 26 | ((QMenuBar_hook *)handle)->hook_triggered(hook); 27 | } 28 | 29 | void QMenuBar_hook_hook_hovered(QMenuBar_hookH handle, QHookH hook) 30 | { 31 | ((QMenuBar_hook *)handle)->hook_hovered(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qobject_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2022 by Jan Van hijfte, Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qobject_hook_c.h" 13 | 14 | QObject_hookH QObject_hook_Create(QObjectH handle) 15 | { 16 | return (QObject_hookH) new QObject_hook((QObject*)handle); 17 | } 18 | 19 | void QObject_hook_Destroy(QObject_hookH handle) 20 | { 21 | delete (QObject_hook *)handle; 22 | } 23 | 24 | void QObject_hook_hook_events(QObject_hookH handle, QHookH hook) 25 | { 26 | ((QObject_hook *)handle)->hook_events(hook); 27 | } 28 | 29 | void QObject_hook_hook_destroyed(QObject_hookH handle, QHookH hook) 30 | { 31 | ((QObject_hook *)handle)->hook_destroyed(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qstandarditemmodel_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSTANDARDITEMMODEL_HOOK_C_H 13 | #define QSTANDARDITEMMODEL_HOOK_C_H 14 | 15 | #include "qstandarditemmodel_hook.h" 16 | 17 | C_EXPORT QStandardItem_hookH QStandardItem_hook_Create(QObjectH handle); 18 | C_EXPORT void QStandardItem_hook_Destroy(QStandardItem_hookH handle); 19 | C_EXPORT QStandardItemModel_hookH QStandardItemModel_hook_Create(QObjectH handle); 20 | C_EXPORT void QStandardItemModel_hook_Destroy(QStandardItemModel_hookH handle); 21 | C_EXPORT void QStandardItemModel_hook_hook_itemChanged(QStandardItemModel_hookH handle, QHookH hook); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /cbindings/src/qdesktopwidget_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QDESKTOPWIDGET_HOOK_C_H 13 | #define QDESKTOPWIDGET_HOOK_C_H 14 | 15 | #include "qdesktopwidget_hook.h" 16 | 17 | C_EXPORT QDesktopWidget_hookH QDesktopWidget_hook_Create(QObjectH handle); 18 | C_EXPORT void QDesktopWidget_hook_Destroy(QDesktopWidget_hookH handle); 19 | C_EXPORT void QDesktopWidget_hook_hook_resized(QDesktopWidget_hookH handle, QHookH hook); 20 | C_EXPORT void QDesktopWidget_hook_hook_workAreaResized(QDesktopWidget_hookH handle, QHookH hook); 21 | C_EXPORT void QDesktopWidget_hook_hook_screenCountChanged(QDesktopWidget_hookH handle, QHookH hook); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /cbindings/src/qgraphicsscene_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QGRAPHICSSCENE_HOOK_C_H 13 | #define QGRAPHICSSCENE_HOOK_C_H 14 | 15 | #include "qgraphicsscene_hook.h" 16 | 17 | C_EXPORT QGraphicsScene_hookH QGraphicsScene_hook_Create(QObjectH handle); 18 | C_EXPORT void QGraphicsScene_hook_Destroy(QGraphicsScene_hookH handle); 19 | C_EXPORT void QGraphicsScene_hook_hook_sceneRectChanged(QGraphicsScene_hookH handle, QHookH hook); 20 | C_EXPORT void QGraphicsScene_hook_hook_selectionChanged(QGraphicsScene_hookH handle, QHookH hook); 21 | C_EXPORT void QGraphicsScene_hook_hook_focusItemChanged(QGraphicsScene_hookH handle, QHookH hook); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /cbindings/src/qtreeview_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qtreeview_hook_c.h" 13 | 14 | QTreeView_hookH QTreeView_hook_Create(QObjectH handle) 15 | { 16 | return (QTreeView_hookH) new QTreeView_hook((QObject*)handle); 17 | } 18 | 19 | void QTreeView_hook_Destroy(QTreeView_hookH handle) 20 | { 21 | delete (QTreeView_hook *)handle; 22 | } 23 | 24 | void QTreeView_hook_hook_expanded(QTreeView_hookH handle, QHookH hook) 25 | { 26 | ((QTreeView_hook *)handle)->hook_expanded(hook); 27 | } 28 | 29 | void QTreeView_hook_hook_collapsed(QTreeView_hookH handle, QHookH hook) 30 | { 31 | ((QTreeView_hook *)handle)->hook_collapsed(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qcompleter_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2022 by Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QCOMPLETER_HOOK_C_H 13 | #define QCOMPLETER_HOOK_C_H 14 | 15 | #include "qcompleter_hook.h" 16 | 17 | C_EXPORT QCompleter_hookH QCompleter_hook_Create(QObjectH handle); 18 | C_EXPORT void QCompleter_hook_Destroy(QCompleter_hookH handle); 19 | C_EXPORT void QCompleter_hook_hook_activated(QCompleter_hookH handle, QHookH hook); 20 | C_EXPORT void QCompleter_hook_hook_activated2(QCompleter_hookH handle, QHookH hook); 21 | C_EXPORT void QCompleter_hook_hook_highlighted(QCompleter_hookH handle, QHookH hook); 22 | C_EXPORT void QCompleter_hook_hook_highlighted2(QCompleter_hookH handle, QHookH hook); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /cbindings/src/qiodevice_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QIODEVICE_HOOK_C_H 13 | #define QIODEVICE_HOOK_C_H 14 | 15 | #include "qiodevice_hook.h" 16 | 17 | C_EXPORT QIODevice_hookH QIODevice_hook_Create(QObjectH handle); 18 | C_EXPORT void QIODevice_hook_Destroy(QIODevice_hookH handle); 19 | C_EXPORT void QIODevice_hook_hook_readyRead(QIODevice_hookH handle, QHookH hook); 20 | C_EXPORT void QIODevice_hook_hook_bytesWritten(QIODevice_hookH handle, QHookH hook); 21 | C_EXPORT void QIODevice_hook_hook_aboutToClose(QIODevice_hookH handle, QHookH hook); 22 | C_EXPORT void QIODevice_hook_hook_readChannelFinished(QIODevice_hookH handle, QHookH hook); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /cbindings/src/qshortcut_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qshortcut_hook_c.h" 13 | 14 | QShortcut_hookH QShortcut_hook_Create(QObjectH handle) 15 | { 16 | return (QShortcut_hookH) new QShortcut_hook((QObject*)handle); 17 | } 18 | 19 | void QShortcut_hook_Destroy(QShortcut_hookH handle) 20 | { 21 | delete (QShortcut_hook *)handle; 22 | } 23 | 24 | void QShortcut_hook_hook_activated(QShortcut_hookH handle, QHookH hook) 25 | { 26 | ((QShortcut_hook *)handle)->hook_activated(hook); 27 | } 28 | 29 | void QShortcut_hook_hook_activatedAmbiguously(QShortcut_hookH handle, QHookH hook) 30 | { 31 | ((QShortcut_hook *)handle)->hook_activatedAmbiguously(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qclipboard_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QCLIPBOARD_HOOK_C_H 13 | #define QCLIPBOARD_HOOK_C_H 14 | 15 | #include "qclipboard_hook.h" 16 | 17 | C_EXPORT QClipboard_hookH QClipboard_hook_Create(QObjectH handle); 18 | C_EXPORT void QClipboard_hook_Destroy(QClipboard_hookH handle); 19 | C_EXPORT void QClipboard_hook_hook_changed(QClipboard_hookH handle, QHookH hook); 20 | C_EXPORT void QClipboard_hook_hook_selectionChanged(QClipboard_hookH handle, QHookH hook); 21 | C_EXPORT void QClipboard_hook_hook_findBufferChanged(QClipboard_hookH handle, QHookH hook); 22 | C_EXPORT void QClipboard_hook_hook_dataChanged(QClipboard_hookH handle, QHookH hook); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /cbindings/src/qlclthread.h: -------------------------------------------------------------------------------- 1 | #ifndef QLCLTHREAD_H 2 | #define QLCLTHREAD_H 3 | 4 | #include 5 | #include "pascalbind.h" 6 | 7 | 8 | class QLCLThread : public QThread { 9 | 10 | public: 11 | 12 | //==================================================================================== 13 | QLCLThread(QObject * parent = 0) : QThread(parent) { 14 | runOverride.func = NULL; 15 | }; 16 | 17 | //==================================================================================== 18 | void override_run(const QOverrideHook hook) { 19 | runOverride = hook; 20 | }; 21 | 22 | //==================================================================================== 23 | int exec() { 24 | return QThread::exec(); 25 | }; 26 | 27 | 28 | protected: 29 | 30 | void run () { 31 | if (runOverride.func) { 32 | typedef void (*func_type)(void *data); 33 | (*(func_type)runOverride.func)(runOverride.data); 34 | } 35 | else QThread::run(); 36 | }; 37 | 38 | 39 | private: 40 | 41 | //==================================================================================== 42 | QOverrideHook runOverride; 43 | 44 | }; 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /cbindings/package/libqt6pas-devel.spec: -------------------------------------------------------------------------------- 1 | Buildroot: /home/dbannon/libqt6pas/cbindings/package-text/libqt6pas6-2.2 2 | Name: libqt6pas6-devel 3 | Version: 4 | Release: 5 | Summary: Qt6 interface bindings for Pascal Devel Package 6 | License: LGPLv2 7 | Group: Development/Tools 8 | Packager: David Bannon 9 | URL: https://github.com/davidbannon/libqt6pas 10 | Requires: INSERT_DEPEND 11 | Provides: libqt6pas-devel 12 | 13 | %define _build_id_links none 14 | 15 | %define _rpmdir ../ 16 | %define _rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm 17 | %define _unpackaged_files_terminate_build 0 18 | 19 | %description 20 | Provides interface for Pascal applications, is only 21 | a temp hack until the distributions catch up. It is 22 | only really useful, at present, to people using 23 | Lazarus main, current release versions do not need it. 24 | Development Package 25 | 26 | %files 27 | 28 | /usr/%{_lib}/libQt6Pas.so 29 | %dir "/usr/share/doc/libqt6pas6-devel/" 30 | "/usr/share/doc/libqt6pas6-devel/copyright" 31 | 32 | %changelog 33 | * Thu Nov 24 2022 David Bannon - INSERT_FULL_VER 34 | - Initial version of the package 35 | 36 | -------------------------------------------------------------------------------- /cbindings/src/qlclmessageevent.h: -------------------------------------------------------------------------------- 1 | #ifndef QLCLMESSAGEEVENT_H 2 | #define QLCLMESSAGEEVENT_H 3 | 4 | #include 5 | #include "pascalbind.h" 6 | 7 | class QLCLMessageEvent : public QEvent { 8 | 9 | public: 10 | 11 | PTRUINT Msg; 12 | PTRUINT WParam; 13 | PTRUINT LParam; 14 | PTRUINT MsgResult; 15 | 16 | QLCLMessageEvent(Type aType) : QEvent(aType),Msg(0),WParam(0),LParam(0),MsgResult(0) {}; 17 | QLCLMessageEvent(Type aType, PTRUINT aMsg, PTRUINT aWParam, PTRUINT aLParam, PTRUINT aMsgResult) : QEvent(aType),Msg(aMsg),WParam(aWParam),LParam(aLParam),MsgResult(aMsgResult) {}; 18 | 19 | // Destroy Test: uncomment following line and recompile binding library 20 | //~QLCLMessageEvent() { printf("LCLMessage got destroyed\n"); }; 21 | 22 | PTRUINT getMsg() { return Msg;} 23 | PTRUINT getWParam() { return WParam;} 24 | PTRUINT getLParam() { return LParam;} 25 | PTRUINT getMsgResult() { return MsgResult;} 26 | 27 | void setMsg(PTRUINT Value) {Msg = Value;} 28 | void setWParam(PTRUINT Value) {WParam = Value;} 29 | void setLParam(PTRUINT Value) {LParam = Value;} 30 | void setMsgResult(PTRUINT Value) {MsgResult = Value;} 31 | 32 | }; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /cbindings/src/qactiongroup_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qactiongroup_hook_c.h" 13 | 14 | QActionGroup_hookH QActionGroup_hook_Create(QObjectH handle) 15 | { 16 | return (QActionGroup_hookH) new QActionGroup_hook((QObject*)handle); 17 | } 18 | 19 | void QActionGroup_hook_Destroy(QActionGroup_hookH handle) 20 | { 21 | delete (QActionGroup_hook *)handle; 22 | } 23 | 24 | void QActionGroup_hook_hook_triggered(QActionGroup_hookH handle, QHookH hook) 25 | { 26 | ((QActionGroup_hook *)handle)->hook_triggered(hook); 27 | } 28 | 29 | void QActionGroup_hook_hook_hovered(QActionGroup_hookH handle, QHookH hook) 30 | { 31 | ((QActionGroup_hook *)handle)->hook_hovered(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qsocketnotifier_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSOCKETNOTIFIER_C_H 13 | #define QSOCKETNOTIFIER_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QSocketNotifierH QSocketNotifier_Create(qintptr socket, QSocketNotifier::Type AnonParam2, QObjectH parent); 19 | C_EXPORT void QSocketNotifier_Destroy(QSocketNotifierH handle); 20 | C_EXPORT qintptr QSocketNotifier_socket(QSocketNotifierH handle); 21 | C_EXPORT QSocketNotifier::Type QSocketNotifier_type(QSocketNotifierH handle); 22 | C_EXPORT bool QSocketNotifier_isEnabled(QSocketNotifierH handle); 23 | C_EXPORT void QSocketNotifier_setEnabled(QSocketNotifierH handle, bool AnonParam1); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /cbindings/src/qtabwidget_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qtabwidget_hook_c.h" 13 | 14 | QTabWidget_hookH QTabWidget_hook_Create(QObjectH handle) 15 | { 16 | return (QTabWidget_hookH) new QTabWidget_hook((QObject*)handle); 17 | } 18 | 19 | void QTabWidget_hook_Destroy(QTabWidget_hookH handle) 20 | { 21 | delete (QTabWidget_hook *)handle; 22 | } 23 | 24 | void QTabWidget_hook_hook_currentChanged(QTabWidget_hookH handle, QHookH hook) 25 | { 26 | ((QTabWidget_hook *)handle)->hook_currentChanged(hook); 27 | } 28 | 29 | void QTabWidget_hook_hook_tabCloseRequested(QTabWidget_hookH handle, QHookH hook) 30 | { 31 | ((QTabWidget_hook *)handle)->hook_tabCloseRequested(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qaction_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QACTION_HOOK_C_H 13 | #define QACTION_HOOK_C_H 14 | 15 | #include "qaction_hook.h" 16 | 17 | C_EXPORT QAction_hookH QAction_hook_Create(QObjectH handle); 18 | C_EXPORT void QAction_hook_Destroy(QAction_hookH handle); 19 | C_EXPORT void QAction_hook_hook_changed(QAction_hookH handle, QHookH hook); 20 | C_EXPORT void QAction_hook_hook_triggered(QAction_hookH handle, QHookH hook); 21 | C_EXPORT void QAction_hook_hook_triggered2(QAction_hookH handle, QHookH hook); 22 | C_EXPORT void QAction_hook_hook_hovered(QAction_hookH handle, QHookH hook); 23 | C_EXPORT void QAction_hook_hook_toggled(QAction_hookH handle, QHookH hook); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /cbindings/src/qdesktopservices_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qdesktopservices_c.h" 13 | 14 | bool QDesktopServices_openUrl(const QUrlH url) 15 | { 16 | return (bool) QDesktopServices::openUrl(*(const QUrl*)url); 17 | } 18 | 19 | void QDesktopServices_setUrlHandler(PWideString scheme, QObjectH receiver, const char* method) 20 | { 21 | QString t_scheme; 22 | copyPWideStringToQString(scheme, t_scheme); 23 | QDesktopServices::setUrlHandler(t_scheme, (QObject*)receiver, method); 24 | } 25 | 26 | void QDesktopServices_unsetUrlHandler(PWideString scheme) 27 | { 28 | QString t_scheme; 29 | copyPWideStringToQString(scheme, t_scheme); 30 | QDesktopServices::unsetUrlHandler(t_scheme); 31 | } 32 | 33 | -------------------------------------------------------------------------------- /cbindings/src/qgesturerecognizer_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QGESTURERECOGNIZER_C_H 13 | #define QGESTURERECOGNIZER_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QGestureH QGestureRecognizer_create(QGestureRecognizerH handle, QObjectH target); 19 | C_EXPORT unsigned int QGestureRecognizer_recognize(QGestureRecognizerH handle, QGestureH state, QObjectH watched, QEventH event); 20 | C_EXPORT void QGestureRecognizer_reset(QGestureRecognizerH handle, QGestureH state); 21 | C_EXPORT Qt::GestureType QGestureRecognizer_registerRecognizer(QGestureRecognizerH recognizer); 22 | C_EXPORT void QGestureRecognizer_unregisterRecognizer(Qt::GestureType type); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /cbindings/src/qnativeeventfilter_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2022 by Matteo Salvi 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | #ifndef Q_NATIVEEVENTFILTER_HOOK_C_H 12 | #define Q_NATIVEEVENTFILTER_HOOK_C_H 13 | 14 | #include "qnativeeventfilter_hook.h" 15 | #include "pascalbind.h" 16 | 17 | C_EXPORT Q_NativeEventFilter_hookH Q_NativeEventFilter_hook_Create(QCoreApplicationH handle); 18 | C_EXPORT void Q_NativeEventFilter_hook_Destroy(Q_NativeEventFilter_hookH handle); 19 | C_EXPORT void Q_NativeEventFilter_hook_installfilter(Q_NativeEventFilter_hookH handle, QHookH hook); 20 | C_EXPORT void Q_NativeEventFilter_hook_destroyed(Q_NativeEventFilter_hookH handle, QHookH hook); 21 | C_EXPORT void Q_NativeEventFilter_hook_removefilter(Q_NativeEventFilter_hookH handle); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /cbindings/src/qmainwindow_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qmainwindow_hook_c.h" 13 | 14 | QMainWindow_hookH QMainWindow_hook_Create(QObjectH handle) 15 | { 16 | return (QMainWindow_hookH) new QMainWindow_hook((QObject*)handle); 17 | } 18 | 19 | void QMainWindow_hook_Destroy(QMainWindow_hookH handle) 20 | { 21 | delete (QMainWindow_hook *)handle; 22 | } 23 | 24 | void QMainWindow_hook_hook_iconSizeChanged(QMainWindow_hookH handle, QHookH hook) 25 | { 26 | ((QMainWindow_hook *)handle)->hook_iconSizeChanged(hook); 27 | } 28 | 29 | void QMainWindow_hook_hook_toolButtonStyleChanged(QMainWindow_hookH handle, QHookH hook) 30 | { 31 | ((QMainWindow_hook *)handle)->hook_toolButtonStyleChanged(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qlclopenglwidget_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2020 Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qlclopenglwidget_c.h" 13 | 14 | QLCLOpenGLWidgetH QLCLOpenGLWidget_Create(QWidgetH parent, unsigned int f) 15 | { 16 | return (QLCLOpenGLWidgetH) new QLCLOpenGLWidget((QWidget*)parent, (Qt::WindowFlags)f); 17 | } 18 | 19 | void QLCLOpenGLWidget_Destroy(QLCLOpenGLWidgetH handle) 20 | { 21 | delete (QLCLOpenGLWidget *)handle; 22 | } 23 | 24 | void QLCLOpenGLWidget_override_paintGL(QLCLOpenGLWidgetH handle, const QOverrideHook hook) 25 | { 26 | ((QLCLOpenGLWidget *)handle)->override_paintGL(hook); 27 | } 28 | 29 | void QLCLOpenGLWidget_InheritedPaintGL(QLCLOpenGLWidgetH handle) 30 | { 31 | ((QLCLOpenGLWidget *)handle)->InheritedPaintGLOverride(); 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /cbindings/src/qtooltip_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTOOLTIP_C_H 13 | #define QTOOLTIP_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT void QToolTip_showText(const QPointH pos, PWideString text, QWidgetH w); 19 | C_EXPORT void QToolTip_showText2(const QPointH pos, PWideString text, QWidgetH w, PRect rect); 20 | C_EXPORT void QToolTip_hideText(); 21 | C_EXPORT bool QToolTip_isVisible(); 22 | C_EXPORT void QToolTip_text(PWideString retval); 23 | C_EXPORT void QToolTip_palette(QPaletteH retval); 24 | C_EXPORT void QToolTip_setPalette(const QPaletteH AnonParam1); 25 | C_EXPORT void QToolTip_font(QFontH retval); 26 | C_EXPORT void QToolTip_setFont(const QFontH AnonParam1); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /cbindings/src/qmdisubwindow_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qmdisubwindow_hook_c.h" 13 | 14 | QMdiSubWindow_hookH QMdiSubWindow_hook_Create(QObjectH handle) 15 | { 16 | return (QMdiSubWindow_hookH) new QMdiSubWindow_hook((QObject*)handle); 17 | } 18 | 19 | void QMdiSubWindow_hook_Destroy(QMdiSubWindow_hookH handle) 20 | { 21 | delete (QMdiSubWindow_hook *)handle; 22 | } 23 | 24 | void QMdiSubWindow_hook_hook_windowStateChanged(QMdiSubWindow_hookH handle, QHookH hook) 25 | { 26 | ((QMdiSubWindow_hook *)handle)->hook_windowStateChanged(hook); 27 | } 28 | 29 | void QMdiSubWindow_hook_hook_aboutToActivate(QMdiSubWindow_hookH handle, QHookH hook) 30 | { 31 | ((QMdiSubWindow_hook *)handle)->hook_aboutToActivate(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qstackedlayout_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qstackedlayout_hook_c.h" 13 | 14 | QStackedLayout_hookH QStackedLayout_hook_Create(QObjectH handle) 15 | { 16 | return (QStackedLayout_hookH) new QStackedLayout_hook((QObject*)handle); 17 | } 18 | 19 | void QStackedLayout_hook_Destroy(QStackedLayout_hookH handle) 20 | { 21 | delete (QStackedLayout_hook *)handle; 22 | } 23 | 24 | void QStackedLayout_hook_hook_widgetRemoved(QStackedLayout_hookH handle, QHookH hook) 25 | { 26 | ((QStackedLayout_hook *)handle)->hook_widgetRemoved(hook); 27 | } 28 | 29 | void QStackedLayout_hook_hook_currentChanged(QStackedLayout_hookH handle, QHookH hook) 30 | { 31 | ((QStackedLayout_hook *)handle)->hook_currentChanged(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qstackedwidget_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qstackedwidget_hook_c.h" 13 | 14 | QStackedWidget_hookH QStackedWidget_hook_Create(QObjectH handle) 15 | { 16 | return (QStackedWidget_hookH) new QStackedWidget_hook((QObject*)handle); 17 | } 18 | 19 | void QStackedWidget_hook_Destroy(QStackedWidget_hookH handle) 20 | { 21 | delete (QStackedWidget_hook *)handle; 22 | } 23 | 24 | void QStackedWidget_hook_hook_currentChanged(QStackedWidget_hookH handle, QHookH hook) 25 | { 26 | ((QStackedWidget_hook *)handle)->hook_currentChanged(hook); 27 | } 28 | 29 | void QStackedWidget_hook_hook_widgetRemoved(QStackedWidget_hookH handle, QHookH hook) 30 | { 31 | ((QStackedWidget_hook *)handle)->hook_widgetRemoved(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qsystemtrayicon_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qsystemtrayicon_hook_c.h" 13 | 14 | QSystemTrayIcon_hookH QSystemTrayIcon_hook_Create(QObjectH handle) 15 | { 16 | return (QSystemTrayIcon_hookH) new QSystemTrayIcon_hook((QObject*)handle); 17 | } 18 | 19 | void QSystemTrayIcon_hook_Destroy(QSystemTrayIcon_hookH handle) 20 | { 21 | delete (QSystemTrayIcon_hook *)handle; 22 | } 23 | 24 | void QSystemTrayIcon_hook_hook_activated(QSystemTrayIcon_hookH handle, QHookH hook) 25 | { 26 | ((QSystemTrayIcon_hook *)handle)->hook_activated(hook); 27 | } 28 | 29 | void QSystemTrayIcon_hook_hook_messageClicked(QSystemTrayIcon_hookH handle, QHookH hook) 30 | { 31 | ((QSystemTrayIcon_hook *)handle)->hook_messageClicked(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/package/libqt6pas6.spec: -------------------------------------------------------------------------------- 1 | Buildroot: /home/dbannon/libqt6pas/cbindings/package-text/libqt6pas6-2.2 2 | Name: libqt6pas6 3 | Version: 4 | Release: 5 | Summary: Qt6 interface bindings for Pascal 6 | License: LGPLv2 7 | Group: System 8 | Packager: David Bannon 9 | URL: https://github.com/davidbannon/libqt6pas 10 | 11 | %define _build_id_links none 12 | 13 | %define _rpmdir ../ 14 | %define _rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm 15 | %define _unpackaged_files_terminate_build 0 16 | 17 | %description 18 | 19 | Provides interface for Pascal applications, is only 20 | a temp hack until the distributions catch up. It is 21 | only really useful, at present, to people using 22 | Lazarus main, current release versions do not need it. 23 | 24 | 25 | %files 26 | 27 | /usr/%{_lib}/libQt6Pas.so.INSERT_VERSION 28 | /usr/%{_lib}/libQt6Pas.so.6.2 29 | /usr/%{_lib}/libQt6Pas.so.6 30 | %dir "/usr/share/doc/libqt6pas6/" 31 | "/usr/share/doc/libqt6pas6/changelog.gz" 32 | "/usr/share/doc/libqt6pas6/copyright" 33 | 34 | %post -p /sbin/ldconfig 35 | %postun -p /sbin/ldconfig 36 | 37 | %changelog 38 | * Thu Nov 24 2022 David Bannon - INSERT_FULL_VER 39 | - Initial version of the package 40 | 41 | -------------------------------------------------------------------------------- /cbindings/src/qcalendarwidget_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QCALENDARWIDGET_HOOK_C_H 13 | #define QCALENDARWIDGET_HOOK_C_H 14 | 15 | #include "qcalendarwidget_hook.h" 16 | 17 | C_EXPORT QCalendarWidget_hookH QCalendarWidget_hook_Create(QObjectH handle); 18 | C_EXPORT void QCalendarWidget_hook_Destroy(QCalendarWidget_hookH handle); 19 | C_EXPORT void QCalendarWidget_hook_hook_selectionChanged(QCalendarWidget_hookH handle, QHookH hook); 20 | C_EXPORT void QCalendarWidget_hook_hook_clicked(QCalendarWidget_hookH handle, QHookH hook); 21 | C_EXPORT void QCalendarWidget_hook_hook_activated(QCalendarWidget_hookH handle, QHookH hook); 22 | C_EXPORT void QCalendarWidget_hook_hook_currentPageChanged(QCalendarWidget_hookH handle, QHookH hook); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /cbindings/src/qdialog_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qdialog_hook_c.h" 13 | 14 | QDialog_hookH QDialog_hook_Create(QObjectH handle) 15 | { 16 | return (QDialog_hookH) new QDialog_hook((QObject*)handle); 17 | } 18 | 19 | void QDialog_hook_Destroy(QDialog_hookH handle) 20 | { 21 | delete (QDialog_hook *)handle; 22 | } 23 | 24 | void QDialog_hook_hook_finished(QDialog_hookH handle, QHookH hook) 25 | { 26 | ((QDialog_hook *)handle)->hook_finished(hook); 27 | } 28 | 29 | void QDialog_hook_hook_accepted(QDialog_hookH handle, QHookH hook) 30 | { 31 | ((QDialog_hook *)handle)->hook_accepted(hook); 32 | } 33 | 34 | void QDialog_hook_hook_rejected(QDialog_hookH handle, QHookH hook) 35 | { 36 | ((QDialog_hook *)handle)->hook_rejected(hook); 37 | } 38 | 39 | -------------------------------------------------------------------------------- /cbindings/src/qscrollbar_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qscrollbar_c.h" 13 | 14 | QScrollBarH QScrollBar_Create(QWidgetH parent) 15 | { 16 | return (QScrollBarH) new QScrollBar((QWidget*)parent); 17 | } 18 | 19 | void QScrollBar_Destroy(QScrollBarH handle) 20 | { 21 | delete (QScrollBar *)handle; 22 | } 23 | 24 | QScrollBarH QScrollBar_Create2(Qt::Orientation AnonParam1, QWidgetH parent) 25 | { 26 | return (QScrollBarH) new QScrollBar(AnonParam1, (QWidget*)parent); 27 | } 28 | 29 | void QScrollBar_sizeHint(QScrollBarH handle, PSize retval) 30 | { 31 | *(QSize *)retval = ((QScrollBar *)handle)->sizeHint(); 32 | } 33 | 34 | bool QScrollBar_event(QScrollBarH handle, QEventH event) 35 | { 36 | return (bool) ((QScrollBar *)handle)->event((QEvent*)event); 37 | } 38 | 39 | -------------------------------------------------------------------------------- /cbindings/src/qtabbar_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qtabbar_hook_c.h" 13 | 14 | QTabBar_hookH QTabBar_hook_Create(QObjectH handle) 15 | { 16 | return (QTabBar_hookH) new QTabBar_hook((QObject*)handle); 17 | } 18 | 19 | void QTabBar_hook_Destroy(QTabBar_hookH handle) 20 | { 21 | delete (QTabBar_hook *)handle; 22 | } 23 | 24 | void QTabBar_hook_hook_currentChanged(QTabBar_hookH handle, QHookH hook) 25 | { 26 | ((QTabBar_hook *)handle)->hook_currentChanged(hook); 27 | } 28 | 29 | void QTabBar_hook_hook_tabCloseRequested(QTabBar_hookH handle, QHookH hook) 30 | { 31 | ((QTabBar_hook *)handle)->hook_tabCloseRequested(hook); 32 | } 33 | 34 | void QTabBar_hook_hook_tabMoved(QTabBar_hookH handle, QHookH hook) 35 | { 36 | ((QTabBar_hook *)handle)->hook_tabMoved(hook); 37 | } 38 | 39 | -------------------------------------------------------------------------------- /cbindings/src/qfiledialog_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QFILEDIALOG_HOOK_C_H 13 | #define QFILEDIALOG_HOOK_C_H 14 | 15 | #include "qfiledialog_hook.h" 16 | 17 | C_EXPORT QFileDialog_hookH QFileDialog_hook_Create(QObjectH handle); 18 | C_EXPORT void QFileDialog_hook_Destroy(QFileDialog_hookH handle); 19 | C_EXPORT void QFileDialog_hook_hook_fileSelected(QFileDialog_hookH handle, QHookH hook); 20 | C_EXPORT void QFileDialog_hook_hook_filesSelected(QFileDialog_hookH handle, QHookH hook); 21 | C_EXPORT void QFileDialog_hook_hook_currentChanged(QFileDialog_hookH handle, QHookH hook); 22 | C_EXPORT void QFileDialog_hook_hook_directoryEntered(QFileDialog_hookH handle, QHookH hook); 23 | C_EXPORT void QFileDialog_hook_hook_filterSelected(QFileDialog_hookH handle, QHookH hook); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /cbindings/src/qgroupbox_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qgroupbox_hook_c.h" 13 | 14 | QGroupBox_hookH QGroupBox_hook_Create(QObjectH handle) 15 | { 16 | return (QGroupBox_hookH) new QGroupBox_hook((QObject*)handle); 17 | } 18 | 19 | void QGroupBox_hook_Destroy(QGroupBox_hookH handle) 20 | { 21 | delete (QGroupBox_hook *)handle; 22 | } 23 | 24 | void QGroupBox_hook_hook_clicked(QGroupBox_hookH handle, QHookH hook) 25 | { 26 | ((QGroupBox_hook *)handle)->hook_clicked(hook); 27 | } 28 | 29 | void QGroupBox_hook_hook_clicked2(QGroupBox_hookH handle, QHookH hook) 30 | { 31 | ((QGroupBox_hook *)handle)->hook_clicked2(hook); 32 | } 33 | 34 | void QGroupBox_hook_hook_toggled(QGroupBox_hookH handle, QHookH hook) 35 | { 36 | ((QGroupBox_hook *)handle)->hook_toggled(hook); 37 | } 38 | 39 | -------------------------------------------------------------------------------- /cbindings/src/qcheckbox_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QCHECKBOX_C_H 13 | #define QCHECKBOX_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QCheckBoxH QCheckBox_Create(QWidgetH parent); 19 | C_EXPORT void QCheckBox_Destroy(QCheckBoxH handle); 20 | C_EXPORT QCheckBoxH QCheckBox_Create2(PWideString text, QWidgetH parent); 21 | C_EXPORT void QCheckBox_sizeHint(QCheckBoxH handle, PSize retval); 22 | C_EXPORT void QCheckBox_minimumSizeHint(QCheckBoxH handle, PSize retval); 23 | C_EXPORT void QCheckBox_setTristate(QCheckBoxH handle, bool y); 24 | C_EXPORT bool QCheckBox_isTristate(QCheckBoxH handle); 25 | C_EXPORT Qt::CheckState QCheckBox_checkState(QCheckBoxH handle); 26 | C_EXPORT void QCheckBox_setCheckState(QCheckBoxH handle, Qt::CheckState state); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /cbindings/src/qfilesystemwatcher_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qfilesystemwatcher_hook_c.h" 13 | 14 | QFileSystemWatcher_hookH QFileSystemWatcher_hook_Create(QObjectH handle) 15 | { 16 | return (QFileSystemWatcher_hookH) new QFileSystemWatcher_hook((QObject*)handle); 17 | } 18 | 19 | void QFileSystemWatcher_hook_Destroy(QFileSystemWatcher_hookH handle) 20 | { 21 | delete (QFileSystemWatcher_hook *)handle; 22 | } 23 | 24 | void QFileSystemWatcher_hook_hook_fileChanged(QFileSystemWatcher_hookH handle, QHookH hook) 25 | { 26 | ((QFileSystemWatcher_hook *)handle)->hook_fileChanged(hook); 27 | } 28 | 29 | void QFileSystemWatcher_hook_hook_directoryChanged(QFileSystemWatcher_hookH handle, QHookH hook) 30 | { 31 | ((QFileSystemWatcher_hook *)handle)->hook_directoryChanged(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qdockwidget_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QDOCKWIDGET_HOOK_C_H 13 | #define QDOCKWIDGET_HOOK_C_H 14 | 15 | #include "qdockwidget_hook.h" 16 | 17 | C_EXPORT QDockWidget_hookH QDockWidget_hook_Create(QObjectH handle); 18 | C_EXPORT void QDockWidget_hook_Destroy(QDockWidget_hookH handle); 19 | C_EXPORT void QDockWidget_hook_hook_featuresChanged(QDockWidget_hookH handle, QHookH hook); 20 | C_EXPORT void QDockWidget_hook_hook_topLevelChanged(QDockWidget_hookH handle, QHookH hook); 21 | C_EXPORT void QDockWidget_hook_hook_allowedAreasChanged(QDockWidget_hookH handle, QHookH hook); 22 | C_EXPORT void QDockWidget_hook_hook_visibilityChanged(QDockWidget_hookH handle, QHookH hook); 23 | C_EXPORT void QDockWidget_hook_hook_dockLocationChanged(QDockWidget_hookH handle, QHookH hook); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /cbindings/src/qsplitter_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qsplitter_hook_c.h" 13 | 14 | QSplitter_hookH QSplitter_hook_Create(QObjectH handle) 15 | { 16 | return (QSplitter_hookH) new QSplitter_hook((QObject*)handle); 17 | } 18 | 19 | void QSplitter_hook_Destroy(QSplitter_hookH handle) 20 | { 21 | delete (QSplitter_hook *)handle; 22 | } 23 | 24 | void QSplitter_hook_hook_splitterMoved(QSplitter_hookH handle, QHookH hook) 25 | { 26 | ((QSplitter_hook *)handle)->hook_splitterMoved(hook); 27 | } 28 | 29 | QSplitterHandle_hookH QSplitterHandle_hook_Create(QObjectH handle) 30 | { 31 | return (QSplitterHandle_hookH) new QSplitterHandle_hook((QObject*)handle); 32 | } 33 | 34 | void QSplitterHandle_hook_Destroy(QSplitterHandle_hookH handle) 35 | { 36 | delete (QSplitterHandle_hook *)handle; 37 | } 38 | 39 | -------------------------------------------------------------------------------- /cbindings/src/qprintpreviewwidget_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qprintpreviewwidget_hook_c.h" 13 | 14 | QPrintPreviewWidget_hookH QPrintPreviewWidget_hook_Create(QObjectH handle) 15 | { 16 | return (QPrintPreviewWidget_hookH) new QPrintPreviewWidget_hook((QObject*)handle); 17 | } 18 | 19 | void QPrintPreviewWidget_hook_Destroy(QPrintPreviewWidget_hookH handle) 20 | { 21 | delete (QPrintPreviewWidget_hook *)handle; 22 | } 23 | 24 | void QPrintPreviewWidget_hook_hook_paintRequested(QPrintPreviewWidget_hookH handle, QHookH hook) 25 | { 26 | ((QPrintPreviewWidget_hook *)handle)->hook_paintRequested(hook); 27 | } 28 | 29 | void QPrintPreviewWidget_hook_hook_previewChanged(QPrintPreviewWidget_hookH handle, QHookH hook) 30 | { 31 | ((QPrintPreviewWidget_hook *)handle)->hook_previewChanged(hook); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qspinbox_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSPINBOX_HOOK_C_H 13 | #define QSPINBOX_HOOK_C_H 14 | 15 | #include "qspinbox_hook.h" 16 | 17 | C_EXPORT QSpinBox_hookH QSpinBox_hook_Create(QObjectH handle); 18 | C_EXPORT void QSpinBox_hook_Destroy(QSpinBox_hookH handle); 19 | C_EXPORT void QSpinBox_hook_hook_valueChanged(QSpinBox_hookH handle, QHookH hook); 20 | C_EXPORT void QSpinBox_hook_hook_valueChanged2(QSpinBox_hookH handle, QHookH hook); 21 | C_EXPORT QDoubleSpinBox_hookH QDoubleSpinBox_hook_Create(QObjectH handle); 22 | C_EXPORT void QDoubleSpinBox_hook_Destroy(QDoubleSpinBox_hookH handle); 23 | C_EXPORT void QDoubleSpinBox_hook_hook_valueChanged(QDoubleSpinBox_hookH handle, QHookH hook); 24 | C_EXPORT void QDoubleSpinBox_hook_hook_valueChanged2(QDoubleSpinBox_hookH handle, QHookH hook); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /cbindings/src/qabstractbutton_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QABSTRACTBUTTON_HOOK_C_H 13 | #define QABSTRACTBUTTON_HOOK_C_H 14 | 15 | #include "qabstractbutton_hook.h" 16 | 17 | C_EXPORT QAbstractButton_hookH QAbstractButton_hook_Create(QObjectH handle); 18 | C_EXPORT void QAbstractButton_hook_Destroy(QAbstractButton_hookH handle); 19 | C_EXPORT void QAbstractButton_hook_hook_pressed(QAbstractButton_hookH handle, QHookH hook); 20 | C_EXPORT void QAbstractButton_hook_hook_released(QAbstractButton_hookH handle, QHookH hook); 21 | C_EXPORT void QAbstractButton_hook_hook_clicked(QAbstractButton_hookH handle, QHookH hook); 22 | C_EXPORT void QAbstractButton_hook_hook_clicked2(QAbstractButton_hookH handle, QHookH hook); 23 | C_EXPORT void QAbstractButton_hook_hook_toggled(QAbstractButton_hookH handle, QHookH hook); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /cbindings/src/qlclabstractscrollarea_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qlclabstractscrollarea_c.h" 13 | 14 | QLCLAbstractScrollAreaH QLCLAbstractScrollArea_Create(QWidgetH parent) 15 | { 16 | return (QLCLAbstractScrollAreaH) new QLCLAbstractScrollArea((QWidget*)parent); 17 | } 18 | 19 | void QLCLAbstractScrollArea_Destroy(QLCLAbstractScrollAreaH handle) 20 | { 21 | delete (QLCLAbstractScrollArea *)handle; 22 | } 23 | 24 | void QLCLAbstractScrollArea_override_viewportEvent(QLCLAbstractScrollAreaH handle, const QOverrideHook hook) 25 | { 26 | ((QLCLAbstractScrollArea *)handle)->override_viewportEvent(hook); 27 | } 28 | 29 | bool QLCLAbstractScrollArea_InheritedViewportEvent(QLCLAbstractScrollAreaH handle, QEventH event) 30 | { 31 | return (bool) ((QLCLAbstractScrollArea *)handle)->InheritedViewportEvent((QEvent*)event); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /cbindings/src/qwhatsthis_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qwhatsthis_c.h" 13 | 14 | void QWhatsThis_enterWhatsThisMode() 15 | { 16 | QWhatsThis::enterWhatsThisMode(); 17 | } 18 | 19 | bool QWhatsThis_inWhatsThisMode() 20 | { 21 | return (bool) QWhatsThis::inWhatsThisMode(); 22 | } 23 | 24 | void QWhatsThis_leaveWhatsThisMode() 25 | { 26 | QWhatsThis::leaveWhatsThisMode(); 27 | } 28 | 29 | void QWhatsThis_showText(const QPointH pos, PWideString text, QWidgetH w) 30 | { 31 | QString t_text; 32 | copyPWideStringToQString(text, t_text); 33 | QWhatsThis::showText(*(const QPoint*)pos, t_text, (QWidget*)w); 34 | } 35 | 36 | void QWhatsThis_hideText() 37 | { 38 | QWhatsThis::hideText(); 39 | } 40 | 41 | QActionH QWhatsThis_createAction(QObjectH parent) 42 | { 43 | return (QActionH) QWhatsThis::createAction((QObject*)parent); 44 | } 45 | 46 | -------------------------------------------------------------------------------- /cbindings/src/qabstractitemdelegate_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QABSTRACTITEMDELEGATE_HOOK_C_H 13 | #define QABSTRACTITEMDELEGATE_HOOK_C_H 14 | 15 | #include "qabstractitemdelegate_hook.h" 16 | 17 | C_EXPORT QAbstractItemDelegate_hookH QAbstractItemDelegate_hook_Create(QObjectH handle); 18 | C_EXPORT void QAbstractItemDelegate_hook_Destroy(QAbstractItemDelegate_hookH handle); 19 | C_EXPORT void QAbstractItemDelegate_hook_hook_commitData(QAbstractItemDelegate_hookH handle, QHookH hook); 20 | C_EXPORT void QAbstractItemDelegate_hook_hook_closeEditor(QAbstractItemDelegate_hookH handle, QHookH hook); 21 | C_EXPORT void QAbstractItemDelegate_hook_hook_closeEditor2(QAbstractItemDelegate_hookH handle, QHookH hook); 22 | C_EXPORT void QAbstractItemDelegate_hook_hook_sizeHintChanged(QAbstractItemDelegate_hookH handle, QHookH hook); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /cbindings/src/qslider_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QSLIDER_C_H 13 | #define QSLIDER_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QSliderH QSlider_Create(QWidgetH parent); 19 | C_EXPORT void QSlider_Destroy(QSliderH handle); 20 | C_EXPORT QSliderH QSlider_Create2(Qt::Orientation orientation, QWidgetH parent); 21 | C_EXPORT void QSlider_sizeHint(QSliderH handle, PSize retval); 22 | C_EXPORT void QSlider_minimumSizeHint(QSliderH handle, PSize retval); 23 | C_EXPORT void QSlider_setTickPosition(QSliderH handle, QSlider::TickPosition position); 24 | C_EXPORT QSlider::TickPosition QSlider_tickPosition(QSliderH handle); 25 | C_EXPORT void QSlider_setTickInterval(QSliderH handle, int ti); 26 | C_EXPORT int QSlider_tickInterval(QSliderH handle); 27 | C_EXPORT bool QSlider_event(QSliderH handle, QEventH event); 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /cbindings/src/qmenu_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qmenu_hook_c.h" 13 | 14 | QMenu_hookH QMenu_hook_Create(QObjectH handle) 15 | { 16 | return (QMenu_hookH) new QMenu_hook((QObject*)handle); 17 | } 18 | 19 | void QMenu_hook_Destroy(QMenu_hookH handle) 20 | { 21 | delete (QMenu_hook *)handle; 22 | } 23 | 24 | void QMenu_hook_hook_aboutToShow(QMenu_hookH handle, QHookH hook) 25 | { 26 | ((QMenu_hook *)handle)->hook_aboutToShow(hook); 27 | } 28 | 29 | void QMenu_hook_hook_aboutToHide(QMenu_hookH handle, QHookH hook) 30 | { 31 | ((QMenu_hook *)handle)->hook_aboutToHide(hook); 32 | } 33 | 34 | void QMenu_hook_hook_triggered(QMenu_hookH handle, QHookH hook) 35 | { 36 | ((QMenu_hook *)handle)->hook_triggered(hook); 37 | } 38 | 39 | void QMenu_hook_hook_hovered(QMenu_hookH handle, QHookH hook) 40 | { 41 | ((QMenu_hook *)handle)->hook_hovered(hook); 42 | } 43 | 44 | -------------------------------------------------------------------------------- /cbindings/src/qprintpreviewdialog_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QPRINTPREVIEWDIALOG_C_H 13 | #define QPRINTPREVIEWDIALOG_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QPrintPreviewDialogH QPrintPreviewDialog_Create(QWidgetH parent, unsigned int flags); 19 | C_EXPORT void QPrintPreviewDialog_Destroy(QPrintPreviewDialogH handle); 20 | C_EXPORT QPrintPreviewDialogH QPrintPreviewDialog_Create2(QPrinterH printer, QWidgetH parent, unsigned int flags); 21 | C_EXPORT void QPrintPreviewDialog_open(QPrintPreviewDialogH handle, QObjectH receiver, const char* member); 22 | C_EXPORT QPrinterH QPrintPreviewDialog_printer(QPrintPreviewDialogH handle); 23 | C_EXPORT void QPrintPreviewDialog_setVisible(QPrintPreviewDialogH handle, bool visible); 24 | C_EXPORT void QPrintPreviewDialog_done(QPrintPreviewDialogH handle, int result); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /cbindings/src/qrubberband_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QRUBBERBAND_C_H 13 | #define QRUBBERBAND_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QRubberBandH QRubberBand_Create(QRubberBand::Shape AnonParam1, QWidgetH AnonParam2); 19 | C_EXPORT void QRubberBand_Destroy(QRubberBandH handle); 20 | C_EXPORT QRubberBand::Shape QRubberBand_shape(QRubberBandH handle); 21 | C_EXPORT void QRubberBand_setGeometry(QRubberBandH handle, PRect r); 22 | C_EXPORT void QRubberBand_setGeometry2(QRubberBandH handle, int x, int y, int w, int h); 23 | C_EXPORT void QRubberBand_move(QRubberBandH handle, int x, int y); 24 | C_EXPORT void QRubberBand_move2(QRubberBandH handle, const QPointH p); 25 | C_EXPORT void QRubberBand_resize(QRubberBandH handle, int w, int h); 26 | C_EXPORT void QRubberBand_resize2(QRubberBandH handle, const QSizeH s); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /cbindings/src/qradiobutton_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qradiobutton_c.h" 13 | 14 | QRadioButtonH QRadioButton_Create(QWidgetH parent) 15 | { 16 | return (QRadioButtonH) new QRadioButton((QWidget*)parent); 17 | } 18 | 19 | void QRadioButton_Destroy(QRadioButtonH handle) 20 | { 21 | delete (QRadioButton *)handle; 22 | } 23 | 24 | QRadioButtonH QRadioButton_Create2(PWideString text, QWidgetH parent) 25 | { 26 | QString t_text; 27 | copyPWideStringToQString(text, t_text); 28 | return (QRadioButtonH) new QRadioButton(t_text, (QWidget*)parent); 29 | } 30 | 31 | void QRadioButton_sizeHint(QRadioButtonH handle, PSize retval) 32 | { 33 | *(QSize *)retval = ((QRadioButton *)handle)->sizeHint(); 34 | } 35 | 36 | void QRadioButton_minimumSizeHint(QRadioButtonH handle, PSize retval) 37 | { 38 | *(QSize *)retval = ((QRadioButton *)handle)->minimumSizeHint(); 39 | } 40 | 41 | -------------------------------------------------------------------------------- /cbindings/src/qkeycombination_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2024 by Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QKEYCOMBINATION_C_H 13 | #define QKEYCOMBINATION_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QKeyCombinationH QKeyCombination_Create(Qt::Key key = Qt::Key_unknown); 19 | C_EXPORT QKeyCombinationH QKeyCombination_Create2(Qt::Modifiers modifiers, Qt::Key key = Qt::Key_unknown); 20 | C_EXPORT QKeyCombinationH QKeyCombination_Create3(Qt::KeyboardModifiers modifiers, Qt::Key key = Qt::Key_unknown); 21 | C_EXPORT void QKeyCombination_Destroy(QKeyCombinationH handle); 22 | C_EXPORT Qt::Key QKeyCombination_key(QKeyCombinationH handle); 23 | C_EXPORT Qt::KeyboardModifiers QKeyCombination_keyboardModifiers(QKeyCombinationH handle); 24 | C_EXPORT int QKeyCombination_toCombined(QKeyCombinationH handle); 25 | C_EXPORT void QKeyCombination_fromCombined(int combined, QKeyCombinationH retval); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qitemselectionmodel_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QITEMSELECTIONMODEL_HOOK_C_H 13 | #define QITEMSELECTIONMODEL_HOOK_C_H 14 | 15 | #include "qitemselectionmodel_hook.h" 16 | 17 | C_EXPORT QItemSelectionRange_hookH QItemSelectionRange_hook_Create(QObjectH handle); 18 | C_EXPORT void QItemSelectionRange_hook_Destroy(QItemSelectionRange_hookH handle); 19 | C_EXPORT QItemSelectionModel_hookH QItemSelectionModel_hook_Create(QObjectH handle); 20 | C_EXPORT void QItemSelectionModel_hook_Destroy(QItemSelectionModel_hookH handle); 21 | C_EXPORT void QItemSelectionModel_hook_hook_currentChanged(QItemSelectionModel_hookH handle, QHookH hook); 22 | C_EXPORT void QItemSelectionModel_hook_hook_currentRowChanged(QItemSelectionModel_hookH handle, QHookH hook); 23 | C_EXPORT void QItemSelectionModel_hook_hook_currentColumnChanged(QItemSelectionModel_hookH handle, QHookH hook); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /cbindings/src/qpagesetupdialog_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QPAGESETUPDIALOG_C_H 13 | #define QPAGESETUPDIALOG_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QPageSetupDialogH QPageSetupDialog_Create(QPrinterH printer, QWidgetH parent); 19 | C_EXPORT void QPageSetupDialog_Destroy(QPageSetupDialogH handle); 20 | C_EXPORT QPageSetupDialogH QPageSetupDialog_Create2(QWidgetH parent); 21 | C_EXPORT int QPageSetupDialog_exec(QPageSetupDialogH handle); 22 | C_EXPORT void QPageSetupDialog_open(QPageSetupDialogH handle, QObjectH receiver, const char* member); 23 | C_EXPORT void QPageSetupDialog_done(QPageSetupDialogH handle, int result); 24 | C_EXPORT QPrinterH QPageSetupDialog_printer(QPageSetupDialogH handle); 25 | #if defined MSWINDOWS || DARWIN 26 | C_EXPORT void QPageSetupDialog_setVisible(QPageSetupDialogH handle, bool visible); 27 | #endif 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /cbindings/src/qstandarditemmodel_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qstandarditemmodel_hook_c.h" 13 | 14 | QStandardItem_hookH QStandardItem_hook_Create(QObjectH handle) 15 | { 16 | return (QStandardItem_hookH) new QStandardItem_hook((QObject*)handle); 17 | } 18 | 19 | void QStandardItem_hook_Destroy(QStandardItem_hookH handle) 20 | { 21 | delete (QStandardItem_hook *)handle; 22 | } 23 | 24 | QStandardItemModel_hookH QStandardItemModel_hook_Create(QObjectH handle) 25 | { 26 | return (QStandardItemModel_hookH) new QStandardItemModel_hook((QObject*)handle); 27 | } 28 | 29 | void QStandardItemModel_hook_Destroy(QStandardItemModel_hookH handle) 30 | { 31 | delete (QStandardItemModel_hook *)handle; 32 | } 33 | 34 | void QStandardItemModel_hook_hook_itemChanged(QStandardItemModel_hookH handle, QHookH hook) 35 | { 36 | ((QStandardItemModel_hook *)handle)->hook_itemChanged(hook); 37 | } 38 | 39 | -------------------------------------------------------------------------------- /cbindings/src/qbuttongroup_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QBUTTONGROUP_HOOK_C_H 13 | #define QBUTTONGROUP_HOOK_C_H 14 | 15 | #include "qbuttongroup_hook.h" 16 | 17 | C_EXPORT QButtonGroup_hookH QButtonGroup_hook_Create(QObjectH handle); 18 | C_EXPORT void QButtonGroup_hook_Destroy(QButtonGroup_hookH handle); 19 | C_EXPORT void QButtonGroup_hook_hook_buttonClicked(QButtonGroup_hookH handle, QHookH hook); 20 | C_EXPORT void QButtonGroup_hook_hook_buttonClicked2(QButtonGroup_hookH handle, QHookH hook); 21 | C_EXPORT void QButtonGroup_hook_hook_buttonPressed(QButtonGroup_hookH handle, QHookH hook); 22 | C_EXPORT void QButtonGroup_hook_hook_buttonPressed2(QButtonGroup_hookH handle, QHookH hook); 23 | C_EXPORT void QButtonGroup_hook_hook_buttonReleased(QButtonGroup_hookH handle, QHookH hook); 24 | C_EXPORT void QButtonGroup_hook_hook_buttonReleased2(QButtonGroup_hookH handle, QHookH hook); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /cbindings/src/qcoreapplication_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QCOREAPPLICATION_HOOK_C_H 13 | #define QCOREAPPLICATION_HOOK_C_H 14 | 15 | #include "qcoreapplication_hook.h" 16 | 17 | C_EXPORT QCoreApplication_hookH QCoreApplication_hook_Create(QObjectH handle); 18 | C_EXPORT void QCoreApplication_hook_Destroy(QCoreApplication_hookH handle); 19 | C_EXPORT void QCoreApplication_hook_hook_aboutToQuit(QCoreApplication_hookH handle, QHookH hook); 20 | C_EXPORT void QCoreApplication_hook_hook_organizationNameChanged(QCoreApplication_hookH handle, QHookH hook); 21 | C_EXPORT void QCoreApplication_hook_hook_organizationDomainChanged(QCoreApplication_hookH handle, QHookH hook); 22 | C_EXPORT void QCoreApplication_hook_hook_applicationNameChanged(QCoreApplication_hookH handle, QHookH hook); 23 | C_EXPORT void QCoreApplication_hook_hook_applicationVersionChanged(QCoreApplication_hookH handle, QHookH hook); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /cbindings/src/qdesktopwidget_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qdesktopwidget_hook_c.h" 13 | 14 | QDesktopWidget_hookH QDesktopWidget_hook_Create(QObjectH handle) 15 | { 16 | return (QDesktopWidget_hookH) new QDesktopWidget_hook((QObject*)handle); 17 | } 18 | 19 | void QDesktopWidget_hook_Destroy(QDesktopWidget_hookH handle) 20 | { 21 | delete (QDesktopWidget_hook *)handle; 22 | } 23 | 24 | void QDesktopWidget_hook_hook_resized(QDesktopWidget_hookH handle, QHookH hook) 25 | { 26 | ((QDesktopWidget_hook *)handle)->hook_resized(hook); 27 | } 28 | 29 | void QDesktopWidget_hook_hook_workAreaResized(QDesktopWidget_hookH handle, QHookH hook) 30 | { 31 | ((QDesktopWidget_hook *)handle)->hook_workAreaResized(hook); 32 | } 33 | 34 | void QDesktopWidget_hook_hook_screenCountChanged(QDesktopWidget_hookH handle, QHookH hook) 35 | { 36 | ((QDesktopWidget_hook *)handle)->hook_screenCountChanged(hook); 37 | } 38 | 39 | -------------------------------------------------------------------------------- /cbindings/src/qsurface_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2017-2022 by Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qsurface_c.h" 13 | 14 | void QSurface_Destroy(QSurfaceH handle) 15 | { 16 | delete (QSurface *)handle; 17 | } 18 | 19 | void QSurface_size(QSurfaceH handle, PSize retval) 20 | { 21 | *(QSize *)retval = ((QSurface *)handle)->size(); 22 | } 23 | 24 | 25 | bool QSurface_supportsOpenGL(QSurfaceH handle) 26 | { 27 | return (bool) ((QSurface *)handle)->supportsOpenGL(); 28 | } 29 | 30 | QSurface::SurfaceClass QSurface_surfaceClass(QSurfaceH handle) 31 | { 32 | return (QSurface::SurfaceClass) ((QSurface *)handle)->surfaceClass(); 33 | } 34 | 35 | QSurface::SurfaceType QSurface_surfaceType(QSurfaceH handle) 36 | { 37 | return (QSurface::SurfaceType) ((QSurface *)handle)->surfaceType(); 38 | } 39 | 40 | 41 | void QSurface_format(QSurfaceH handle, QSurfaceFormatH areturn) 42 | { 43 | *(QSurfaceFormat *)areturn = ((QSurface *)handle)->format(); 44 | } 45 | 46 | -------------------------------------------------------------------------------- /cbindings/src/qgraphicsscene_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qgraphicsscene_hook_c.h" 13 | 14 | QGraphicsScene_hookH QGraphicsScene_hook_Create(QObjectH handle) 15 | { 16 | return (QGraphicsScene_hookH) new QGraphicsScene_hook((QObject*)handle); 17 | } 18 | 19 | void QGraphicsScene_hook_Destroy(QGraphicsScene_hookH handle) 20 | { 21 | delete (QGraphicsScene_hook *)handle; 22 | } 23 | 24 | void QGraphicsScene_hook_hook_sceneRectChanged(QGraphicsScene_hookH handle, QHookH hook) 25 | { 26 | ((QGraphicsScene_hook *)handle)->hook_sceneRectChanged(hook); 27 | } 28 | 29 | void QGraphicsScene_hook_hook_selectionChanged(QGraphicsScene_hookH handle, QHookH hook) 30 | { 31 | ((QGraphicsScene_hook *)handle)->hook_selectionChanged(hook); 32 | } 33 | 34 | void QGraphicsScene_hook_hook_focusItemChanged(QGraphicsScene_hookH handle, QHookH hook) 35 | { 36 | ((QGraphicsScene_hook *)handle)->hook_focusItemChanged(hook); 37 | } 38 | 39 | -------------------------------------------------------------------------------- /cbindings/src/qfontcombobox_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QFONTCOMBOBOX_C_H 13 | #define QFONTCOMBOBOX_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QFontComboBoxH QFontComboBox_Create(QWidgetH parent); 19 | C_EXPORT void QFontComboBox_Destroy(QFontComboBoxH handle); 20 | C_EXPORT void QFontComboBox_setWritingSystem(QFontComboBoxH handle, QFontDatabase::WritingSystem AnonParam1); 21 | C_EXPORT QFontDatabase::WritingSystem QFontComboBox_writingSystem(QFontComboBoxH handle); 22 | C_EXPORT void QFontComboBox_setFontFilters(QFontComboBoxH handle, unsigned int filters); 23 | C_EXPORT unsigned int QFontComboBox_fontFilters(QFontComboBoxH handle); 24 | C_EXPORT void QFontComboBox_currentFont(QFontComboBoxH handle, QFontH retval); 25 | C_EXPORT void QFontComboBox_sizeHint(QFontComboBoxH handle, PSize retval); 26 | C_EXPORT void QFontComboBox_setCurrentFont(QFontComboBoxH handle, const QFontH f); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /cbindings/src/qtextedit_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTEXTEDIT_HOOK_C_H 13 | #define QTEXTEDIT_HOOK_C_H 14 | 15 | #include "qtextedit_hook.h" 16 | 17 | C_EXPORT QTextEdit_hookH QTextEdit_hook_Create(QObjectH handle); 18 | C_EXPORT void QTextEdit_hook_Destroy(QTextEdit_hookH handle); 19 | C_EXPORT void QTextEdit_hook_hook_textChanged(QTextEdit_hookH handle, QHookH hook); 20 | C_EXPORT void QTextEdit_hook_hook_undoAvailable(QTextEdit_hookH handle, QHookH hook); 21 | C_EXPORT void QTextEdit_hook_hook_redoAvailable(QTextEdit_hookH handle, QHookH hook); 22 | C_EXPORT void QTextEdit_hook_hook_currentCharFormatChanged(QTextEdit_hookH handle, QHookH hook); 23 | C_EXPORT void QTextEdit_hook_hook_copyAvailable(QTextEdit_hookH handle, QHookH hook); 24 | C_EXPORT void QTextEdit_hook_hook_selectionChanged(QTextEdit_hookH handle, QHookH hook); 25 | C_EXPORT void QTextEdit_hook_hook_cursorPositionChanged(QTextEdit_hookH handle, QHookH hook); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qtranslator_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTRANSLATOR_C_H 13 | #define QTRANSLATOR_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QTranslatorH QTranslator_Create(QObjectH parent); 19 | C_EXPORT void QTranslator_Destroy(QTranslatorH handle); 20 | C_EXPORT void QTranslator_translate(QTranslatorH handle, PWideString retval, const char* context, const char* sourceText, const char* disambiguation, int n); 21 | C_EXPORT bool QTranslator_isEmpty(QTranslatorH handle); 22 | C_EXPORT bool QTranslator_load(QTranslatorH handle, PWideString filename, PWideString directory, PWideString search_delimiters, PWideString suffix); 23 | C_EXPORT bool QTranslator_load2(QTranslatorH handle, const QLocaleH locale, PWideString filename, PWideString prefix, PWideString directory, PWideString suffix); 24 | C_EXPORT bool QTranslator_load3(QTranslatorH handle, const uchar* data, int len, PWideString directory); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /cbindings/src/qlineedit_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2022 by Jan Van hijfte, Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLINEEDIT_HOOK_C_H 13 | #define QLINEEDIT_HOOK_C_H 14 | 15 | #include "qlineedit_hook.h" 16 | 17 | C_EXPORT QLineEdit_hookH QLineEdit_hook_Create(QObjectH handle); 18 | C_EXPORT void QLineEdit_hook_Destroy(QLineEdit_hookH handle); 19 | C_EXPORT void QLineEdit_hook_hook_textChanged(QLineEdit_hookH handle, QHookH hook); 20 | C_EXPORT void QLineEdit_hook_hook_textEdited(QLineEdit_hookH handle, QHookH hook); 21 | C_EXPORT void QLineEdit_hook_hook_cursorPositionChanged(QLineEdit_hookH handle, QHookH hook); 22 | C_EXPORT void QLineEdit_hook_hook_returnPressed(QLineEdit_hookH handle, QHookH hook); 23 | C_EXPORT void QLineEdit_hook_hook_inputRejected(QLineEdit_hookH handle, QHookH hook); 24 | C_EXPORT void QLineEdit_hook_hook_editingFinished(QLineEdit_hookH handle, QHookH hook); 25 | C_EXPORT void QLineEdit_hook_hook_selectionChanged(QLineEdit_hookH handle, QHookH hook); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qabstractslider_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QABSTRACTSLIDER_HOOK_C_H 13 | #define QABSTRACTSLIDER_HOOK_C_H 14 | 15 | #include "qabstractslider_hook.h" 16 | 17 | C_EXPORT QAbstractSlider_hookH QAbstractSlider_hook_Create(QObjectH handle); 18 | C_EXPORT void QAbstractSlider_hook_Destroy(QAbstractSlider_hookH handle); 19 | C_EXPORT void QAbstractSlider_hook_hook_valueChanged(QAbstractSlider_hookH handle, QHookH hook); 20 | C_EXPORT void QAbstractSlider_hook_hook_sliderPressed(QAbstractSlider_hookH handle, QHookH hook); 21 | C_EXPORT void QAbstractSlider_hook_hook_sliderMoved(QAbstractSlider_hookH handle, QHookH hook); 22 | C_EXPORT void QAbstractSlider_hook_hook_sliderReleased(QAbstractSlider_hookH handle, QHookH hook); 23 | C_EXPORT void QAbstractSlider_hook_hook_rangeChanged(QAbstractSlider_hookH handle, QHookH hook); 24 | C_EXPORT void QAbstractSlider_hook_hook_actionTriggered(QAbstractSlider_hookH handle, QHookH hook); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /cbindings/src/qtimer_hook.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTIMER_HOOK_H 13 | #define QTIMER_HOOK_H 14 | 15 | #include 16 | 17 | #include "qobject_hook.h" 18 | 19 | class QTimer_hook : public QObject_hook { 20 | Q_OBJECT 21 | public: 22 | QTimer_hook(QObject *handle) : QObject_hook(handle) { 23 | timeout_event.func = NULL; 24 | } 25 | void hook_timeout(QHook &hook) { 26 | if ( !timeout_event.func ) 27 | connect(handle, SIGNAL(timeout()), this, SLOT(timeout_hook())); 28 | timeout_event = hook; 29 | if ( !hook.func ) 30 | disconnect(handle, SIGNAL(timeout()), this, SLOT(timeout_hook())); 31 | } 32 | 33 | private slots: 34 | void timeout_hook() { 35 | if ( timeout_event.func ) { 36 | typedef void (*func_type)(void *data); 37 | (*(func_type)timeout_event.func)(timeout_event.data); 38 | } 39 | } 40 | private: 41 | QHook timeout_event; 42 | }; 43 | 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /cbindings/src/qnativeeventfilter_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2022 by Matteo Salvi 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | #include "qnativeeventfilter_hook_c.h" 12 | 13 | Q_NativeEventFilter_hookH Q_NativeEventFilter_hook_Create(QCoreApplicationH handle) 14 | { 15 | return (Q_NativeEventFilter_hookH) new Q_NativeEventFilter_hook((QCoreApplication*)handle); 16 | } 17 | 18 | void Q_NativeEventFilter_hook_Destroy(Q_NativeEventFilter_hookH handle) 19 | { 20 | delete (Q_NativeEventFilter_hook *)handle; 21 | } 22 | 23 | void Q_NativeEventFilter_hook_installfilter(Q_NativeEventFilter_hookH handle, QHookH hook) 24 | { 25 | ((Q_NativeEventFilter_hook *)handle)->hook_installfilter(hook); 26 | } 27 | 28 | void Q_NativeEventFilter_hook_destroyed(Q_NativeEventFilter_hookH handle, QHookH hook) 29 | { 30 | ((Q_NativeEventFilter_hook *)handle)->hook_destroyed(hook); 31 | } 32 | 33 | void Q_NativeEventFilter_hook_removefilter(Q_NativeEventFilter_hookH handle) 34 | { 35 | ((Q_NativeEventFilter_hook *)handle)->hook_removefilter(); 36 | } 37 | -------------------------------------------------------------------------------- /cbindings/src/qabstractitemview_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QABSTRACTITEMVIEW_HOOK_C_H 13 | #define QABSTRACTITEMVIEW_HOOK_C_H 14 | 15 | #include "qabstractitemview_hook.h" 16 | 17 | C_EXPORT QAbstractItemView_hookH QAbstractItemView_hook_Create(QObjectH handle); 18 | C_EXPORT void QAbstractItemView_hook_Destroy(QAbstractItemView_hookH handle); 19 | C_EXPORT void QAbstractItemView_hook_hook_pressed(QAbstractItemView_hookH handle, QHookH hook); 20 | C_EXPORT void QAbstractItemView_hook_hook_clicked(QAbstractItemView_hookH handle, QHookH hook); 21 | C_EXPORT void QAbstractItemView_hook_hook_doubleClicked(QAbstractItemView_hookH handle, QHookH hook); 22 | C_EXPORT void QAbstractItemView_hook_hook_activated(QAbstractItemView_hookH handle, QHookH hook); 23 | C_EXPORT void QAbstractItemView_hook_hook_entered(QAbstractItemView_hookH handle, QHookH hook); 24 | C_EXPORT void QAbstractItemView_hook_hook_viewportEntered(QAbstractItemView_hookH handle, QHookH hook); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /cbindings/src/qiodevice_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qiodevice_hook_c.h" 13 | 14 | QIODevice_hookH QIODevice_hook_Create(QObjectH handle) 15 | { 16 | return (QIODevice_hookH) new QIODevice_hook((QObject*)handle); 17 | } 18 | 19 | void QIODevice_hook_Destroy(QIODevice_hookH handle) 20 | { 21 | delete (QIODevice_hook *)handle; 22 | } 23 | 24 | void QIODevice_hook_hook_readyRead(QIODevice_hookH handle, QHookH hook) 25 | { 26 | ((QIODevice_hook *)handle)->hook_readyRead(hook); 27 | } 28 | 29 | void QIODevice_hook_hook_bytesWritten(QIODevice_hookH handle, QHookH hook) 30 | { 31 | ((QIODevice_hook *)handle)->hook_bytesWritten(hook); 32 | } 33 | 34 | void QIODevice_hook_hook_aboutToClose(QIODevice_hookH handle, QHookH hook) 35 | { 36 | ((QIODevice_hook *)handle)->hook_aboutToClose(hook); 37 | } 38 | 39 | void QIODevice_hook_hook_readChannelFinished(QIODevice_hookH handle, QHookH hook) 40 | { 41 | ((QIODevice_hook *)handle)->hook_readChannelFinished(hook); 42 | } 43 | 44 | -------------------------------------------------------------------------------- /cbindings/src/qpixmapcache_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2014-2022 by Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | #include "qpixmapcache_c.h" 12 | 13 | void QPixmapCache_clear() 14 | { 15 | QPixmapCache::clear(); 16 | } 17 | 18 | int QPixmapCache_cacheLimit() 19 | { 20 | return (int) QPixmapCache::cacheLimit(); 21 | } 22 | 23 | void QPixmapCache_setCacheLimit(int limit) 24 | { 25 | QPixmapCache::setCacheLimit(limit); 26 | } 27 | 28 | bool QPixmapCache_find(const PWideString key, QPixmapH retval) 29 | { 30 | QString t_key; 31 | copyPWideStringToQString(key, t_key); 32 | return (bool) QPixmapCache::find(t_key, (QPixmap *)retval); 33 | } 34 | 35 | bool QPixmapCache_insert(const PWideString key, QPixmapH pixmap) 36 | { 37 | QString t_key; 38 | copyPWideStringToQString(key, t_key); 39 | return (bool) QPixmapCache::insert(t_key, *(QPixmap *)pixmap); 40 | } 41 | 42 | void QPixmapCache_remove(const PWideString key) 43 | { 44 | QString t_key; 45 | copyPWideStringToQString(key, t_key); 46 | QPixmapCache::remove(t_key); 47 | } 48 | 49 | -------------------------------------------------------------------------------- /cbindings/src/qcompleter_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2022 by Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qcompleter_hook_c.h" 13 | 14 | QCompleter_hookH QCompleter_hook_Create(QObjectH handle) 15 | { 16 | return (QCompleter_hookH) new QCompleter_hook((QObject*)handle); 17 | } 18 | 19 | void QCompleter_hook_Destroy(QCompleter_hookH handle) 20 | { 21 | delete (QCompleter_hook *)handle; 22 | } 23 | 24 | void QCompleter_hook_hook_activated(QCompleter_hookH handle, QHookH hook) 25 | { 26 | ((QCompleter_hook *)handle)->hook_activated(hook); 27 | } 28 | 29 | void QCompleter_hook_hook_activated2(QCompleter_hookH handle, QHookH hook) 30 | { 31 | ((QCompleter_hook *)handle)->hook_activated2(hook); 32 | } 33 | 34 | void QCompleter_hook_hook_highlighted(QCompleter_hookH handle, QHookH hook) 35 | { 36 | ((QCompleter_hook *)handle)->hook_highlighted(hook); 37 | } 38 | 39 | void QCompleter_hook_hook_highlighted2(QCompleter_hookH handle, QHookH hook) 40 | { 41 | ((QCompleter_hook *)handle)->hook_highlighted2(hook); 42 | } 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /cbindings/src/qclipboard_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qclipboard_hook_c.h" 13 | 14 | QClipboard_hookH QClipboard_hook_Create(QObjectH handle) 15 | { 16 | return (QClipboard_hookH) new QClipboard_hook((QObject*)handle); 17 | } 18 | 19 | void QClipboard_hook_Destroy(QClipboard_hookH handle) 20 | { 21 | delete (QClipboard_hook *)handle; 22 | } 23 | 24 | void QClipboard_hook_hook_changed(QClipboard_hookH handle, QHookH hook) 25 | { 26 | ((QClipboard_hook *)handle)->hook_changed(hook); 27 | } 28 | 29 | void QClipboard_hook_hook_selectionChanged(QClipboard_hookH handle, QHookH hook) 30 | { 31 | ((QClipboard_hook *)handle)->hook_selectionChanged(hook); 32 | } 33 | 34 | void QClipboard_hook_hook_findBufferChanged(QClipboard_hookH handle, QHookH hook) 35 | { 36 | ((QClipboard_hook *)handle)->hook_findBufferChanged(hook); 37 | } 38 | 39 | void QClipboard_hook_hook_dataChanged(QClipboard_hookH handle, QHookH hook) 40 | { 41 | ((QClipboard_hook *)handle)->hook_dataChanged(hook); 42 | } 43 | 44 | -------------------------------------------------------------------------------- /cbindings/src/qlcdnumber_hook.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QLCDNUMBER_HOOK_H 13 | #define QLCDNUMBER_HOOK_H 14 | 15 | #include 16 | 17 | #include "qframe_hook.h" 18 | 19 | class QLCDNumber_hook : public QFrame_hook { 20 | Q_OBJECT 21 | public: 22 | QLCDNumber_hook(QObject *handle) : QFrame_hook(handle) { 23 | overflow_event.func = NULL; 24 | } 25 | void hook_overflow(QHook &hook) { 26 | if ( !overflow_event.func ) 27 | connect(handle, SIGNAL(overflow()), this, SLOT(overflow_hook())); 28 | overflow_event = hook; 29 | if ( !hook.func ) 30 | disconnect(handle, SIGNAL(overflow()), this, SLOT(overflow_hook())); 31 | } 32 | 33 | private slots: 34 | void overflow_hook() { 35 | if ( overflow_event.func ) { 36 | typedef void (*func_type)(void *data); 37 | (*(func_type)overflow_event.func)(overflow_event.data); 38 | } 39 | } 40 | private: 41 | QHook overflow_event; 42 | }; 43 | 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /cbindings/refresh.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # A script, run from the git dir pulled down from https://github.com/davidbannon/libqt6pas 4 | # expects to be run from the cbinding dir. 5 | # It gets the relevent files from gitlab, checks to see if we are out of date 6 | # and updates the local repo if we are. 7 | # After this, you will make the library and then package it. Finally, commit and upload binaries. 8 | 9 | # David Bannon, September 6, 2023 10 | 11 | 12 | CURRENT=`pwd` 13 | TMP="/tmp" 14 | TMPFILE="lazarus-main-lcl-interfaces-qt6" 15 | TMPPATH="$TMPFILE"/"lcl/interfaces/qt6/cbindings" 16 | DIFFRES="" 17 | 18 | cd $TMP 19 | rm -f "$TMPFILE".zip 20 | rm -Rf "$TMPFILE" 21 | 22 | wget --output-document="$TMPFILE".zip https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/main/lazarus-main.zip?path=lcl/interfaces/qt6 23 | unzip -q "$TMPFILE".zip 24 | 25 | echo "comparing "$TMP"/"$TMPPATH"/"Qt6Pas.pro" with "$CURRENT"/"Qt6Pas.pro"" 26 | 27 | DIFFRES=`diff "$TMP"/"$TMPPATH"/"Qt6Pas.pro" "$CURRENT"/"Qt6Pas.pro"` 28 | 29 | echo "$DIFFRES" 30 | 31 | if [ "$DIFFRES" == "" ]; then 32 | echo "No update needed, we will exit" 33 | exit 34 | fi 35 | 36 | echo "--------------- update needed" 37 | 38 | 39 | rm -Rf "$CURRENT"/"src" 40 | 41 | cp -r "$TMP"/"$TMPPATH"/* "$CURRENT"/. 42 | 43 | cd "$CURRENT" 44 | git status 45 | 46 | echo "you should now type qmake6 -query; qmake6" 47 | echo "then, make and wait a while" 48 | echo "After that, run the package-lib script in package dir" 49 | -------------------------------------------------------------------------------- /cbindings/src/qtextbrowser_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTEXTBROWSER_HOOK_C_H 13 | #define QTEXTBROWSER_HOOK_C_H 14 | 15 | #include "qtextbrowser_hook.h" 16 | 17 | C_EXPORT QTextBrowser_hookH QTextBrowser_hook_Create(QObjectH handle); 18 | C_EXPORT void QTextBrowser_hook_Destroy(QTextBrowser_hookH handle); 19 | C_EXPORT void QTextBrowser_hook_hook_backwardAvailable(QTextBrowser_hookH handle, QHookH hook); 20 | C_EXPORT void QTextBrowser_hook_hook_forwardAvailable(QTextBrowser_hookH handle, QHookH hook); 21 | C_EXPORT void QTextBrowser_hook_hook_historyChanged(QTextBrowser_hookH handle, QHookH hook); 22 | C_EXPORT void QTextBrowser_hook_hook_sourceChanged(QTextBrowser_hookH handle, QHookH hook); 23 | C_EXPORT void QTextBrowser_hook_hook_highlighted(QTextBrowser_hookH handle, QHookH hook); 24 | C_EXPORT void QTextBrowser_hook_hook_highlighted2(QTextBrowser_hookH handle, QHookH hook); 25 | C_EXPORT void QTextBrowser_hook_hook_anchorClicked(QTextBrowser_hookH handle, QHookH hook); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cbindings/src/qbuffer_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2017 by Zeljan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QBUFFER_C_H 13 | #define QBUFFER_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | C_EXPORT QBufferH QBuffer_Create(QObjectH parent); 18 | C_EXPORT QBufferH QBuffer_Create2(QByteArrayH bytearray, QObjectH parent); 19 | C_EXPORT void QBuffer_Destroy(QBufferH handle); 20 | 21 | C_EXPORT QByteArrayH QBuffer_buffer(QBufferH handle); 22 | C_EXPORT const QByteArrayH QBuffer_constBuffer(QBufferH handle); 23 | C_EXPORT void QBuffer_setBuffer(QBufferH handle,QByteArrayH buffer); 24 | C_EXPORT void QBuffer_setData(QBufferH handle,char* buffer,int size); 25 | 26 | C_EXPORT bool QBuffer_atEnd(QBufferH handle); 27 | C_EXPORT bool QBuffer_canReadLine(QBufferH handle); 28 | C_EXPORT void QBuffer_close(QBufferH handle); 29 | C_EXPORT bool QBuffer_open(QBufferH handle, unsigned int mode); 30 | C_EXPORT qint64 QBuffer_pos(QBufferH handle); 31 | C_EXPORT bool QBuffer_seek(QBufferH handle, qint64 pos); 32 | C_EXPORT qint64 QBuffer_size(QBufferH handle); 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /cbindings/src/qsocketnotifier_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qsocketnotifier_c.h" 13 | 14 | QSocketNotifierH QSocketNotifier_Create(qintptr socket, QSocketNotifier::Type AnonParam2, QObjectH parent) 15 | { 16 | return (QSocketNotifierH) new QSocketNotifier(socket, AnonParam2, (QObject*)parent); 17 | } 18 | 19 | void QSocketNotifier_Destroy(QSocketNotifierH handle) 20 | { 21 | delete (QSocketNotifier *)handle; 22 | } 23 | 24 | qintptr QSocketNotifier_socket(QSocketNotifierH handle) 25 | { 26 | return (qintptr) ((QSocketNotifier *)handle)->socket(); 27 | } 28 | 29 | QSocketNotifier::Type QSocketNotifier_type(QSocketNotifierH handle) 30 | { 31 | return (QSocketNotifier::Type) ((QSocketNotifier *)handle)->type(); 32 | } 33 | 34 | bool QSocketNotifier_isEnabled(QSocketNotifierH handle) 35 | { 36 | return (bool) ((QSocketNotifier *)handle)->isEnabled(); 37 | } 38 | 39 | void QSocketNotifier_setEnabled(QSocketNotifierH handle, bool AnonParam1) 40 | { 41 | ((QSocketNotifier *)handle)->setEnabled(AnonParam1); 42 | } 43 | 44 | -------------------------------------------------------------------------------- /cbindings/src/qtoolbar_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QTOOLBAR_HOOK_C_H 13 | #define QTOOLBAR_HOOK_C_H 14 | 15 | #include "qtoolbar_hook.h" 16 | 17 | C_EXPORT QToolBar_hookH QToolBar_hook_Create(QObjectH handle); 18 | C_EXPORT void QToolBar_hook_Destroy(QToolBar_hookH handle); 19 | C_EXPORT void QToolBar_hook_hook_actionTriggered(QToolBar_hookH handle, QHookH hook); 20 | C_EXPORT void QToolBar_hook_hook_movableChanged(QToolBar_hookH handle, QHookH hook); 21 | C_EXPORT void QToolBar_hook_hook_allowedAreasChanged(QToolBar_hookH handle, QHookH hook); 22 | C_EXPORT void QToolBar_hook_hook_orientationChanged(QToolBar_hookH handle, QHookH hook); 23 | C_EXPORT void QToolBar_hook_hook_iconSizeChanged(QToolBar_hookH handle, QHookH hook); 24 | C_EXPORT void QToolBar_hook_hook_toolButtonStyleChanged(QToolBar_hookH handle, QHookH hook); 25 | C_EXPORT void QToolBar_hook_hook_topLevelChanged(QToolBar_hookH handle, QHookH hook); 26 | C_EXPORT void QToolBar_hook_hook_visibilityChanged(QToolBar_hookH handle, QHookH hook); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /cbindings/src/qcombobox_hook_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QCOMBOBOX_HOOK_C_H 13 | #define QCOMBOBOX_HOOK_C_H 14 | 15 | #include "qcombobox_hook.h" 16 | 17 | C_EXPORT QComboBox_hookH QComboBox_hook_Create(QObjectH handle); 18 | C_EXPORT void QComboBox_hook_Destroy(QComboBox_hookH handle); 19 | C_EXPORT void QComboBox_hook_hook_editTextChanged(QComboBox_hookH handle, QHookH hook); 20 | C_EXPORT void QComboBox_hook_hook_activated(QComboBox_hookH handle, QHookH hook); 21 | C_EXPORT void QComboBox_hook_hook_activated2(QComboBox_hookH handle, QHookH hook); 22 | C_EXPORT void QComboBox_hook_hook_highlighted(QComboBox_hookH handle, QHookH hook); 23 | C_EXPORT void QComboBox_hook_hook_highlighted2(QComboBox_hookH handle, QHookH hook); 24 | C_EXPORT void QComboBox_hook_hook_currentIndexChanged(QComboBox_hookH handle, QHookH hook); 25 | C_EXPORT void QComboBox_hook_hook_currentIndexChanged2(QComboBox_hookH handle, QHookH hook); 26 | C_EXPORT void QComboBox_hook_hook_currentTextChanged(QComboBox_hookH handle, QHookH hook); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /cbindings/src/qprogressdialog_hook.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QPROGRESSDIALOG_HOOK_H 13 | #define QPROGRESSDIALOG_HOOK_H 14 | 15 | #include 16 | 17 | #include "qdialog_hook.h" 18 | 19 | class QProgressDialog_hook : public QDialog_hook { 20 | Q_OBJECT 21 | public: 22 | QProgressDialog_hook(QObject *handle) : QDialog_hook(handle) { 23 | canceled_event.func = NULL; 24 | } 25 | void hook_canceled(QHook &hook) { 26 | if ( !canceled_event.func ) 27 | connect(handle, SIGNAL(canceled()), this, SLOT(canceled_hook())); 28 | canceled_event = hook; 29 | if ( !hook.func ) 30 | disconnect(handle, SIGNAL(canceled()), this, SLOT(canceled_hook())); 31 | } 32 | 33 | private slots: 34 | void canceled_hook() { 35 | if ( canceled_event.func ) { 36 | typedef void (*func_type)(void *data); 37 | (*(func_type)canceled_event.func)(canceled_event.data); 38 | } 39 | } 40 | private: 41 | QHook canceled_event; 42 | }; 43 | 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /cbindings/src/qaction_hook_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qaction_hook_c.h" 13 | 14 | QAction_hookH QAction_hook_Create(QObjectH handle) 15 | { 16 | return (QAction_hookH) new QAction_hook((QObject*)handle); 17 | } 18 | 19 | void QAction_hook_Destroy(QAction_hookH handle) 20 | { 21 | delete (QAction_hook *)handle; 22 | } 23 | 24 | void QAction_hook_hook_changed(QAction_hookH handle, QHookH hook) 25 | { 26 | ((QAction_hook *)handle)->hook_changed(hook); 27 | } 28 | 29 | void QAction_hook_hook_triggered(QAction_hookH handle, QHookH hook) 30 | { 31 | ((QAction_hook *)handle)->hook_triggered(hook); 32 | } 33 | 34 | void QAction_hook_hook_triggered2(QAction_hookH handle, QHookH hook) 35 | { 36 | ((QAction_hook *)handle)->hook_triggered2(hook); 37 | } 38 | 39 | void QAction_hook_hook_hovered(QAction_hookH handle, QHookH hook) 40 | { 41 | ((QAction_hook *)handle)->hook_hovered(hook); 42 | } 43 | 44 | void QAction_hook_hook_toggled(QAction_hookH handle, QHookH hook) 45 | { 46 | ((QAction_hook *)handle)->hook_toggled(hook); 47 | } 48 | 49 | -------------------------------------------------------------------------------- /cbindings/src/qbitmap_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2022 by Jan Van hijfte, Željan Rikalo 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QBITMAP_C_H 13 | #define QBITMAP_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | C_EXPORT QBitmapH QBitmap_Create(); 19 | C_EXPORT void QBitmap_Destroy(QBitmapH handle); 20 | C_EXPORT QBitmapH QBitmap_Create2(const QPixmapH AnonParam1); 21 | C_EXPORT QBitmapH QBitmap_Create3(int w, int h); 22 | C_EXPORT QBitmapH QBitmap_Create4(const QSizeH AnonParam1); 23 | C_EXPORT QBitmapH QBitmap_Create5(PWideString fileName, const char* format); 24 | C_EXPORT void QBitmap_swap(QBitmapH handle, QBitmapH other); 25 | C_EXPORT void QBitmap_clear(QBitmapH handle); 26 | C_EXPORT void QBitmap_fromData(QBitmapH retval, const QSizeH size, const uchar* bits, QImage::Format monoFormat); 27 | C_EXPORT void QBitmap_fromImage(QBitmapH retval, const QImageH image, unsigned int flags); 28 | C_EXPORT void QBitmap_fromPixmap(QBitmapH retval, const QPixmapH pixmap); 29 | C_EXPORT void QBitmap_transformed(QBitmapH handle, QBitmapH retval, const QTransformH matrix); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /cbindings/src/qaccessible_c.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #ifndef QACCESSIBLE_C_H 13 | #define QACCESSIBLE_C_H 14 | 15 | #include 16 | #include "pascalbind.h" 17 | 18 | typedef unsigned QAccessibleId; 19 | typedef QAccessibleInterface*(*InterfaceFactory)(const QString &key, QObject*); 20 | 21 | C_EXPORT QAccessibleInterfaceH QAccessible_accessibleInterface(QAccessibleId uniqueId); 22 | C_EXPORT void QAccessible_deleteAccessibleInterface(QAccessibleId uniqueId); 23 | C_EXPORT void QAccessible_installFactory(InterfaceFactory factory); 24 | C_EXPORT bool QAccessible_isActive(); 25 | C_EXPORT QAccessibleInterfaceH QAccessible_queryAccessibleInterface(QObjectH object_); 26 | C_EXPORT QAccessibleId QAccessible_registerAccessibleInterface(QAccessibleInterfaceH iface); 27 | C_EXPORT void QAccessible_removeFactory(InterfaceFactory factory); 28 | C_EXPORT void QAccessible_setRootObject(QObjectH object_); 29 | C_EXPORT QAccessibleId QAccessible_uniqueId(QAccessibleInterfaceH iface); 30 | C_EXPORT void QAccessible_updateAccessibility(QAccessibleEvent event); 31 | #endif 32 | -------------------------------------------------------------------------------- /cbindings/src/qgesturerecognizer_c.cpp: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // Copyright (c) 2005-2013 by Jan Van hijfte 3 | // 4 | // See the included file COPYING.TXT for details about the copyright. 5 | // 6 | // This program is distributed in the hope that it will be useful, 7 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 | //****************************************************************************** 10 | 11 | 12 | #include "qgesturerecognizer_c.h" 13 | 14 | QGestureH QGestureRecognizer_create(QGestureRecognizerH handle, QObjectH target) 15 | { 16 | return (QGestureH) ((QGestureRecognizer *)handle)->create((QObject*)target); 17 | } 18 | 19 | unsigned int QGestureRecognizer_recognize(QGestureRecognizerH handle, QGestureH state, QObjectH watched, QEventH event) 20 | { 21 | return (unsigned int) ((QGestureRecognizer *)handle)->recognize((QGesture*)state, (QObject*)watched, (QEvent*)event); 22 | } 23 | 24 | void QGestureRecognizer_reset(QGestureRecognizerH handle, QGestureH state) 25 | { 26 | ((QGestureRecognizer *)handle)->reset((QGesture*)state); 27 | } 28 | 29 | Qt::GestureType QGestureRecognizer_registerRecognizer(QGestureRecognizerH recognizer) 30 | { 31 | return (Qt::GestureType) QGestureRecognizer::registerRecognizer((QGestureRecognizer*)recognizer); 32 | } 33 | 34 | void QGestureRecognizer_unregisterRecognizer(Qt::GestureType type) 35 | { 36 | QGestureRecognizer::unregisterRecognizer(type); 37 | } 38 | 39 | --------------------------------------------------------------------------------