Page 86 of 106

Re: Welcome to the Project Developers' Table

Posted: Thu Oct 28, 2010 9:08 pm
by Roberto Lopez
HMG.4 New Windows Binaries+Source Release (2010.10.28)

Hi All,

Updated Windows binaries containing the latest Harbour/HBQT and HMG library.

http://www.sourceforge.net/projects/hmg

Enjoy!

Re: Welcome to the Project Developers' Table

Posted: Thu Oct 28, 2010 9:09 pm
by Roberto Lopez
Hi All,

Conversion is done and new binaries uploaded.

You can continue committing now.

Re: Welcome to the Project Developers' Table

Posted: Thu Oct 28, 2010 10:05 pm
by Roberto Lopez
Francesco, Maurizio,

Has you some little sample showing how to use installEventFilter in HBQT?

TIA.

Re: Welcome to the Project Developers' Table

Posted: Thu Oct 28, 2010 10:32 pm
by mrduck
Roberto Lopez wrote:Has you some little sample showing how to use installEventFilter in HBQT?
Hi Roberto,
you did the right thing disabling the change of codeblocks at runtime, but I tell you that some on* methods just do the connect directly, others set a internal variable.
In the second case the callback is handled by a function that at the end does
if is_codeblock( ::on* )
eval( ::on* )
endif

in this case you can allow to change the codeblock at runtime (there is not a new connect) and we should port all the other case to this one: at the first on* := {||...} wi do the realconnect to an internal method and assign the codeblock .... etc etc


No, I don't use installEventFilter and I don't think you should use it. It is handled by a :connect( Qt_eventname, {||...}) where Qt_eventname is a numeric value....or do you need for more things ?

Re: Welcome to the Project Developers' Table

Posted: Thu Oct 28, 2010 11:12 pm
by Roberto Lopez
mrduck wrote: Hi Roberto,
you did the right thing disabling the change of codeblocks at runtime, but I tell you that some on* methods just do the connect directly, others set a internal variable.
<...>
Some minutes ago a new change regarding this was made:
2010-10-28 23:51 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/qtcore/hbqt_misc.prg
+ Changed to not RTE when disconnecting not-connected
event. It will instead return .F. now.
To be consistent with slots in this regard.
I've rebuilt Harbour and started testing using the previous code, but I still getting an RTE for at least one of them (I must do more testing).

So, which is the current situation regarding this?
mrduck wrote: No, I don't use installEventFilter and I don't think you should use it. It is handled by a :connect( Qt_eventname, {||...}) where Qt_eventname is a numeric value....or do you need for more things ?
Well... it is regarding IDE form editor.

We are using this code to handle controls moving:

Code: Select all

	&cVar:oQTObject:connect( QEvent_MouseMove, {|p| ProcessControlDrag( p , oControl ) } )
	&cVar:oQTObject:connect( QEvent_MouseButtonPress, {|p| ProcessControlMousePress( p , oControl ) } )
	&cVar:oQTObject:connect( QEvent_MouseButtonRelease, {|p| ProcessControlMouseRelease( p , oControl ) } )
This works for most controls, but this is not working for some others, ie: QListBox, QTableWidget and QTableView.

So, we are looking for alternate solutions for those controls.

If you have any idea about this, it could be very useful to form editor completion.

TIA.

Re: Welcome to the Project Developers' Table

Posted: Fri Oct 29, 2010 12:16 am
by Roberto Lopez
Roberto Lopez wrote: Some minutes ago a new change regarding this was made:
2010-10-28 23:51 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/qtcore/hbqt_misc.prg
+ Changed to not RTE when disconnecting not-connected
event. It will instead return .F. now.
To be consistent with slots in this regard.
I've rebuilt Harbour and started testing using the previous code, but I still getting an RTE for at least one of them (I must do more testing).

So, which is the current situation regarding this?
With current (15710) Harbour sources and all disconnect calls in place again, you'll get this error with checkbox demo_1:
Error HBQT/1299 Argument error
Called from __HBQT_ERROR( 0 )
Called from QCHECKBOX:DISCONNECT( 0 )
Called from CHECKBOX:_ONGOTFOCUS( 1092 )
Called from CHECKBOX:CREATE( 179 )
Called from WINDOW:CREATEPENDINGCHILDCONTROLS( 1336 )
Called from WINDOW:ACTIVATE( 1531 )
Called from MAIN( 86 )

Re: Welcome to the Project Developers' Table

Posted: Fri Oct 29, 2010 7:17 am
by mlacecilia
With current (15710) Harbour sources and all disconnect calls in place again, you'll get this error with checkbox demo_1:
With Harbour 15712 it's working fine. It was an hbqt problem.
Best regards.
Maurizio

Re: Welcome to the Project Developers' Table

Posted: Fri Oct 29, 2010 8:38 am
by Rathinagiri
2010-10-29 12:30 UTC+0530 Rathinagiri (srgiri@dataone.in)
* hmgide/ide.prg
! Controls resize experiment.

2010-10-29 12:30 UTC+0530 Rathinagiri (srgiri@dataone.in)
* source/ipaddress.prg
! Small fix for the bug in Validator string created while formatting.

2010-10-29 11:15 UTC+0530 Rathinagiri (srgiri@dataone.in)
* hmgide/ide.prg
! Made all the controls to work...

Re: Welcome to the Project Developers' Table

Posted: Fri Oct 29, 2010 4:34 pm
by Rathinagiri
I can't run samples/window.main/demo_3.prg. Following is the error_log. What is happening? :(

Called from __HBQT_ERROR( 0 )
Called from QMAINWINDOW:CONNECT( 0 )
Called from WINDOW:ONSTATECHANGE( 1117 )
Called from WINDOW:_ONMAXIMIZE( 1079 )
Called from WINDOW:ACTIVATE( 1777 )
Called from MAIN( 176 )

Re: Welcome to the Project Developers' Table

Posted: Fri Oct 29, 2010 5:40 pm
by mrduck
There have been changes in the :connect handling, it's a work in progress... I will try to test later.
rathinagiri wrote:I can't run samples/window.main/demo_3.prg. Following is the error_log. What is happening? :(

Called from __HBQT_ERROR( 0 )
Called from QMAINWINDOW:CONNECT( 0 )
Called from WINDOW:ONSTATECHANGE( 1117 )
Called from WINDOW:_ONMAXIMIZE( 1079 )
Called from WINDOW:ACTIVATE( 1777 )
Called from MAIN( 176 )