hmg-4 Changelog

Moderator: Rathinagiri

mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: hmg-4 Changelog

Post by mrduck »

mrduck wrote:
Ricci wrote:Now I only have to find out how to center an icon in a cell.
Are you going c++ ??? :-)

It's not possible to do at Qt level, but only at c++
see
http://stackoverflow.com/questions/1707 ... er-of-cell

Probably you may trap paint event and draw it yourself. there are some samples in c++ but it MAY work in harbour too... never tried....
Actually there may be a solution:
GRID is based on QTableWidget, so we may use as cells both QTableWidgetItem (that is a quick and easy to use cell) or full blown QWidget...

I'm looking at GRID code and it seems to me that something should be changed... but I'm gonna ask you...

Ricci, you can use QWidget and setCellWidget... create a QLabel, set the icon, set the qlabel as cell...
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: hmg-4 Changelog

Post by l3whmg »

Hi to everyone

Code: Select all

2011-10-26 14:00 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   * samples/window.main/demo_3.prg
     * to show usage of ShowObjectsTree() method

   * source/hmg.hbp
     * enabled errorsys.prg compilation

   * source/hmgapp.prg
     + ShowObjectsTree() method to printout current objects structure.

   * source/errorsys.prg
     ; it doesn't handle errors. must be used hbqt_errorsys() - hbqt error 
       handler - at program startup.
     + ERRLOG() class to create/write a html file. Will be used to show errors
       or to show internal environment. Please read notes inside source.

   + source/xdummy.prg
     * THIS FILE SHOULD NOT BE INCLUDED DURING LIBRARY COMPILATION.
       It's only used as a container for unused code.

   * source/misc.prg
   * source/errorsys.prg
     * removed unused code about error handling. the related code is moved
       into xdummy.prg
Luigi from Italy
www.L3W.it
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: hmg-4 Changelog

Post by l3whmg »

Hi, I found a little problem about menuitem. The Checked() method doesn't return item checked status. It seems that the Qt .....:IsChecked() method doesn't work properly....

Code: Select all

2011-10-27 09:50 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   ! source/menuitem.prg
     ! problem with Checked() method. The Qt ....:IsChecked() method seems not
       work. Now Checked() method uses the ::lChecked var to returns the
       item check status.
Luigi from Italy
www.L3W.it
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: hmg-4 Changelog

Post by l3whmg »

Hi friends

Code: Select all

2011-10-27 10:50 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   ! source/menupop.prg
     + Caption() method was missing.
Luigi from Italy
www.L3W.it
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: hmg-4 Changelog

Post by l3whmg »

Hi friends.
Many thanks to Ricci for his help and contribution
  • * If Stretch is .T.: AspectRatio and Smoothing can be changed
  • * If ScaledWidth is .T. AND ScaledHeight is .T.: Smoothing can be changed; AspectRatio can't be changed but Qt function respect. Scaled upon image dimensions: portrait or landscape
  • * If ScaledWidth is .T. AND ScaledHeight is .F.: Smoothing can be changed; AspectRatio can't be changed but Qt function respect.
  • * If ScaledWidth is .F. AND ScaledHeight is .T.: Smoothing can be changed; AspectRatio can't be changed but Qt function respect.
  • * If Image size is LESS then canvas: nothing to do ELSE will be scaled and AspectRatio and Smoothing can be changed

Code: Select all

2011-10-28 13:20 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   + samples/image/demo_4.prg
   + samples/image/demo_4.hbp
   + samples/image/demo_4.qrc
   + samples/image/fantasy.jpg
   + samples/image/rogue.jpg
   + samples/image/sea.jpg
     * to show usage

   ! source/bitmap.prg
     ! a general fixing about source code. to increase the speed, the image
       is loaded: when the object is created or when Picture() method is used.
       By default Stretch is .T. to keep HMG3 compatibility. This means image
       is scaled to the canvas (QLabel container) size and keep aspectratio.
     + AspectRatio() to keep (default Qt_KeepAspectRatio) or 
       not (Qt_IgnoreAspectRatio)
     + Smoothing() to manage transformation fast (default Qt_FastTransformation)
       or smoothing (Qt_SmoothTransformation)
     + ImageWidth() to know the real width of the loaded image
     + ImageHeight() to know the real height of the loaded image
Luigi from Italy
www.L3W.it
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: hmg-4 Changelog

Post by mrduck »

Code: Select all

2011-10-28 15:05 UTC+0100 Francesco Perillo ( fperillo at gmail.com )
   * source/basic.prg
     * adapted to changes in window class names
   * include/hmg.ch
     * typo
     * implemented FIELDS command for GRID
mlacecilia
Posts: 22
Joined: Fri Oct 08, 2010 2:44 pm

Re: hmg-4 Changelog

Post by mlacecilia »

Hi guys,
please rem out from hmgapp.prg the line
#include "hmg_qtlocale.ch"
(and delete from the repository the hmg_qtlocale.ch file itself).
as his content it's already defined in hbqtcore.ch.
It's a change planned by Luigi.
Thanks.
Best regards.
Maurizio
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: hmg-4 Changelog

Post by l3whmg »

Hi Maurizio.
Many thanks for this notice.
I can do this change, but HMG4 packages (it contains previous Harbour version) must be update before.

Please, Rathinagiri, can you do this changes and then create a new HMG4 packgage with update Harbour?

You should make these changes:
- remove line 37 ( #include "hmg_qtlocale.ch" ) from hmgapp.prg
- remove include/hmg_qtlocale.ch file
- remove include/hmg_qtimage.ch file

for all those who download HARBOUR yourself, you make the changes described above and recompile HMG4 library.

All QLocal* definitions are within hbqtcore.ch.
All QImage* definitions are within hbqtgui.ch (I found usefull to create transparent image using QPaint)
All QTextOption* definitions are within hbqtgui.ch (I think not used by HMG4 but usefull for adding option in editbox)

Best regards
Luigi from Italy
www.L3W.it
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: hmg-4 Changelog

Post by Rathinagiri »

No problem. I will do it Luigi.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: hmg-4 Changelog

Post by l3whmg »

Hi Rathinagiri and many thanks.

I have a good notice for everyone: I'm able to handle centralwidget, create virtualized form and (I'm doing some test) manage layouts.

ASAP I will show these news in a new topic.

Cheers
Luigi from Italy
www.L3W.it
Post Reply