Welcome to the Project Developers' Table

Moderator: Rathinagiri

User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Welcome to the Project Developers' Table

Post by mol »

Ricci wrote:
mol wrote:I've completed IMAGE class, too.
I only need to clean up code
Marek
Marek, will TIF be included this time?

Regards ... Ricci
I'm afraid it is not possible now, because QT QPixmap class which is used to build hmg.4 Image class, does not support TIFF images.
But, it's possible via plugins. In free time, I'll search for some solutions.
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Welcome to the Project Developers' Table

Post by Roberto Lopez »

rathinagiri wrote:Thanks Roberto.

What do I do next? :)
I'm taking care about all containers (tab,mainmenu,toolbar,splitbox), so, excepting that, you can pick any other thing.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Welcome to the Project Developers' Table

Post by Roberto Lopez »

mol wrote:
Ricci wrote:
mol wrote:I've completed IMAGE class, too.
I only need to clean up code
Marek
Marek, will TIF be included this time?

Regards ... Ricci
I'm afraid it is not possible now, because QT QPixmap class which is used to build hmg.4 Image class, does not support TIFF images.
But, it's possible via plugins. In free time, I'll search for some solutions.
I've included qtiff4.dll in the plugins package, perhaps it will work in the same way as other formats, please, try it.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Welcome to the Project Developers' Table

Post by sudip »

Numeric and Date DataType basic handling added to TextBox control.
modified samples/textbox/demo_1.prg
modified source/textbox.prg

I shall change demo_2 and demo_3 of textbox sample after thorough testing.

Regarding changing alignment to TXT_RIGHT for Numeric DataType, I have some doubt whether line no 471 in Control.prg (Alignment method) may have numeric nValue and nAlignment. Please correct me if I am wrong.
With best regards,
Sudip
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

I think to get proper HMG compatible textbox we should use QT QValidators combined with or without inputmask.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Welcome to the Project Developers' Table

Post by sudip »

rathinagiri wrote:I think to get proper HMG compatible textbox we should use QT QValidators combined with or without inputmask.
Thanks a lot Rathi. I shall check QValidators.
With best regards,
Sudip
jparada
Posts: 433
Joined: Fri Jan 23, 2009 5:18 pm

About the implementation of "Slots" and "Events"

Post by jparada »

Hi,

Probably this is important:
http://groups.google.com/group/harbour- ... 52c27335e#

Best Regards
Javier
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: About the implementation of "Slots" and "Events"

Post by Roberto Lopez »

jparada wrote:Hi,

Probably this is important:
http://groups.google.com/group/harbour- ... 52c27335e#

Best Regards
Javier
This is very important.

Thanks!
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Welcome to the Project Developers' Table

Post by Roberto Lopez »

mol wrote:I have a little problem.
One of QT functions returns me a pointer. But I need to operate on object.
How to get the object from pointer?

Code: Select all

PointerToImage := ::oQTObject:Pixmap()
Image := <<<< what to do to get object???
Image := Image:ScaledToWidth(::oQTObject:width)
::oQTObject:setPixmap(Image)
I'm facing the same problem with QMenu:AddAction.

I've posted two messages about this in the Harbour users forums and I've not obtained a response yet.

This is a transcription of the messages. Maybe someone here be able to give us some clue:
Hi All,

I've created a simple test menu according demoqt.prg like this:

//
oMenu1 := QMenu():new()

oMenu1:setTitle( "&File" )
QT_SLOTS_CONNECT( s_slots, oMenu1:addAction_1( "new.png" , "&New" ), QT_EVE_TRIGGERED_B, {|w,l| FileDialog( "New" , w, l ) } )

oMenuBar:addMenu( oMenu1 )

oWnd:setMenuBar( oMenuBar )
//

It works fine. The question is how to access to the 'new' menuitem to change its image, check status or disable it after creation.


Thanks in advance.
Roberto Lopez wrote:

> oMenu1:setTitle( "&File" )
> QT_SLOTS_CONNECT( s_slots, oMenu1:addAction_1( "new.png" , "&New" ), QT_EVE_TRIGGERED_B, {|w,l| FileDialog( "New" , w, l ) } )

>It works fine. The question is how to access to the 'new' menuitem to
>change its image, check status or disable it after creation.

I've noted that :addaction is returning a pointer and according QT reference (if I've understood it correctly) it should be a pointer to a QAction object.

The QAction object will allow to me to change menu item properties after creation (my original question).

So, if my assumptions are correct, my problem is how to access to the QAction object from a pointer to it (returned by :addaction).

So, the question is: how to do that.

Thanks in advance.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Now, can't we have like this?

oAction := QAction():New(oMenu1:addAction_1( "new.png" , "&New" ))
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply