HMG 4 Started

Moderator: Rathinagiri

User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HMG 4 Started

Post by sudip »

Roberto Lopez wrote:...
Regarding contributing I guess that the best way to go is that (at least for now) each contributor pick one control. ie: rathinagiri has took checkbox.
Hello Roberto,
Can you please suggest any control which will be suitable for me :)
Editbox, Datepicker, Spinner, Image ... any
With best regards,
Sudip
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 4 Started

Post by Roberto Lopez »

sudip wrote:
Roberto Lopez wrote:...
Regarding contributing I guess that the best way to go is that (at least for now) each contributor pick one control. ie: rathinagiri has took checkbox.
Hello Roberto,
Can you please suggest any control which will be suitable for me :)
Editbox, Datepicker, Spinner, Image ... any
Please, fell free to pick the one you prefer...

My advise is that could be better start with an easy one :)
Regards/Saludos,

Roberto


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

Re: HMG 4 Started

Post by Roberto Lopez »

apais wrote:A changelog file in the main svn folder would be usefull =)
I don't know how to generate changelogs yet :)

Any suggestion is welcome.
Regards/Saludos,

Roberto


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

Re: HMG 4 Started

Post by Roberto Lopez »

Roberto Lopez wrote:
rathinagiri wrote: 2. Can we omit the code blocking characters?

For example:

define checkbox c
row 10
col 10
onchange checkboxchangefunction() // and not onchange {||checkboxchangefunction()}
caption "A Checkbox"
end checkbox
We could do it 'blockifiying' it in #command definitions but, let me assure that this do not bring problems when you want to work with code blocks.

I'll do a definitive answer about that later.
It's already done.

You can now omit the code block brackets and pipes for xBase and alternate syntax since they are automatically generated at preprocessor level via 'blockify' marker.
Regards/Saludos,

Roberto


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

Re: HMG 4 Started

Post by Roberto Lopez »

sudip wrote: Can you please suggest any control which will be suitable for me :)
Editbox, Datepicker, Spinner, Image ... any
And please, before start, please read carefully the coding guidelines (if you already read, check it again because I've made many additions).

viewtopic.php?f=2&t=1635
Regards/Saludos,

Roberto


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

Re: HMG 4 Started

Post by sudip »

Roberto Lopez wrote:
sudip wrote: Can you please suggest any control which will be suitable for me :)
Editbox, Datepicker, Spinner, Image ... any
And please, before start, please read carefully the coding guidelines (if you already read, check it again because I've made many additions).

viewtopic.php?f=2&t=1635
Yes I read it and saved a copy of it.

I decide to work with Editbox control.
With best regards,
Sudip
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 4 Started

Post by Roberto Lopez »

sudip wrote:
Roberto Lopez wrote:
sudip wrote: Can you please suggest any control which will be suitable for me :)
Editbox, Datepicker, Spinner, Image ... any
And please, before start, please read carefully the coding guidelines (if you already read, check it again because I've made many additions).

viewtopic.php?f=2&t=1635
Yes I read it and saved a copy of it.

I decide to work with Editbox control.
Please consider that all controls inherits from Control class.

So, if you believe that the property, method or event you are coding can be reused 'as is' for other controls, it must be located at control class, if not you can put in he class of the control you are working on.

Other important thing is that you must 'double code' for prior/post control creation, since you can't access to a QT object before that this be created (done at Create() method executed by default at window activation).

So, your code must look at this:

Code: Select all


If ::lCreated

    * Access to QT object (ie)

    If pcount() == 0

        Return ::oQTObject:Something

    ElseIf pcount() == 1

        ::oOQTObject:Something(xValue) 

    EndIf

Else

    * Access to instance variables only ie:

    If pcount() == 0

        Return ::xVar

    ElseIf pcount() == 1

        ::xVar := xValue

    EndIf
   
EndIf

Regards/Saludos,

Roberto


(Veritas Filia Temporis)
bootwan
Posts: 52
Joined: Thu May 27, 2010 2:33 am

Re: HMG 4 Started

Post by bootwan »

apais wrote: Why don't you use hbIde ? It's done with harbour and qt and is multiplatform also.
gvaronas wrote:***Translated by Google ***
In fact, I see that HbIDE already included in the Binary HMG.OBJECT it is distributed (within the Harbour) and is ready to use
Roberto Lopez wrote:*** Translated by Google ***
Not in HMG.4 (I removed some files not escenciles to reduce the size of the distribution).
1. It sounds like you had already make decision from some months ago.
2. Trying to perform multi-platform using Nokia QT bypass Windows API, sorry but I saw none of basic frames on multi-platform from your samples.
3. The naming makes me confusing, ::oQTObject := QMainWindow():new(), how about oQMainWindow or oQtMainWindow instead of oQTObject.
4. Does HMG4 or HMG.4 means HMGQT?

As we known:
Qt Development Frameworks was originally known as Trolltech, which was founded in 1994. Qt has been on the market since 1996.
Nokia acquired Trolltech in June 2008, renamed it to Qt Development Frameworks as a group within Nokia.

Please forgive me for the questions raised by.
Last edited by bootwan on Sat Aug 14, 2010 11:33 am, edited 1 time in total.
bootwan
Posts: 52
Joined: Thu May 27, 2010 2:33 am

Re: HMG 4 Started

Post by bootwan »

:
Last edited by bootwan on Sat Aug 14, 2010 11:30 am, edited 1 time in total.
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HMG 4 Started

Post by sudip »

Hello,

Finally I created Editbox control. It's very basic.
#command was initially taken from TextBox control, I shall change later.

This is the first time I did it. I never did SVN Commit before. Very basic work. But I learned many things from this experience.


Hello Roberto, Rathi and others,

Please check my code and send your advice. And please correct any mistake in my code.


Thank you all. :)
With best regards,
Sudip
Post Reply