* contrib/gtqtc/gtqtc.h
* contrib/gtqtc/gtqtc1.cpp
* replaced depreciated in 5.15 methods for mouse wheel events processing
by modern ones
* replaced depreciated in 5.15 methods for accessing screen geometry by
modern ones
* contrib/gtqtc/gtqtc1.cpp
+ added support for TAB key processing when other widgets are shown and
TAB is use to switch focus
* src/rtl/alert.prg
* src/rtl/hbgtcore.c
+ added support for hb_Alert() parameters passed in hash array, i.e.
hb_Alert( { "TXT" => <cMessage>, ;
"BTN" => <aButtons>, ;
[ "TIM" => <nTimeOut> ] } ) => <nButton>
* contrib/gtqtc/gtqtc.h
* contrib/gtqtc/gtqtc1.cpp
* include/hbgtinfo.ch
+ added new hb_gtInfo() action: HB_GTI_MSGBOX
It opens QMessageBox with given by user text and buttons, i.e.
hb_gtInfo( HB_GTI_MSGBOX, <cMessage>, <aButtons> ) => <nButton>
or:
hb_gtInfo( HB_GTI_MSGBOX, ;
{ "TXT" => <cMessage>, ;
"BTN" => <aButtons>, ;
[ "TIM" => <nTimeOut>, ] ;
[ "TIT" => <cTitle>, ] ;
[ "INF" => <cInfoText>, ] ;
[ "DTL" => <cDetailedText> ] } ) => <nButton>
+ added support for redirecting Alert() and hb_Alert() calls to QT GUI
QMessageBox(). This functionality can be enabled by:
hb_gtInfo( HB_GTI_MSGBOX, .t. )
and then
Alert( <cMessage>, <aButtons> )
is redirected to QT GUI QMessageBox().
* include/hbgtinfo.ch
* contrib/gtqtc/gtqtc.h
* contrib/gtqtc/gtqtc.hbc
* contrib/gtqtc/gtqtc.hbp
* contrib/gtqtc/gtqtc1.cpp
+ added new hb_gtInfo() action: HB_QT_SOUND
It allows to play sound using the low level GUI library, i.e.
hb_gtInfo( HB_QT_SOUND, <cSoundFile> )
This modification needs additional QT5 library Qt5Multimedia so I decided
to enable it conditionally by HB_QT_SOUND=yes environment variable.
56 lines
1.5 KiB
Plaintext
56 lines
1.5 KiB
Plaintext
-hblib
|
|
-inc
|
|
|
|
-o${hb_name}
|
|
|
|
-w3 -es2
|
|
|
|
# Tone down warnings for both QT4 and QT5
|
|
-warn=low{allclang}
|
|
|
|
-stop{dos|watcom|bcc|pocc|pocc64|poccarm|msvcia64|pcc|(hbdyn&android)}
|
|
|
|
-pic
|
|
|
|
# NOTE: You can override auto-detection of QT 'moc' tool by using HB_QTPATH and
|
|
# optionally HB_QTSUFFIX envvars. This may only be necessary on some *nix
|
|
# systems. E.g.:
|
|
#
|
|
# HB_QTPATH=/opt/qt5/bin/
|
|
# HB_QTSUFFIX=
|
|
|
|
-plugin=hbmk2_qtgt.hb
|
|
|
|
-deppkgname=qt5:qt5
|
|
-depkeyhead=qt5:QtCore/QJsonObject
|
|
-depcontrol=qt5:${HB_WITH_QT}
|
|
-depoptional=qt5:yes
|
|
-depincpath=qt5:/usr/include/x86_64-linux-gnu/qt5{linux}
|
|
-depincpath=qt5:/usr/local/opt/qt5/include{darwin}
|
|
-depincpath=qt5:/usr/local/include/qt5{bsd}
|
|
-depfinish=qt5
|
|
|
|
{!HBMK_HAS_QT5&!darwin&!android}-deppkgname=qt:QtCore
|
|
{!HBMK_HAS_QT5}-deppkgname=qt:qt4
|
|
{!HBMK_HAS_QT5}-depkeyhead=qt:QtCore/qglobal.h
|
|
{!HBMK_HAS_QT5}-depcontrol=qt:${HB_WITH_QT}
|
|
{!HBMK_HAS_QT5&HB_BUILD_3RDEXT='no'}-depcontrol=qt:no
|
|
{!HBMK_HAS_QT5&!darwin&!android}-depincpath=qt:/usr/include/qt4
|
|
{!HBMK_HAS_QT5&!darwin&!android}-depincpath=qt:/usr/lib/qt4/include
|
|
{!HBMK_HAS_QT5&!darwin&!android}-depincpath=qt:/usr/include
|
|
{!HBMK_HAS_QT5&bsd}-depincpath=qt:/usr/local/include/qt4
|
|
{!HBMK_HAS_QT5&beos}-depincpath=qt:/boot/common/include
|
|
{!HBMK_HAS_QT5&darwin}-depincpath=qt:/Developer/qt/include
|
|
{!HBMK_HAS_QT5&darwin}-depincpath=qt:/Library/Frameworks
|
|
{!HBMK_HAS_QT5&darwin}-depincpath=qt:/usr/local/include
|
|
|
|
{HB_QT_SOUND='yes'}-cflag+=-DHB_QT_SOUND
|
|
|
|
${hb_name}.hbx
|
|
|
|
# Required for 5.7.0 or upper
|
|
-cpp=iso11{HBMK_HAS_QT5}
|
|
|
|
gtqtc1.cpp
|
|
gtqtc.h
|