Welcome to the Project Developers' Table

Moderator: Rathinagiri

User avatar
bedipritpal
Posts: 122
Joined: Thu Sep 02, 2010 10:47 pm

Re: Welcome to the Project Developers' Table

Post by bedipritpal »

2010-10-22 09:08 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* doc/ChangelogStyle.txt
* doc/CodeStyle.txt
* doc/FAQ.TXT
+ Added: SVN headers.
* doc/hmg.4.html
+ Added: SVN property - eol=native.
* source/window.prg
- Deleted: commented-out code.
! Formatting.
enjoy hbIDEing... Pritpal Bedi
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 »

bedipritpal wrote: Absolutely WRONG.

I never told that it is YOU who are making mistakes.
I was exploring what has caused these errors, so what I suggested
was in that direction. It is obivious because I have never build any
of HMG's demos. So to reach to a conclusion I asked for those
checkpoints.
So, I've misunderstood your words.

Therefore, I apologize.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Welcome to the Project Developers' Table

Post by mrduck »

for various reasons I *need* to release the first version of a new program that will be developed in the following months.

I'd really like to use Qt and hmg as the gui framework.

What I'd like to know is how to organize the source code for the various forms.

Do you use classes to define a form ?
How do you handle CRUD functionalities ?
If a user ask to view record #6, you show it... if the user wants to modify it do you open another form or enable editing on that form ?
Do you use MDI, modal windows, or what ?

Thanks
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 »

Let me try to answer this Francesco.

1. Yes. We can. However we have now three types of calling this class. One is define.... end ..... which is semi-oop syntax, second is @ row,col.... syntax and the last one being the object form.

2. CRUD depends upon the database used. It mainly depends upon Harbour - DataBase connectivity and the GUI part is very less.

3. Yes. We can either use in-place edit of grid, or we have to design a form to view and edit record.

4. Yes. We have to use modal/child windows.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Welcome to the Project Developers' Table

Post by mrduck »

Bug report:
method grid:items GPF and then reports wrong data, please apply patch

diff -r 8e57079347f7 source/grid.prg
--- a/source/grid.prg Sat Oct 23 14:55:01 2010 +0200
+++ b/source/grid.prg Sat Oct 23 16:15:17 2010 +0200
@@ -205,13 +205,13 @@
LOCAL i
LOCAL j
LOCAL aData := {}
- LOCAL aLineData := {}
+ LOCAL aLineData // := {}

IF ::lCreated
IF Pcount() == 0
- FOR i := 0 to ::oQTObject:RowCount() - 1
- aSize( aLineData,0 )
- FOR j := 0 to ::oQTObject:ColumnCount() - 1
+ FOR i := 1 to ::oQTObject:rowCount()
+ aLineData := {}
+ FOR j := 1 to ::oQTObject:columnCount()
aAdd( aLineData,Self:Cell( i,j ) )
NEXT j
aAdd( aData,aLineData )

1) if you use cell to retrieve data, index is 1...rowcount()
2) I didn't search way, but without the changes in aLineData I had an array with all lines equal to the last one
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 »

Thanks for the report Francesco. I am working on it.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
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 »

2010-10-23 20:20 UTC+0530 Rathinagiri (srgiri@dataone.in)
* source/grid.prg
* samples/grid/demo_3.prg
! Fixed Items method and demo sample. (Thanks to Francesco)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Welcome to the Project Developers' Table

Post by mrduck »

Please update the :connect() calls due to this commit:

http://harbour-project.svn.sourceforge. ... sion=15684
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 »

mrduck wrote:Please update the :connect() calls due to this commit:

http://harbour-project.svn.sourceforge. ... sion=15684
Thanks Francesco.

I must create new binaries prior to change current code.

I'll do it ASAP.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Welcome to the Project Developers' Table

Post by mrduck »

rathinagiri wrote: 1. Yes. We can. However we have now three types of calling this class. One is define.... end ..... which is semi-oop syntax, second is @ row,col.... syntax and the last one being the object form.
I know this :-)

I meant another thing... well, I hope to be not too direct: can I have a look at a segment of your code ? I now have the form created in a function but I think it may be better to encapsulate it in a class..

If you use a class, do you inherit from another class ? window() ? another ad-hoc class ?
2. 3. 4.
ok
Post Reply