Page 22 of 30

Re: hmg-4 Changelog

Posted: Wed Nov 23, 2011 2:13 pm
by l3whmg
Hi to everyone
I found a little problem related with Focus* management.

Code: Select all

2011-11-23 15:10 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   ! source/basic.prg
     ! a little bug related with current form (THISWINDOW or s_oCurWindow) 
       within __HmgOnGotFocusExec().

   ! source/hmgparent.prg
     + FindValidParent() method to explore and find a valid parent related with
       current object. It can be returnes: a valid Hmg object else NIL.
       ATTENTION: caution with its usage.
       Can be improved for other type of finding.
       Usage: FindValidParent( n ) where n can be: 1 to find the first form
I think the FindValidParent() can be improved for other problems. Caution with usage.

Cheers

Re: hmg-4 Changelog

Posted: Wed Nov 23, 2011 5:13 pm
by l3whmg
Hi. Sorry a wrong source was committed.

Code: Select all

2011-11-23 18:10 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   ! source/basic.prg
     ! wrong source commited.
Cheers

Re: hmg-4 Changelog

Posted: Thu Nov 24, 2011 8:22 am
by l3whmg
Hi.
TextBox object has problems. With this patch, programs works but with some problems related with editing.
It must be improved/tested/arranged about signal connected and related internal Clipper code.
I reconnected returnPressed() signal instead editingFinished(), but for the moment __HmgOnEnterExec() don't "sendEvent".

Code: Select all

2011-11-24 09:15 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   ! source/textbox.prg
     ! piece of code wrong. 
     ; TODO This object must be revised it has problems.

Re: hmg-4 Changelog

Posted: Sat Nov 26, 2011 5:46 pm
by l3whmg
Hi friends.

Code: Select all

2011-11-26 18:40 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   ! source/textbox.prg
   ! source/basic.prg
     ! code about TabStop() method: setFocusPolicy() is used. With this usage,
       was removed (remarked) a piece of code within __HmgOnGotFocusExec().
I remember to everyone that, at this moment, all the objects have TABSTOP value at .T. in other words: "setFocusPolicy( Qt_StrongFocus )".
I think, for some objects, this value must be .F. (changing setFocusPolicy value).
Any suggestion about a list of this objects?

Cheers

Re: hmg-4 Changelog

Posted: Sat Nov 26, 2011 6:36 pm
by l3whmg
Hi. A little commit about internal test.

Code: Select all

2011-11-26 19:30 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   ! testing/internal_01/test_01.prg
     ! minor changes

   + testing/internal_01/test_02.prg
     * to check THIS* commands and TABSTOP
Ricci: please pay attention to Changelog formatting:

Code: Select all

2011-11-26 18:50 UTC+0100 Ricci Zepmeusel ( ricci at conzoft.de )
   ! source/animatebox.prg
   ! source/dropdownmenu.prg
   ! source/ipaddress.prg
   ! source/editbox.prg
     Only minor changes (deleted unused vars) <<< must be changed with
     ! Only minor changes (deleted unused vars)      <<< OR >>>
     ; Only minor changes (deleted unused vars) 
It's correct my opinion?

Cheers

Re: hmg-4 Changelog

Posted: Sat Nov 26, 2011 7:45 pm
by Ricci

Code: Select all

2011-11-26 20:40 UTC+0100 Ricci Zepmeusel ( ricci at conzoft.de )
   * source/notifymenu.prg
   * source/radiogroup.prg
   * source/splitbox.prg
   * source/timer.prg
   * source/toolbar.prg
     ! Only minor changes (deleted unused vars)

2011-11-26 19:40 UTC+0100 Ricci Zepmeusel ( ricci at conzoft.de )
   * source/monthcalendar.prg
   * source/menuitem.prg
   * source/listbox.prg
     ! Only minor changes (deleted unused vars)

2011-11-26 18:50 UTC+0100 Ricci Zepmeusel ( ricci at conzoft.de )
   * source/animatebox.prg
   * source/dropdownmenu.prg
   * source/ipaddress.prg
   * source/editbox.prg
     ! Only minor changes (deleted unused vars)

2011-11-26 17:15 UTC+0100 Ricci Zepmeusel ( ricci at conzoft.de )
   * include/hmg.ch
     + added #define DTP_CENTER for Datepicker center alignment
   * source/datepicker.prg
   * source/contextmenu.prg
   * source/checkbox.prg
   * source/buttonbox.prg
     ! Only minor changes (deleted unused vars)
I removed object vars that would be better read by calling the Qt method.

Re: hmg-4 Changelog

Posted: Sun Nov 27, 2011 9:58 pm
by mrduck

Code: Select all

2011-11-27 22:46 UTC+0100 Francesco Perillo ( fperillo at gmail.com )
   * source/dialogs.prg
   * source/misc.prg
   * source/tabpage.prg
     * cosmetic changes
   * source/editbox.prg
     * reinstated cValue variable. TODO: a method to retrieve original value
   * source/widget.prg
     * added setLayout method. Every QWidget may have its own layout.
       In method setCentralWindow added window:childAdd( self ). It is to have
       the objects inside the layout correctly created at Activate() - they
       were out of hmgapp() objects tree.
       TODO: to be expanded for nested layouts
   * source/windowgroup.prg
     * updated to work with current code. It may be useful if well documented!

Re: hmg-4 Changelog

Posted: Sun Nov 27, 2011 10:13 pm
by mrduck

Code: Select all

2011-11-27 23:06 UTC+0100 Francesco Perillo ( fperillo at gmail.com )
   * hmgide/ide.prg
     * I updated the code about to HMG4 about a month ago to test windowgroup.
       I decided to commit the code since it needed the changes but with
       the last commits it doesn't run anymore.
       A couple of references to ::Parent should be moved into the New()

I know that now we can use the adapted hmg3 version, but I had these changes in my fork and wanted to post them since they show some changes in both hbQt (events now have object as parameters) and HMG4 (members are protected)

I used it as a testbed for my changes to Windowgroup and last month it used to work... now it doesn't anymore with the last changes.

Any volunteer to have a look ?

Re: hmg-4 Changelog

Posted: Sun Nov 27, 2011 10:57 pm
by mrduck

Code: Select all

2011-11-27 23:46 UTC+0100 Francesco Perillo ( fperillo at gmail.com )
   * source/textbox.prg
     * There were some very long methods in class Textbox and to make them
       shorter and eventually easier to subclass I created 3 new. They are
       used only once in the code but it was not reuse in the class the
       reason of the change but clearly state what a piece of code did and
       subclassing
This is the first commit on Textbox. I have several others to do but I've been working on the file since a long time and now I'm not able to merge my fork easily... So I'm trying to do little piece at time to see if merging is easier.

Methods are:
itemForDisplay: it creates a string following the PICTURE fully. (adding DB, all the thousands separators, etc)
itemForEdit: it creates a simplified string for editing for NUMERICS, with all DB/CR, thousand separators removed
setMask: it is used to create an internal copy of the PICTURE mask

As I said, it is now easier to subclass these specific parts, especially the first 2. This is not new code, I just moved the code in new methods.
I also think that they can be made "prettier" - please have a look, I'm not experienced in "LOCALE", comma/dot and the like...

Re: hmg-4 Changelog

Posted: Mon Nov 28, 2011 12:31 am
by mrduck

Code: Select all

2011-11-28 01:30 UTC+0100 Francesco Perillo ( fperillo at gmail.com )
   * include/hmg.ch
   * include/hmg3.ch
     * Added some defines by Roberto message. THEY HAVE NO CODE BEHIND,
       they are just to have the ide generated code compiled !
   * source/abstractgrid.prg
     * Added allowAppend method, but with no code behind !
I want to stress the fact that there is no implementation code for these methods/commands !