2009-06-25 01:05 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/hbqt/Makefile_gen
* harbour/contrib/hbqt/hbqt.ch
* harbour/contrib/hbqt/hbqt.h
* harbour/contrib/hbqt/hbqt_qapplication.cpp
* harbour/contrib/hbqt/hbqt_qcoreapplication.cpp
* harbour/contrib/hbqt/TQApplication.prg
+ harbour/contrib/hbqt/TQCoreApplication.prg
* harbour/contrib/hbqt/hbqt_slots.cpp
* harbour/contrib/hbqt/hbqt_slots.h
* harbour/contrib/hbqt/moc_slots.cpp
* harbour/contrib/hbqt/qth/QApplication.qth
* harbour/contrib/hbqt/qth/QCoreApplication.qth
+ Added 1 more class at prg level and extended others.
! Changed the way events are being handelled.
This commit is contained in:
@@ -17,6 +17,25 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2009-06-25 01:05 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
|
||||
* harbour/contrib/hbqt/Makefile_gen
|
||||
|
||||
* harbour/contrib/hbqt/hbqt.ch
|
||||
* harbour/contrib/hbqt/hbqt.h
|
||||
|
||||
* harbour/contrib/hbqt/hbqt_qapplication.cpp
|
||||
* harbour/contrib/hbqt/hbqt_qcoreapplication.cpp
|
||||
* harbour/contrib/hbqt/TQApplication.prg
|
||||
+ harbour/contrib/hbqt/TQCoreApplication.prg
|
||||
* harbour/contrib/hbqt/hbqt_slots.cpp
|
||||
* harbour/contrib/hbqt/hbqt_slots.h
|
||||
* harbour/contrib/hbqt/moc_slots.cpp
|
||||
|
||||
* harbour/contrib/hbqt/qth/QApplication.qth
|
||||
* harbour/contrib/hbqt/qth/QCoreApplication.qth
|
||||
+ Added 1 more class at prg level and extended others.
|
||||
! Changed the way events are being handelled.
|
||||
|
||||
2009-06-25 03:44 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* INSTALL
|
||||
* Some casing fixes.
|
||||
|
||||
@@ -228,6 +228,7 @@ PRG_SOURCES=\
|
||||
TQAbstractSpinBox.prg \
|
||||
TQAbstractTableModel.prg \
|
||||
TQAction.prg \
|
||||
TQCoreApplication.prg \
|
||||
TQApplication.prg \
|
||||
TQBitmap.prg \
|
||||
TQBoxLayout.prg \
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS QApplication
|
||||
CREATE CLASS QApplication INHERIT QCoreApplication
|
||||
|
||||
VAR pParent
|
||||
VAR pPtr
|
||||
@@ -71,6 +71,73 @@ CREATE CLASS QApplication
|
||||
METHOD sessionKey() INLINE Qt_QApplication_sessionKey( ::pPtr )
|
||||
METHOD setInputContext( pInputContext ) INLINE Qt_QApplication_setInputContext( ::pPtr, pInputContext )
|
||||
METHOD styleSheet() INLINE Qt_QApplication_styleSheet( ::pPtr )
|
||||
METHOD activeModalWidget() INLINE Qt_QApplication_activeModalWidget( ::pPtr )
|
||||
METHOD activePopupWidget() INLINE Qt_QApplication_activePopupWidget( ::pPtr )
|
||||
METHOD activeWindow() INLINE Qt_QApplication_activeWindow( ::pPtr )
|
||||
METHOD alert( pWidget, nMsec ) INLINE Qt_QApplication_alert( ::pPtr, pWidget, nMsec )
|
||||
METHOD allWidgets() INLINE Qt_QApplication_allWidgets( ::pPtr )
|
||||
METHOD beep() INLINE Qt_QApplication_beep( ::pPtr )
|
||||
METHOD changeOverrideCursor( pCursor ) INLINE Qt_QApplication_changeOverrideCursor( ::pPtr, pCursor )
|
||||
METHOD clipboard() INLINE Qt_QApplication_clipboard( ::pPtr )
|
||||
METHOD colorSpec() INLINE Qt_QApplication_colorSpec( ::pPtr )
|
||||
METHOD cursorFlashTime() INLINE Qt_QApplication_cursorFlashTime( ::pPtr )
|
||||
METHOD desktop() INLINE Qt_QApplication_desktop( ::pPtr )
|
||||
METHOD desktopSettingsAware() INLINE Qt_QApplication_desktopSettingsAware( ::pPtr )
|
||||
METHOD doubleClickInterval() INLINE Qt_QApplication_doubleClickInterval( ::pPtr )
|
||||
METHOD exec() INLINE Qt_QApplication_exec( ::pPtr )
|
||||
METHOD focusWidget() INLINE Qt_QApplication_focusWidget( ::pPtr )
|
||||
METHOD font() INLINE Qt_QApplication_font( ::pPtr )
|
||||
METHOD font_1( pWidget ) INLINE Qt_QApplication_font_1( ::pPtr, pWidget )
|
||||
METHOD font_2( pClassName ) INLINE Qt_QApplication_font_2( ::pPtr, pClassName )
|
||||
METHOD fontMetrics() INLINE Qt_QApplication_fontMetrics( ::pPtr )
|
||||
METHOD globalStrut() INLINE Qt_QApplication_globalStrut( ::pPtr )
|
||||
METHOD isEffectEnabled( nEffect ) INLINE Qt_QApplication_isEffectEnabled( ::pPtr, nEffect )
|
||||
METHOD isLeftToRight() INLINE Qt_QApplication_isLeftToRight( ::pPtr )
|
||||
METHOD isRightToLeft() INLINE Qt_QApplication_isRightToLeft( ::pPtr )
|
||||
METHOD keyboardInputDirection() INLINE Qt_QApplication_keyboardInputDirection( ::pPtr )
|
||||
METHOD keyboardInputInterval() INLINE Qt_QApplication_keyboardInputInterval( ::pPtr )
|
||||
METHOD keyboardInputLocale() INLINE Qt_QApplication_keyboardInputLocale( ::pPtr )
|
||||
METHOD keyboardModifiers() INLINE Qt_QApplication_keyboardModifiers( ::pPtr )
|
||||
METHOD layoutDirection() INLINE Qt_QApplication_layoutDirection( ::pPtr )
|
||||
METHOD mouseButtons() INLINE Qt_QApplication_mouseButtons( ::pPtr )
|
||||
METHOD overrideCursor() INLINE Qt_QApplication_overrideCursor( ::pPtr )
|
||||
METHOD palette() INLINE Qt_QApplication_palette( ::pPtr )
|
||||
METHOD palette_1( pWidget ) INLINE Qt_QApplication_palette_1( ::pPtr, pWidget )
|
||||
METHOD palette_2( pClassName ) INLINE Qt_QApplication_palette_2( ::pPtr, pClassName )
|
||||
METHOD quitOnLastWindowClosed() INLINE Qt_QApplication_quitOnLastWindowClosed( ::pPtr )
|
||||
METHOD restoreOverrideCursor() INLINE Qt_QApplication_restoreOverrideCursor( ::pPtr )
|
||||
METHOD setActiveWindow( pActive ) INLINE Qt_QApplication_setActiveWindow( ::pPtr, pActive )
|
||||
METHOD setColorSpec( nSpec ) INLINE Qt_QApplication_setColorSpec( ::pPtr, nSpec )
|
||||
METHOD setCursorFlashTime( nInt ) INLINE Qt_QApplication_setCursorFlashTime( ::pPtr, nInt )
|
||||
METHOD setDesktopSettingsAware( lOn ) INLINE Qt_QApplication_setDesktopSettingsAware( ::pPtr, lOn )
|
||||
METHOD setDoubleClickInterval( nInt ) INLINE Qt_QApplication_setDoubleClickInterval( ::pPtr, nInt )
|
||||
METHOD setEffectEnabled( nEffect, lEnable ) INLINE Qt_QApplication_setEffectEnabled( ::pPtr, nEffect, lEnable )
|
||||
METHOD setFont( pFont, pClassName ) INLINE Qt_QApplication_setFont( ::pPtr, pFont, pClassName )
|
||||
METHOD setGlobalStrut( pQSize ) INLINE Qt_QApplication_setGlobalStrut( ::pPtr, pQSize )
|
||||
METHOD setGraphicsSystem( cSystem ) INLINE Qt_QApplication_setGraphicsSystem( ::pPtr, cSystem )
|
||||
METHOD setKeyboardInputInterval( nInt ) INLINE Qt_QApplication_setKeyboardInputInterval( ::pPtr, nInt )
|
||||
METHOD setLayoutDirection( nDirection ) INLINE Qt_QApplication_setLayoutDirection( ::pPtr, nDirection )
|
||||
METHOD setOverrideCursor( pCursor ) INLINE Qt_QApplication_setOverrideCursor( ::pPtr, pCursor )
|
||||
METHOD setPalette( pPalette, pClassName ) INLINE Qt_QApplication_setPalette( ::pPtr, pPalette, pClassName )
|
||||
METHOD setQuitOnLastWindowClosed( lQuit ) INLINE Qt_QApplication_setQuitOnLastWindowClosed( ::pPtr, lQuit )
|
||||
METHOD setStartDragDistance( nL ) INLINE Qt_QApplication_setStartDragDistance( ::pPtr, nL )
|
||||
METHOD setStartDragTime( nMs ) INLINE Qt_QApplication_setStartDragTime( ::pPtr, nMs )
|
||||
METHOD setStyle( pStyle ) INLINE Qt_QApplication_setStyle( ::pPtr, pStyle )
|
||||
METHOD setStyle_1( cStyle ) INLINE Qt_QApplication_setStyle_1( ::pPtr, cStyle )
|
||||
METHOD setWheelScrollLines( nInt ) INLINE Qt_QApplication_setWheelScrollLines( ::pPtr, nInt )
|
||||
METHOD setWindowIcon( cIcon ) INLINE Qt_QApplication_setWindowIcon( ::pPtr, cIcon )
|
||||
METHOD startDragDistance() INLINE Qt_QApplication_startDragDistance( ::pPtr )
|
||||
METHOD startDragTime() INLINE Qt_QApplication_startDragTime( ::pPtr )
|
||||
METHOD style() INLINE Qt_QApplication_style( ::pPtr )
|
||||
METHOD syncX() INLINE Qt_QApplication_syncX( ::pPtr )
|
||||
METHOD topLevelAt( pPoint ) INLINE Qt_QApplication_topLevelAt( ::pPtr, pPoint )
|
||||
METHOD topLevelAt_1( nX, nY ) INLINE Qt_QApplication_topLevelAt_1( ::pPtr, nX, nY )
|
||||
METHOD topLevelWidgets() INLINE Qt_QApplication_topLevelWidgets( ::pPtr )
|
||||
METHOD type() INLINE Qt_QApplication_type( ::pPtr )
|
||||
METHOD wheelScrollLines() INLINE Qt_QApplication_wheelScrollLines( ::pPtr )
|
||||
METHOD widgetAt( pPoint ) INLINE Qt_QApplication_widgetAt( ::pPtr, pPoint )
|
||||
METHOD widgetAt_1( nX, nY ) INLINE Qt_QApplication_widgetAt_1( ::pPtr, nX, nY )
|
||||
METHOD windowIcon() INLINE Qt_QApplication_windowIcon( ::pPtr )
|
||||
METHOD aboutQt() INLINE Qt_QApplication_aboutQt( ::pPtr )
|
||||
METHOD closeAllWindows() INLINE Qt_QApplication_closeAllWindows( ::pPtr )
|
||||
METHOD setStyleSheet( cSheet ) INLINE Qt_QApplication_setStyleSheet( ::pPtr, cSheet )
|
||||
|
||||
120
harbour/contrib/hbqt/TQCoreApplication.prg
Normal file
120
harbour/contrib/hbqt/TQCoreApplication.prg
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot com>
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS QCoreApplication INHERIT QObject
|
||||
|
||||
VAR pParent
|
||||
VAR pPtr
|
||||
|
||||
METHOD New()
|
||||
|
||||
METHOD notify( pReceiver, pEvent ) INLINE Qt_QCoreApplication_notify( ::pPtr, pReceiver, pEvent )
|
||||
METHOD addLibraryPath( cPath ) INLINE Qt_QCoreApplication_addLibraryPath( ::pPtr, cPath )
|
||||
METHOD applicationDirPath() INLINE Qt_QCoreApplication_applicationDirPath( ::pPtr )
|
||||
METHOD applicationFilePath() INLINE Qt_QCoreApplication_applicationFilePath( ::pPtr )
|
||||
METHOD applicationName() INLINE Qt_QCoreApplication_applicationName( ::pPtr )
|
||||
METHOD applicationPid() INLINE Qt_QCoreApplication_applicationPid( ::pPtr )
|
||||
METHOD applicationVersion() INLINE Qt_QCoreApplication_applicationVersion( ::pPtr )
|
||||
METHOD arguments() INLINE Qt_QCoreApplication_arguments( ::pPtr )
|
||||
METHOD closingDown() INLINE Qt_QCoreApplication_closingDown( ::pPtr )
|
||||
METHOD exec() INLINE Qt_QCoreApplication_exec( ::pPtr )
|
||||
METHOD exit( nReturnCode ) INLINE Qt_QCoreApplication_exit( ::pPtr, nReturnCode )
|
||||
METHOD flush() INLINE Qt_QCoreApplication_flush( ::pPtr )
|
||||
METHOD hasPendingEvents() INLINE Qt_QCoreApplication_hasPendingEvents( ::pPtr )
|
||||
METHOD installTranslator( pTranslationFile ) INLINE Qt_QCoreApplication_installTranslator( ::pPtr, pTranslationFile )
|
||||
METHOD instance() INLINE Qt_QCoreApplication_instance( ::pPtr )
|
||||
METHOD libraryPaths() INLINE Qt_QCoreApplication_libraryPaths( ::pPtr )
|
||||
METHOD organizationDomain() INLINE Qt_QCoreApplication_organizationDomain( ::pPtr )
|
||||
METHOD organizationName() INLINE Qt_QCoreApplication_organizationName( ::pPtr )
|
||||
METHOD postEvent( pReceiver, pEvent ) INLINE Qt_QCoreApplication_postEvent( ::pPtr, pReceiver, pEvent )
|
||||
METHOD postEvent_1( pReceiver, pEvent, nPriority ) INLINE Qt_QCoreApplication_postEvent_1( ::pPtr, pReceiver, pEvent, nPriority )
|
||||
METHOD processEvents( nFlags ) INLINE Qt_QCoreApplication_processEvents( ::pPtr, nFlags )
|
||||
METHOD processEvents_1( nFlags, nMaxtime ) INLINE Qt_QCoreApplication_processEvents_1( ::pPtr, nFlags, nMaxtime )
|
||||
METHOD removeLibraryPath( cPath ) INLINE Qt_QCoreApplication_removeLibraryPath( ::pPtr, cPath )
|
||||
METHOD removePostedEvents( pReceiver ) INLINE Qt_QCoreApplication_removePostedEvents( ::pPtr, pReceiver )
|
||||
METHOD removePostedEvents_1( pReceiver, nEventType ) INLINE Qt_QCoreApplication_removePostedEvents_1( ::pPtr, pReceiver, nEventType )
|
||||
METHOD removeTranslator( pTranslationFile ) INLINE Qt_QCoreApplication_removeTranslator( ::pPtr, pTranslationFile )
|
||||
METHOD sendEvent( pReceiver, pEvent ) INLINE Qt_QCoreApplication_sendEvent( ::pPtr, pReceiver, pEvent )
|
||||
METHOD sendPostedEvents( pReceiver, nEvent_type ) INLINE Qt_QCoreApplication_sendPostedEvents( ::pPtr, pReceiver, nEvent_type )
|
||||
METHOD sendPostedEvents_1() INLINE Qt_QCoreApplication_sendPostedEvents_1( ::pPtr )
|
||||
METHOD setApplicationName( cApplication ) INLINE Qt_QCoreApplication_setApplicationName( ::pPtr, cApplication )
|
||||
METHOD setApplicationVersion( cVersion ) INLINE Qt_QCoreApplication_setApplicationVersion( ::pPtr, cVersion )
|
||||
METHOD setAttribute( nAttribute, lOn ) INLINE Qt_QCoreApplication_setAttribute( ::pPtr, nAttribute, lOn )
|
||||
METHOD setLibraryPaths( pPaths ) INLINE Qt_QCoreApplication_setLibraryPaths( ::pPtr, pPaths )
|
||||
METHOD setOrganizationDomain( cOrgDomain ) INLINE Qt_QCoreApplication_setOrganizationDomain( ::pPtr, cOrgDomain )
|
||||
METHOD setOrganizationName( cOrgName ) INLINE Qt_QCoreApplication_setOrganizationName( ::pPtr, cOrgName )
|
||||
METHOD startingUp() INLINE Qt_QCoreApplication_startingUp( ::pPtr )
|
||||
METHOD testAttribute( nAttribute ) INLINE Qt_QCoreApplication_testAttribute( ::pPtr, nAttribute )
|
||||
METHOD translate( pContext, pSourceText, pDisambiguation, nEncoding, nN ) INLINE Qt_QCoreApplication_translate( ::pPtr, pContext, pSourceText, pDisambiguation, nEncoding, nN )
|
||||
METHOD translate_1( pContext, pSourceText, pDisambiguation, nEncoding ) INLINE Qt_QCoreApplication_translate_1( ::pPtr, pContext, pSourceText, pDisambiguation, nEncoding )
|
||||
METHOD quit() INLINE Qt_QCoreApplication_quit( ::pPtr )
|
||||
|
||||
ENDCLASS
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
METHOD New( pParent ) CLASS QCoreApplication
|
||||
|
||||
::pParent := pParent
|
||||
|
||||
::pPtr := Qt_QCoreApplication( pParent )
|
||||
|
||||
RETURN Self
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
@@ -355,5 +355,63 @@
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#define Qt_WA_AcceptDrops 78 // Allows data from drag and drop operations to be dropped onto the widget (see QWidget::setAcceptDrops()).
|
||||
#define Qt_WA_AlwaysShowToolTips 84 // Enables tooltips for inactive windows.
|
||||
#define Qt_WA_ContentsPropagated 3 // This flag is superfluous and obsolete; it no longer has any effect. Since Qt 4.1, all widgets that do not set WA_PaintOnScreen propagate their contents.
|
||||
#define Qt_WA_CustomWhatsThis 47 // Indicates that the widget wants to continue operating normally in "What's This?" mode. This is set by the widget's author.
|
||||
#define Qt_WA_DeleteOnClose 55 // Makes Qt delete this widget when the widget has accepted the close event (see QWidget::closeEvent()).
|
||||
#define Qt_WA_Disabled 0 // Indicates that the widget is disabled, i.e. it does not receive any mouse or keyboard events. There is also a getter functions QWidget::isEnabled(). This is set/cleared by the Qt kernel.
|
||||
#define Qt_WA_ForceDisabled 32 // Indicates that the widget is explicitly disabled, i.e. it will remain disabled even when all its ancestors are set to the enabled state. This implies WA_Disabled. This is set/cleared by QWidget::setEnabled() and QWidget::setDisabled().
|
||||
#define Qt_WA_ForceUpdatesDisabled 59 // Indicates that updates are explicitly disabled for the widget; i.e. it will remain disabled even when all its ancestors are set to the updates-enabled state. This implies WA_UpdatesDisabled. This is set/cleared by QWidget::setUpdatesEnabled().
|
||||
#define Qt_WA_GroupLeader 72 // This attribute has been deprecated. Use QWidget::windowModality instead.
|
||||
#define Qt_WA_Hover 74 // Forces Qt to generate paint events when the mouse enters or leaves the widget. This feature is typically used when implementing custom styles; see the Styles example for details.
|
||||
#define Qt_WA_InputMethodEnabled 14 // Enables input methods for Asian languages. Must be set when creating custom text editing widgets. On Windows CE this flag can be used in addition to QApplication::autoSipEnabled to automatically display the SIP when entering a widget.
|
||||
#define Qt_WA_KeyboardFocusChange 77 // Set on a toplevel window when the users changes focus with the keyboard (tab, backtab, or shortcut).
|
||||
#define Qt_WA_KeyCompression 33 // Enables key event compression if set, and disables it if not set. By default key compression is off, so widgets receive one key press event for each key press (or more, since autorepeat is usually on). If you turn it on and your program doesn't keep up with key input, Qt may try to compress key events so that more than one character can be processed in each event. For example, a word processor widget might receive 2, 3 or more characters in each QKeyEvent::text(), if the layout recalculation takes too long for the CPU. If a widget supports multiple character unicode input, it is always safe to turn the compression on. Qt performs key event compression only for printable characters. Qt_Modifier keys, cursor movement keys, function keys and miscellaneous action keys (e.g. Escape, Enter, Backspace, PrintScreen) will stop key event compression, even if there are more compressible key events available. Platforms other than Mac and X11 do not support this compression, in which case turning it on will have no effect. This is set/cleared by the widget's author.
|
||||
#define Qt_WA_LayoutOnEntireRect 48 // Indicates that the widget wants QLayout to operate on the entire QWidget::rect(), not only on QWidget::contentsRect(). This is set by the widget's author.
|
||||
#define Qt_WA_LayoutUsesWidgetRect 92 // Ignore the layout item rect from the style when laying out this widget with QLayout. This makes a difference in QMacStyle and QPlastiqueStyle for some widgets.
|
||||
#define Qt_WA_MacNoClickThrough 12 // When a widget that has this attribute set is clicked, and its window is inactive, the click will make the window active but won't be seen by the widget. Typical use of this attribute is on widgets with "destructive" actions, such as a "Delete" button. WA_MacNoClickThrough also applies to all child widgets of the widget that has it set.
|
||||
#define Qt_WA_MacOpaqueSizeGrip 85 // Indicates that the native Carbon size grip should be opaque instead of transparent (the default). This attribute is only applicable to Mac OS X and is set by the widget's author.
|
||||
#define Qt_WA_MacShowFocusRect 88 // Indicates that this widget should get a QFocusFrame around it. Some widgets draw their own focus halo regardless of this attribute. Not that the QWidget::focusPolicy also plays the main role in whether something is given focus or not, this only controls whether or not this gets the focus frame. This attribute is only applicable to Mac OS X.
|
||||
#define Qt_WA_MacNormalSize 89 // Indicates the widget should have the normal size for widgets in Mac OS X. This attribute is only applicable to Mac OS X.
|
||||
#define Qt_WA_MacSmallSize 90 // Indicates the widget should have the small size for widgets in Mac OS X. This attribute is only applicable to Mac OS X.
|
||||
#define Qt_WA_MacMiniSize 91 // Indicates the widget should have the mini size for widgets in Mac OS X. This attribute is only applicable to Mac OS X.
|
||||
#define Qt_WA_MacVariableSize 102 // Indicates the widget can choose between alternative sizes for widgets to avoid clipping. This attribute is only applicable to Mac OS X.
|
||||
#define Qt_WA_MacBrushedMetal 46 // Indicates the widget should be drawn in the brushed metal style as supported by the windowing system. This attribute is only applicable to Mac OS X.
|
||||
#define Qt_WA_Mapped 11 // Indicates that the widget is mapped on screen. This is set/cleared by the Qt kernel.
|
||||
#define Qt_WA_MouseNoMask 71 // Makes the widget receive mouse events for the entire widget regardless of the currently set mask, overriding QWidget::setMask(). This is not applicable for top-level windows.
|
||||
#define Qt_WA_MouseTracking 2 // Indicates that the widget has mouse tracking enabled. See QWidget::mouseTracking.
|
||||
#define Qt_WA_Moved 43 // Indicates that the widget has an explicit position. This is set/cleared by QWidget::move() and by QWidget::setGeometry().
|
||||
#define Qt_WA_MSWindowsUseDirect3D 94 // Makes drawing to a widget with this attribute set use the Direct3D paint engine, if the Direct3D paint engine is available. This functionality is experimental.
|
||||
#define Qt_WA_NoBackground WA_OpaquePaintEvent // This value is obsolete. Use WA_OpaquePaintEvent instead.
|
||||
#define Qt_WA_NoChildEventsForParent 58 // Indicates that the widget does not want ChildAdded or ChildRemoved events sent to its parent. This is rarely necessary but can help to avoid automatic insertion widgets like splitters and layouts. This is set by a widget's author.
|
||||
#define Qt_WA_NoChildEventsFromChildren 39 // Indicates that the widget does not want to receive ChildAdded or ChildRemoved events sent from its children. This is set by a widget's author.
|
||||
#define Qt_WA_NoMouseReplay 54 // Used for pop-up widgets. Indicates that the most recent mouse press event should not be replayed when the pop-up widget closes. The flag is set by the widget's author and cleared by the Qt kernel every time the widget receives a new mouse event.
|
||||
#define Qt_WA_NoMousePropagation 73 // Prohibits mouse events from being propagated to the widget's parent. This attribute is disabled by default.
|
||||
#define Qt_WA_TransparentForMouseEvents 51 // When enabled, this attribute disables the delivery of mouse events to the widget and its children. Mouse events are delivered to other widgets as if the widget and its children were not present in the widget hierarchy; mouse clicks and other events effectively "pass through" them. This attribute is disabled by default.
|
||||
#define Qt_WA_NoSystemBackground 9 // Indicates that the widget has no background, i.e. when the widget receives paint events, the background is not automatically repainted. Note: Unlike WA_OpaquePaintEvent, newly exposed areas are never filled with the background (e.g., after showing a window for the first time the user can see "through" it until the application processes the paint events). This flag is set or cleared by the widget's author.
|
||||
#define Qt_WA_OpaquePaintEvent 4 // Indicates that the widget paints all its pixels when it receives a paint event. Thus, it is not required for operations like updating, resizing, scrolling and focus changes to erase the widget before generating paint events. The use of WA_OpaquePaintEvent provides a small optimization by helping to reduce flicker on systems that do not support double buffering and avoiding computational cycles necessary to erase the background prior to painting. Note: Unlike WA_NoSystemBackground, WA_OpaquePaintEvent makes an effort to avoid transparent window backgrounds. This flag is set or cleared by the widget's author.
|
||||
#define Qt_WA_OutsideWSRange 49 // Indicates that the widget is outside the valid range of the window system's coordinate system. A widget outside the valid range cannot be mapped on screen. This is set/cleared by the Qt kernel.
|
||||
#define Qt_WA_PaintOnScreen 8 // Indicates that the widget wants to draw directly onto the screen. Widgets with this attribute set do not participate in composition management, i.e. they cannot be semi-transparent or shine through semi-transparent overlapping widgets. Note: This flag is only supported on X11 and it disables double buffering. On Qt for Embedded Linux, the flag only works when set on a top-level widget and it relies on support from the active screen driver. This flag is set or cleared by the widget's author. To render outside of Qt's paint system, e.g., if you require native painting primitives, you need to reimplement QWidget::paintEngine() to return 0 and set this flag.
|
||||
#define Qt_WA_PaintOutsidePaintEvent 13 // Makes it possible to use QPainter to paint on the widget outside paintEvent(). This flag is not supported on Windows, Mac OS X or Embedded Linux. We recommend that you use it only when porting Qt 3 code to Qt 4.
|
||||
#define Qt_WA_PaintUnclipped 52 // Makes all painters operating on this widget unclipped. Children of this widget or other widgets in front of it do not clip the area the painter can paint on. This flag is only supported for widgets with the WA_PaintOnScreen flag set. The preferred way to do this in a cross platform way is to create a transparent widget that lies in front of the other widgets.
|
||||
#define Qt_WA_PendingMoveEvent 34 // Indicates that a move event is pending, e.g., when a hidden widget was moved. This flag is set or cleared by the Qt kernel.
|
||||
#define Qt_WA_PendingResizeEvent 35 // Indicates that a resize event is pending, e.g., when a hidden widget was resized. This flag is set or cleared by the Qt kernel.
|
||||
#define Qt_WA_QuitOnClose 76 // Makes Qt quit the application when the last widget with the attribute set has accepted closeEvent(). This behavior can be modified with the QApplication::quitOnLastWindowClosed property. By default this attribute is set for all widgets of type Qt_Window.
|
||||
#define Qt_WA_Resized 42 // Indicates that the widget has an explicit size. This flag is set or cleared by QWidget::resize() and QWidget::setGeometry().
|
||||
#define Qt_WA_RightToLeft 56 // Indicates that the layout direction for the widget is right to left.
|
||||
#define Qt_WA_SetCursor 38 // Indicates that the widget has a cursor of its own. This flag is set or cleared by QWidget::setCursor() and QWidget::unsetCursor().
|
||||
#define Qt_WA_SetFont 37 // Indicates that the widget has a font of its own. This flag is set or cleared by QWidget::setFont().
|
||||
#define Qt_WA_SetPalette 36 // Indicates that the widget has a palette of its own. This flag is set or cleared by QWidget::setPalette().
|
||||
#define Qt_WA_SetStyle 86 // Indicates that the widget has a style of its own. This flag is set or cleared by QWidget::setStyle().
|
||||
#define Qt_WA_ShowModal 70 // This attribute has been deprecated. Use QWidget::windowModality instead.
|
||||
#define Qt_WA_StaticContents 5 // Indicates that the widget contents are north-west aligned and static. On resize, such a widget will receive paint events only for parts of itself that are newly visible. This flag is set or cleared by the widget's author.
|
||||
#define Qt_WA_StyleSheet 97 // Indicates that the widget is styled using a style sheet.
|
||||
#define Qt_WA_TranslucentBackground 120 // Indicates that the widget should have a translucent background, i.e., any non-opaque regions of the widgets will be translucent because the widget will have an alpha channel. Setting this flag causes WA_NoSystemBackground to be set. This flag is set or cleared by the widget's author.
|
||||
#define Qt_WA_UnderMouse 1 // Indicates that the widget is under the mouse cursor. The value is not updated correctly during drag and drop operations. There is also a getter function, QWidget::underMouse(). This flag is set or cleared by the Qt kernel.
|
||||
#define Qt_WA_UpdatesDisabled 10 //
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#define _HBQT_CH
|
||||
#endif
|
||||
@@ -66,6 +66,7 @@
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
|
||||
#define hbqt_par_QTranslator( n ) ( ( QTranslator* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QWidgetItem( n ) ( ( QWidgetItem* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QWidgetAction( n ) ( ( QWidgetAction* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QLatin1String( n ) ( ( QLatin1String* ) hb_parptr( n ) )
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
#include "hbapierr.h"
|
||||
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtCore/QLocale>
|
||||
#include <QtGui/QIcon>
|
||||
|
||||
void release_codeblocks();
|
||||
|
||||
@@ -153,7 +155,18 @@ HB_CALL_ON_STARTUP_END( _hb_hbqt_init_ )
|
||||
#pragma data_seg()
|
||||
#endif
|
||||
|
||||
HB_FUNC( QT_QAPPLICATION_EXEC )
|
||||
HB_FUNC( QT_QAPPLICATION_EXECUTE )
|
||||
{
|
||||
hb_retni( app->exec() );
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QAPPLICATION_QUIT )
|
||||
{
|
||||
app->quit();
|
||||
}
|
||||
|
||||
#if 0
|
||||
HB_FUNC( QT_QAPPLICATION_EXECUTE )
|
||||
{
|
||||
hb_retni( app->exec() );
|
||||
}
|
||||
@@ -167,6 +180,7 @@ HB_FUNC( QT_QAPPLICATION_QUIT )
|
||||
{
|
||||
app->quit();
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* virtual void commitData ( QSessionManager & manager )
|
||||
@@ -232,6 +246,542 @@ HB_FUNC( QT_QAPPLICATION_STYLESHEET )
|
||||
hb_retc( hbqt_par_QApplication( 1 )->styleSheet().toLatin1().data() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QWidget * activeModalWidget ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_ACTIVEMODALWIDGET )
|
||||
{
|
||||
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->activeModalWidget() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QWidget * activePopupWidget ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_ACTIVEPOPUPWIDGET )
|
||||
{
|
||||
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->activePopupWidget() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QWidget * activeWindow ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_ACTIVEWINDOW )
|
||||
{
|
||||
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->activeWindow() );
|
||||
}
|
||||
|
||||
/*
|
||||
* void alert ( QWidget * widget, int msec = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_ALERT )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->alert( hbqt_par_QWidget( 2 ), hb_parni( 3 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QWidgetList allWidgets ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_ALLWIDGETS )
|
||||
{
|
||||
hb_retptr( new QWidgetList( hbqt_par_QApplication( 1 )->allWidgets() ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void beep ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_BEEP )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->beep();
|
||||
}
|
||||
|
||||
/*
|
||||
* void changeOverrideCursor ( const QCursor & cursor )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_CHANGEOVERRIDECURSOR )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->changeOverrideCursor( *hbqt_par_QCursor( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QClipboard * clipboard ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_CLIPBOARD )
|
||||
{
|
||||
hb_retptr( ( QClipboard* ) hbqt_par_QApplication( 1 )->clipboard() );
|
||||
}
|
||||
|
||||
/*
|
||||
* int colorSpec ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_COLORSPEC )
|
||||
{
|
||||
hb_retni( hbqt_par_QApplication( 1 )->colorSpec() );
|
||||
}
|
||||
|
||||
/*
|
||||
* int cursorFlashTime ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_CURSORFLASHTIME )
|
||||
{
|
||||
hb_retni( hbqt_par_QApplication( 1 )->cursorFlashTime() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QDesktopWidget * desktop ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_DESKTOP )
|
||||
{
|
||||
hb_retptr( ( QDesktopWidget* ) hbqt_par_QApplication( 1 )->desktop() );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool desktopSettingsAware ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_DESKTOPSETTINGSAWARE )
|
||||
{
|
||||
hb_retl( hbqt_par_QApplication( 1 )->desktopSettingsAware() );
|
||||
}
|
||||
|
||||
/*
|
||||
* int doubleClickInterval ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_DOUBLECLICKINTERVAL )
|
||||
{
|
||||
hb_retni( hbqt_par_QApplication( 1 )->doubleClickInterval() );
|
||||
}
|
||||
|
||||
/*
|
||||
* int exec ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_EXEC )
|
||||
{
|
||||
hb_retni( hbqt_par_QApplication( 1 )->exec() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QWidget * focusWidget ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_FOCUSWIDGET )
|
||||
{
|
||||
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->focusWidget() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QFont font ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_FONT )
|
||||
{
|
||||
hb_retptr( new QFont( hbqt_par_QApplication( 1 )->font() ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QFont font ( const QWidget * widget )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_FONT_1 )
|
||||
{
|
||||
hb_retptr( new QFont( hbqt_par_QApplication( 1 )->font( hbqt_par_QWidget( 2 ) ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QFont font ( const char * className )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_FONT_2 )
|
||||
{
|
||||
hb_retptr( new QFont( hbqt_par_QApplication( 1 )->font( hbqt_par_char( 2 ) ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QFontMetrics fontMetrics ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_FONTMETRICS )
|
||||
{
|
||||
hb_retptr( new QFontMetrics( hbqt_par_QApplication( 1 )->fontMetrics() ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QSize globalStrut ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_GLOBALSTRUT )
|
||||
{
|
||||
hb_retptr( new QSize( hbqt_par_QApplication( 1 )->globalStrut() ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isEffectEnabled ( Qt::UIEffect effect )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_ISEFFECTENABLED )
|
||||
{
|
||||
hb_retl( hbqt_par_QApplication( 1 )->isEffectEnabled( ( Qt::UIEffect ) hb_parni( 2 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isLeftToRight ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_ISLEFTTORIGHT )
|
||||
{
|
||||
hb_retl( hbqt_par_QApplication( 1 )->isLeftToRight() );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isRightToLeft ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_ISRIGHTTOLEFT )
|
||||
{
|
||||
hb_retl( hbqt_par_QApplication( 1 )->isRightToLeft() );
|
||||
}
|
||||
|
||||
/*
|
||||
* Qt::LayoutDirection keyboardInputDirection ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_KEYBOARDINPUTDIRECTION )
|
||||
{
|
||||
hb_retni( ( Qt::LayoutDirection ) hbqt_par_QApplication( 1 )->keyboardInputDirection() );
|
||||
}
|
||||
|
||||
/*
|
||||
* int keyboardInputInterval ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_KEYBOARDINPUTINTERVAL )
|
||||
{
|
||||
hb_retni( hbqt_par_QApplication( 1 )->keyboardInputInterval() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QLocale keyboardInputLocale ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_KEYBOARDINPUTLOCALE )
|
||||
{
|
||||
hb_retptr( new QLocale( hbqt_par_QApplication( 1 )->keyboardInputLocale() ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* Qt::KeyboardModifiers keyboardModifiers ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_KEYBOARDMODIFIERS )
|
||||
{
|
||||
hb_retni( ( Qt::KeyboardModifiers ) hbqt_par_QApplication( 1 )->keyboardModifiers() );
|
||||
}
|
||||
|
||||
/*
|
||||
* Qt::LayoutDirection layoutDirection ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_LAYOUTDIRECTION )
|
||||
{
|
||||
hb_retni( ( Qt::LayoutDirection ) hbqt_par_QApplication( 1 )->layoutDirection() );
|
||||
}
|
||||
|
||||
/*
|
||||
* Qt::MouseButtons mouseButtons ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_MOUSEBUTTONS )
|
||||
{
|
||||
hb_retni( ( Qt::MouseButtons ) hbqt_par_QApplication( 1 )->mouseButtons() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QCursor * overrideCursor ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_OVERRIDECURSOR )
|
||||
{
|
||||
hb_retptr( ( QCursor* ) hbqt_par_QApplication( 1 )->overrideCursor() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QPalette palette ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_PALETTE )
|
||||
{
|
||||
hb_retptr( new QPalette( hbqt_par_QApplication( 1 )->palette() ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QPalette palette ( const QWidget * widget )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_PALETTE_1 )
|
||||
{
|
||||
hb_retptr( new QPalette( hbqt_par_QApplication( 1 )->palette( hbqt_par_QWidget( 2 ) ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QPalette palette ( const char * className )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_PALETTE_2 )
|
||||
{
|
||||
hb_retptr( new QPalette( hbqt_par_QApplication( 1 )->palette( hbqt_par_char( 2 ) ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool quitOnLastWindowClosed ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_QUITONLASTWINDOWCLOSED )
|
||||
{
|
||||
hb_retl( hbqt_par_QApplication( 1 )->quitOnLastWindowClosed() );
|
||||
}
|
||||
|
||||
/*
|
||||
* void restoreOverrideCursor ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_RESTOREOVERRIDECURSOR )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->restoreOverrideCursor();
|
||||
}
|
||||
|
||||
/*
|
||||
* void setActiveWindow ( QWidget * active )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETACTIVEWINDOW )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setActiveWindow( hbqt_par_QWidget( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setColorSpec ( int spec )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETCOLORSPEC )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setColorSpec( hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setCursorFlashTime ( int )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETCURSORFLASHTIME )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setCursorFlashTime( hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setDesktopSettingsAware ( bool on )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETDESKTOPSETTINGSAWARE )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setDesktopSettingsAware( hb_parl( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setDoubleClickInterval ( int )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETDOUBLECLICKINTERVAL )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setDoubleClickInterval( hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setEffectEnabled ( Qt::UIEffect effect, bool enable = true )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETEFFECTENABLED )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setEffectEnabled( ( Qt::UIEffect ) hb_parni( 2 ), hb_parl( 3 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setFont ( const QFont & font, const char * className = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETFONT )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setFont( *hbqt_par_QFont( 2 ), hbqt_par_char( 3 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setGlobalStrut ( const QSize & )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETGLOBALSTRUT )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setGlobalStrut( *hbqt_par_QSize( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setGraphicsSystem ( const QString & system )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETGRAPHICSSYSTEM )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setGraphicsSystem( hbqt_par_QString( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setKeyboardInputInterval ( int )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETKEYBOARDINPUTINTERVAL )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setKeyboardInputInterval( hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setLayoutDirection ( Qt::LayoutDirection direction )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETLAYOUTDIRECTION )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setLayoutDirection( ( Qt::LayoutDirection ) hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setOverrideCursor ( const QCursor & cursor )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETOVERRIDECURSOR )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setOverrideCursor( *hbqt_par_QCursor( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setPalette ( const QPalette & palette, const char * className = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETPALETTE )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setPalette( *hbqt_par_QPalette( 2 ), hbqt_par_char( 3 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setQuitOnLastWindowClosed ( bool quit )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETQUITONLASTWINDOWCLOSED )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setQuitOnLastWindowClosed( hb_parl( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setStartDragDistance ( int l )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETSTARTDRAGDISTANCE )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setStartDragDistance( hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setStartDragTime ( int ms )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETSTARTDRAGTIME )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setStartDragTime( hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setStyle ( QStyle * style )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETSTYLE )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setStyle( hbqt_par_QStyle( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QStyle * setStyle ( const QString & style )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETSTYLE_1 )
|
||||
{
|
||||
hb_retptr( ( QStyle* ) hbqt_par_QApplication( 1 )->setStyle( hbqt_par_QString( 2 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setWheelScrollLines ( int )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETWHEELSCROLLLINES )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setWheelScrollLines( hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setWindowIcon ( const QIcon & icon )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SETWINDOWICON )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->setWindowIcon( QIcon( hbqt_par_QString( 2 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int startDragDistance ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_STARTDRAGDISTANCE )
|
||||
{
|
||||
hb_retni( hbqt_par_QApplication( 1 )->startDragDistance() );
|
||||
}
|
||||
|
||||
/*
|
||||
* int startDragTime ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_STARTDRAGTIME )
|
||||
{
|
||||
hb_retni( hbqt_par_QApplication( 1 )->startDragTime() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QStyle * style ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_STYLE )
|
||||
{
|
||||
hb_retptr( ( QStyle* ) hbqt_par_QApplication( 1 )->style() );
|
||||
}
|
||||
|
||||
/*
|
||||
* void syncX ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_SYNCX )
|
||||
{
|
||||
hbqt_par_QApplication( 1 )->syncX();
|
||||
}
|
||||
|
||||
/*
|
||||
* QWidget * topLevelAt ( const QPoint & point )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_TOPLEVELAT )
|
||||
{
|
||||
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->topLevelAt( *hbqt_par_QPoint( 2 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QWidget * topLevelAt ( int x, int y )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_TOPLEVELAT_1 )
|
||||
{
|
||||
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->topLevelAt( hb_parni( 2 ), hb_parni( 3 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QWidgetList topLevelWidgets ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_TOPLEVELWIDGETS )
|
||||
{
|
||||
hb_retptr( new QWidgetList( hbqt_par_QApplication( 1 )->topLevelWidgets() ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* Type type ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_TYPE )
|
||||
{
|
||||
hb_retni( ( QApplication::Type ) hbqt_par_QApplication( 1 )->type() );
|
||||
}
|
||||
|
||||
/*
|
||||
* int wheelScrollLines ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_WHEELSCROLLLINES )
|
||||
{
|
||||
hb_retni( hbqt_par_QApplication( 1 )->wheelScrollLines() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QWidget * widgetAt ( const QPoint & point )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_WIDGETAT )
|
||||
{
|
||||
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->widgetAt( *hbqt_par_QPoint( 2 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QWidget * widgetAt ( int x, int y )
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_WIDGETAT_1 )
|
||||
{
|
||||
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->widgetAt( hb_parni( 2 ), hb_parni( 3 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QIcon windowIcon ()
|
||||
*/
|
||||
HB_FUNC( QT_QAPPLICATION_WINDOWICON )
|
||||
{
|
||||
hb_retptr( new QIcon( hbqt_par_QApplication( 1 )->windowIcon() ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void aboutQt ()
|
||||
*/
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* Constructed[ 2/3 [ 66.67% ] ]
|
||||
* Constructed[ 40/41 [ 97.56% ] ]
|
||||
*
|
||||
* *** Unconvered Prototypes ***
|
||||
* -----------------------------
|
||||
@@ -76,12 +76,10 @@
|
||||
* QCoreApplication ( int & argc, char ** argv )
|
||||
* ~QCoreApplication ()
|
||||
*/
|
||||
#if 0
|
||||
HB_FUNC( QT_QCOREAPPLICATION )
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* virtual bool notify ( QObject * receiver, QEvent * event )
|
||||
@@ -91,6 +89,310 @@ HB_FUNC( QT_QCOREAPPLICATION_NOTIFY )
|
||||
hb_retl( hbqt_par_QCoreApplication( 1 )->notify( hbqt_par_QObject( 2 ), hbqt_par_QEvent( 3 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void addLibraryPath ( const QString & path )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_ADDLIBRARYPATH )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->addLibraryPath( hbqt_par_QString( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QString applicationDirPath ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_APPLICATIONDIRPATH )
|
||||
{
|
||||
hb_retc( hbqt_par_QCoreApplication( 1 )->applicationDirPath().toLatin1().data() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QString applicationFilePath ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_APPLICATIONFILEPATH )
|
||||
{
|
||||
hb_retc( hbqt_par_QCoreApplication( 1 )->applicationFilePath().toLatin1().data() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QString applicationName ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_APPLICATIONNAME )
|
||||
{
|
||||
hb_retc( hbqt_par_QCoreApplication( 1 )->applicationName().toLatin1().data() );
|
||||
}
|
||||
|
||||
/*
|
||||
* qint64 applicationPid ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_APPLICATIONPID )
|
||||
{
|
||||
hb_retni( hbqt_par_QCoreApplication( 1 )->applicationPid() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QString applicationVersion ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_APPLICATIONVERSION )
|
||||
{
|
||||
hb_retc( hbqt_par_QCoreApplication( 1 )->applicationVersion().toLatin1().data() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QStringList arguments ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_ARGUMENTS )
|
||||
{
|
||||
hb_retptr( new QStringList( hbqt_par_QCoreApplication( 1 )->arguments() ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool closingDown ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_CLOSINGDOWN )
|
||||
{
|
||||
hb_retl( hbqt_par_QCoreApplication( 1 )->closingDown() );
|
||||
}
|
||||
|
||||
/*
|
||||
* int exec ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_EXEC )
|
||||
{
|
||||
hb_retni( hbqt_par_QCoreApplication( 1 )->exec() );
|
||||
}
|
||||
|
||||
/*
|
||||
* void exit ( int returnCode = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_EXIT )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->exit( hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void flush ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_FLUSH )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->flush();
|
||||
}
|
||||
|
||||
/*
|
||||
* bool hasPendingEvents ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_HASPENDINGEVENTS )
|
||||
{
|
||||
hb_retl( hbqt_par_QCoreApplication( 1 )->hasPendingEvents() );
|
||||
}
|
||||
|
||||
/*
|
||||
* void installTranslator ( QTranslator * translationFile )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_INSTALLTRANSLATOR )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->installTranslator( hbqt_par_QTranslator( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QCoreApplication * instance ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_INSTANCE )
|
||||
{
|
||||
hb_retptr( ( QCoreApplication* ) hbqt_par_QCoreApplication( 1 )->instance() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QStringList libraryPaths ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_LIBRARYPATHS )
|
||||
{
|
||||
hb_retptr( new QStringList( hbqt_par_QCoreApplication( 1 )->libraryPaths() ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QString organizationDomain ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_ORGANIZATIONDOMAIN )
|
||||
{
|
||||
hb_retc( hbqt_par_QCoreApplication( 1 )->organizationDomain().toLatin1().data() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QString organizationName ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_ORGANIZATIONNAME )
|
||||
{
|
||||
hb_retc( hbqt_par_QCoreApplication( 1 )->organizationName().toLatin1().data() );
|
||||
}
|
||||
|
||||
/*
|
||||
* void postEvent ( QObject * receiver, QEvent * event )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_POSTEVENT )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->postEvent( hbqt_par_QObject( 2 ), hbqt_par_QEvent( 3 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void postEvent ( QObject * receiver, QEvent * event, int priority )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_POSTEVENT_1 )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->postEvent( hbqt_par_QObject( 2 ), hbqt_par_QEvent( 3 ), hb_parni( 4 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void processEvents ( QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_PROCESSEVENTS )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->processEvents( ( HB_ISNUM( 2 ) ? ( QEventLoop::ProcessEventsFlags ) hb_parni( 2 ) : ( QEventLoop::ProcessEventsFlags ) QEventLoop::AllEvents ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void processEvents ( QEventLoop::ProcessEventsFlags flags, int maxtime )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_PROCESSEVENTS_1 )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->processEvents( ( QEventLoop::ProcessEventsFlags ) hb_parni( 2 ), hb_parni( 3 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void removeLibraryPath ( const QString & path )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_REMOVELIBRARYPATH )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->removeLibraryPath( hbqt_par_QString( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void removePostedEvents ( QObject * receiver )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_REMOVEPOSTEDEVENTS )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->removePostedEvents( hbqt_par_QObject( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void removePostedEvents ( QObject * receiver, int eventType )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_REMOVEPOSTEDEVENTS_1 )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->removePostedEvents( hbqt_par_QObject( 2 ), hb_parni( 3 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void removeTranslator ( QTranslator * translationFile )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_REMOVETRANSLATOR )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->removeTranslator( hbqt_par_QTranslator( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool sendEvent ( QObject * receiver, QEvent * event )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_SENDEVENT )
|
||||
{
|
||||
hb_retl( hbqt_par_QCoreApplication( 1 )->sendEvent( hbqt_par_QObject( 2 ), hbqt_par_QEvent( 3 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void sendPostedEvents ( QObject * receiver, int event_type )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_SENDPOSTEDEVENTS )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->sendPostedEvents( hbqt_par_QObject( 2 ), hb_parni( 3 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void sendPostedEvents ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_SENDPOSTEDEVENTS_1 )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->sendPostedEvents();
|
||||
}
|
||||
|
||||
/*
|
||||
* void setApplicationName ( const QString & application )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_SETAPPLICATIONNAME )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->setApplicationName( hbqt_par_QString( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setApplicationVersion ( const QString & version )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_SETAPPLICATIONVERSION )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->setApplicationVersion( hbqt_par_QString( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setAttribute ( Qt::ApplicationAttribute attribute, bool on = true )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_SETATTRIBUTE )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->setAttribute( ( Qt::ApplicationAttribute ) hb_parni( 2 ), hb_parl( 3 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setLibraryPaths ( const QStringList & paths )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_SETLIBRARYPATHS )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->setLibraryPaths( *hbqt_par_QStringList( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setOrganizationDomain ( const QString & orgDomain )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_SETORGANIZATIONDOMAIN )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->setOrganizationDomain( hbqt_par_QString( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setOrganizationName ( const QString & orgName )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_SETORGANIZATIONNAME )
|
||||
{
|
||||
hbqt_par_QCoreApplication( 1 )->setOrganizationName( hbqt_par_QString( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool startingUp ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_STARTINGUP )
|
||||
{
|
||||
hb_retl( hbqt_par_QCoreApplication( 1 )->startingUp() );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool testAttribute ( Qt::ApplicationAttribute attribute )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_TESTATTRIBUTE )
|
||||
{
|
||||
hb_retl( hbqt_par_QCoreApplication( 1 )->testAttribute( ( Qt::ApplicationAttribute ) hb_parni( 2 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QString translate ( const char * context, const char * sourceText, const char * disambiguation, Encoding encoding, int n )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_TRANSLATE )
|
||||
{
|
||||
hb_retc( hbqt_par_QCoreApplication( 1 )->translate( hbqt_par_char( 2 ), hbqt_par_char( 3 ), hbqt_par_char( 4 ), ( QCoreApplication::Encoding ) hb_parni( 5 ), hb_parni( 6 ) ).toLatin1().data() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QString translate ( const char * context, const char * sourceText, const char * disambiguation = 0, Encoding encoding = CodecForTr )
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION_TRANSLATE_1 )
|
||||
{
|
||||
hb_retc( hbqt_par_QCoreApplication( 1 )->translate( hbqt_par_char( 2 ), hbqt_par_char( 3 ), hbqt_par_char( 4 ), ( HB_ISNUM( 5 ) ? ( QCoreApplication::Encoding ) hb_parni( 5 ) : ( QCoreApplication::Encoding ) QCoreApplication::CodecForTr ) ).toLatin1().data() );
|
||||
}
|
||||
|
||||
/*
|
||||
* void quit ()
|
||||
*/
|
||||
|
||||
@@ -814,14 +814,9 @@ MyMainWindow::MyMainWindow()
|
||||
setFocusPolicy( Qt::StrongFocus );
|
||||
setAttribute( Qt::WA_DeleteOnClose );
|
||||
}
|
||||
|
||||
MyMainWindow::~MyMainWindow( void )
|
||||
{
|
||||
}
|
||||
|
||||
void MyMainWindow::closeEvent( QCloseEvent *event )
|
||||
{
|
||||
event->accept();
|
||||
destroy();
|
||||
}
|
||||
HB_FUNC( QT_MYMAINWINDOW )
|
||||
{
|
||||
@@ -884,41 +879,20 @@ bool Events::eventFilter( QObject * obj, QEvent * event )
|
||||
if( found == 0 )
|
||||
return false;
|
||||
|
||||
PHB_ITEM pObject = hb_itemPutPtr( NULL, ( QObject * ) obj );
|
||||
PHB_ITEM pEvent = hb_itemPutPtr( NULL, ( QEvent * ) event );
|
||||
PHB_ITEM pObject = hb_itemPutPtr( NULL, obj );
|
||||
PHB_ITEM pEvent = hb_itemPutPtr( NULL, event );
|
||||
|
||||
ret = hb_itemGetL( hb_vmEvalBlockV( ( PHB_ITEM ) listBlock.at( found - 1 ), 2, pObject, pEvent ) );
|
||||
|
||||
hb_itemRelease( pObject );
|
||||
hb_itemRelease( pEvent );
|
||||
|
||||
switch( eventtype )
|
||||
if( eventtype == QEvent::Close )
|
||||
{
|
||||
case QEvent::Close:
|
||||
{
|
||||
if( ret )
|
||||
event->accept();
|
||||
else
|
||||
event->ignore();
|
||||
return true;
|
||||
}
|
||||
case QEvent::Enter:
|
||||
case QEvent::Show:
|
||||
case QEvent::Hide:
|
||||
case QEvent::KeyPress:
|
||||
case QEvent::KeyRelease:
|
||||
case QEvent::Leave:
|
||||
{
|
||||
return true;
|
||||
}
|
||||
case QEvent::FocusIn:
|
||||
case QEvent::FocusOut:
|
||||
case QEvent::Paint:
|
||||
{
|
||||
return false;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
if( ret == true )
|
||||
event->accept();
|
||||
else
|
||||
event->ignore();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -973,6 +947,7 @@ HB_FUNC( QT_DISCONNECT_EVENT )
|
||||
{
|
||||
QObject * object = ( QObject * ) hb_parptr( 1 );
|
||||
int type = hb_parni( 2 );
|
||||
bool bRet = false;
|
||||
|
||||
char str[ 10 ];
|
||||
hb_snprintf( str, sizeof( str ), "%s%i%s", "P", type, "P" ); /* Make it a unique identifier */
|
||||
@@ -985,8 +960,10 @@ HB_FUNC( QT_DISCONNECT_EVENT )
|
||||
hb_itemRelease( s_e->listBlock.at( i - 1 ) );
|
||||
s_e->listBlock[ i - 1 ] = NULL;
|
||||
s_e->listActv[ i - 1 ] = false;
|
||||
bRet = true;
|
||||
}
|
||||
}
|
||||
hb_retl( bRet );
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
@@ -80,10 +80,6 @@ class MyMainWindow : public QMainWindow
|
||||
public:
|
||||
MyMainWindow();
|
||||
virtual ~MyMainWindow();
|
||||
|
||||
public:
|
||||
void closeEvent( QCloseEvent *event );
|
||||
|
||||
};
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'hbqt_slots.h'
|
||||
**
|
||||
** Created: Sun Jun 21 14:24:40 2009
|
||||
** Created: Wed Jun 24 22:45:58 2009
|
||||
** by: The Qt Meta Object Compiler version 61 (Qt 4.5.0)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
<CLASS>
|
||||
Inherit =
|
||||
Inherit = QCoreApplication
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
@@ -71,6 +71,8 @@ New =
|
||||
#include "hbapierr.h"
|
||||
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtCore/QLocale>
|
||||
#include <QtGui/QIcon>
|
||||
|
||||
void release_codeblocks();
|
||||
|
||||
@@ -153,7 +155,18 @@ HB_CALL_ON_STARTUP_END( _hb_hbqt_init_ )
|
||||
#pragma data_seg()
|
||||
#endif
|
||||
|
||||
HB_FUNC( QT_QAPPLICATION_EXEC )
|
||||
HB_FUNC( QT_QAPPLICATION_EXECUTE )
|
||||
{
|
||||
hb_retni( app->exec() );
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QAPPLICATION_QUIT )
|
||||
{
|
||||
app->quit();
|
||||
}
|
||||
|
||||
#if 0
|
||||
HB_FUNC( QT_QAPPLICATION_EXECUTE )
|
||||
{
|
||||
hb_retni( app->exec() );
|
||||
}
|
||||
@@ -167,6 +180,7 @@ HB_FUNC( QT_QAPPLICATION_QUIT )
|
||||
{
|
||||
app->quit();
|
||||
}
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
@@ -190,6 +204,79 @@ QString sessionId () const
|
||||
QString sessionKey () const
|
||||
void setInputContext ( QInputContext * inputContext )
|
||||
QString styleSheet () const
|
||||
|
||||
QWidget * activeModalWidget ()
|
||||
QWidget * activePopupWidget ()
|
||||
QWidget * activeWindow ()
|
||||
void alert ( QWidget * widget, int msec = 0 )
|
||||
QWidgetList allWidgets ()
|
||||
void beep ()
|
||||
void changeOverrideCursor ( const QCursor & cursor )
|
||||
QClipboard * clipboard ()
|
||||
int colorSpec ()
|
||||
int cursorFlashTime ()
|
||||
QDesktopWidget * desktop ()
|
||||
bool desktopSettingsAware ()
|
||||
int doubleClickInterval ()
|
||||
int exec ()
|
||||
QWidget * focusWidget ()
|
||||
QFont font ()
|
||||
QFont font ( const QWidget * widget )
|
||||
QFont font ( const char * className )
|
||||
QFontMetrics fontMetrics ()
|
||||
QSize globalStrut ()
|
||||
bool isEffectEnabled ( Qt::UIEffect effect )
|
||||
bool isLeftToRight ()
|
||||
bool isRightToLeft ()
|
||||
Qt::LayoutDirection keyboardInputDirection ()
|
||||
int keyboardInputInterval ()
|
||||
QLocale keyboardInputLocale ()
|
||||
Qt::KeyboardModifiers keyboardModifiers ()
|
||||
//bool keypadNavigationEnabled ()
|
||||
Qt::LayoutDirection layoutDirection ()
|
||||
Qt::MouseButtons mouseButtons ()
|
||||
QCursor * overrideCursor ()
|
||||
QPalette palette ()
|
||||
QPalette palette ( const QWidget * widget )
|
||||
QPalette palette ( const char * className )
|
||||
bool quitOnLastWindowClosed ()
|
||||
//QDecoration & qwsDecoration ()
|
||||
//void qwsSetDecoration ( QDecoration * )
|
||||
//QDecoration * qwsSetDecoration ( const QString & decoration )
|
||||
void restoreOverrideCursor ()
|
||||
void setActiveWindow ( QWidget * active )
|
||||
void setColorSpec ( int spec )
|
||||
void setCursorFlashTime ( int )
|
||||
void setDesktopSettingsAware ( bool on )
|
||||
void setDoubleClickInterval ( int )
|
||||
void setEffectEnabled ( Qt::UIEffect effect, bool enable = true )
|
||||
void setFont ( const QFont & font, const char * className = 0 )
|
||||
void setGlobalStrut ( const QSize & )
|
||||
void setGraphicsSystem ( const QString & system )
|
||||
void setKeyboardInputInterval ( int )
|
||||
//void setKeypadNavigationEnabled ( bool enable )
|
||||
void setLayoutDirection ( Qt::LayoutDirection direction )
|
||||
void setOverrideCursor ( const QCursor & cursor )
|
||||
void setPalette ( const QPalette & palette, const char * className = 0 )
|
||||
void setQuitOnLastWindowClosed ( bool quit )
|
||||
void setStartDragDistance ( int l )
|
||||
void setStartDragTime ( int ms )
|
||||
void setStyle ( QStyle * style )
|
||||
QStyle * setStyle ( const QString & style )
|
||||
void setWheelScrollLines ( int )
|
||||
void setWindowIcon ( const QIcon & icon )
|
||||
int startDragDistance ()
|
||||
int startDragTime ()
|
||||
QStyle * style ()
|
||||
void syncX ()
|
||||
QWidget * topLevelAt ( const QPoint & point )
|
||||
QWidget * topLevelAt ( int x, int y )
|
||||
QWidgetList topLevelWidgets ()
|
||||
Type type ()
|
||||
int wheelScrollLines ()
|
||||
QWidget * widgetAt ( const QPoint & point )
|
||||
QWidget * widgetAt ( int x, int y )
|
||||
QIcon windowIcon ()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
|
||||
@@ -54,6 +54,11 @@
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
|
||||
<CODE>
|
||||
@@ -64,12 +69,10 @@
|
||||
* QCoreApplication ( int & argc, char ** argv )
|
||||
* ~QCoreApplication ()
|
||||
*/
|
||||
#if 0
|
||||
HB_FUNC( QT_QCOREAPPLICATION )
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
@@ -81,6 +84,45 @@ enum Encoding { CodecForTr, UnicodeUTF8, DefaultCodec }
|
||||
virtual bool notify ( QObject * receiver, QEvent * event )
|
||||
EventFilter setEventFilter ( EventFilter filter )
|
||||
// virtual bool winEventFilter ( MSG * msg, long * result )
|
||||
|
||||
void addLibraryPath ( const QString & path )
|
||||
QString applicationDirPath ()
|
||||
QString applicationFilePath ()
|
||||
QString applicationName ()
|
||||
qint64 applicationPid ()
|
||||
QString applicationVersion ()
|
||||
QStringList arguments ()
|
||||
bool closingDown ()
|
||||
int exec ()
|
||||
void exit ( int returnCode = 0 )
|
||||
void flush ()
|
||||
bool hasPendingEvents ()
|
||||
void installTranslator ( QTranslator * translationFile )
|
||||
QCoreApplication * instance ()
|
||||
QStringList libraryPaths ()
|
||||
QString organizationDomain ()
|
||||
QString organizationName ()
|
||||
void postEvent ( QObject * receiver, QEvent * event )
|
||||
void postEvent ( QObject * receiver, QEvent * event, int priority )
|
||||
void processEvents ( QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents )
|
||||
void processEvents ( QEventLoop::ProcessEventsFlags flags, int maxtime )
|
||||
void removeLibraryPath ( const QString & path )
|
||||
void removePostedEvents ( QObject * receiver )
|
||||
void removePostedEvents ( QObject * receiver, int eventType )
|
||||
void removeTranslator ( QTranslator * translationFile )
|
||||
bool sendEvent ( QObject * receiver, QEvent * event )
|
||||
void sendPostedEvents ( QObject * receiver, int event_type )
|
||||
void sendPostedEvents ()
|
||||
void setApplicationName ( const QString & application )
|
||||
void setApplicationVersion ( const QString & version )
|
||||
void setAttribute ( Qt::ApplicationAttribute attribute, bool on = true )
|
||||
void setLibraryPaths ( const QStringList & paths )
|
||||
void setOrganizationDomain ( const QString & orgDomain )
|
||||
void setOrganizationName ( const QString & orgName )
|
||||
bool startingUp ()
|
||||
bool testAttribute ( Qt::ApplicationAttribute attribute )
|
||||
QString translate ( const char * context, const char * sourceText, const char * disambiguation, Encoding encoding, int n )
|
||||
QString translate ( const char * context, const char * sourceText, const char * disambiguation = 0, Encoding encoding = CodecForTr )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
|
||||
Reference in New Issue
Block a user