Welcome to the Project Developers' Table

Moderator: Rathinagiri

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 »

2011-02-01 12:35 UTC+0530 Rathinagiri (<srgiri@dataone.in>)
+ source/virtualgrid.prg
* New Control Virtual Grid based on Roberto's Browse to accommodate thousands of lines. This is now in testing. Once all the grid functionalities are added we can do away the widget and use only one grid using model/view.
+ samples/virtualgrid/*.*
* Samples for virtual grid
* include/hmg.ch
+ Included virtualgrid definitions
* hmg.hbp
+ Included virtualgrid sourcecode

Hi friends,

Now I am building a new version with nightly build of Harbour. Therefore, I request you not to commit anything till such time. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Welcome to the Project Developers' Table

Post by esgici »

Thanks a lot Rathi :)

You are our vice-chairman :D

Best regards

--

Esgici
Viva INTERNATIONAL HMG :D
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Welcome to the Project Developers' Table

Post by mrduck »

Hi Rathinagiri,
thank you for your commit.

Since it is based on Roberto's browse code I'd like to propose a rework of both classes.
Infact, if you do a windiff there are large chunks of code that is almost identical... expect for class name (ofcourse) and some variable names.

My proposal is to to a refactoring.

Create a VGRID class from all the code that is identical to both classes, and then create VIRTUALGRID and BROWSE that inherit from VGRID.

In this way, there will be no duplicate code to keep in sync, and both can benefit from improvent.

The METHODs that need to be rewritten (onQueryData, onSave, value) can be made VIRTUAL so you are forced to define them in subclasses, and Create() should be splitted in a common code and a specific method

What do you think ?
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 »

Perfect suggestion.

Let us work on that.
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 »

2011-02-09 00:15 UTC+0530 Rathinagiri (<srgiri@dataone.in>)
* source/control.prg
* Fixed Button Caption problem reported by Maurício Faria
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 »

A Request to Developers:

Please give a comment here with your changelog whenever you make a commit.
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 »

Code: Select all

2011-02-26 12:05 UTC+0530 Rathinagiri (<srgiri@dataone.in>)
  + source/resource.prg
    * New Class Resource to handle resource files
	  To use resource files by embedding them into the executable file:
	  * First create a resource file according to QT Resource files format (.qrc). More details can be seen from http://doc.qt.nokia.com/4.0/resources.html
	  * The qrc file should be preferably named as the main prg file. In this case it is automatically added to the executable. Otherwise you have to use "set resource to " command. 
	  * Now we have to make use of hbp files.
	  * Name the hbp file with the name of the project. (Eg., MyProject.hbp)
	  * Include the .qrc file at the end of the hbp file
	  * Compile using the provided build.bat with full hbp filename. (Eg., Build MyProject.hbp and not Build MyProject)
	  * You can refer the resource file using ":" identifier inside your programs.
  + samples/resource/*.*
    * To show simple usage of resource
  * hmg.hbp	
    * To accommodate resource handling.
  * source/application.prg
    * To accommodate resource handling.
  * source/window.prg
    * To accommodate resource handling.
  * include/hmg.ch
    * To accommodate resource handling.
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 »

To include resource file(s), I think you need rcc.exe

I am attaching the rcc.zip to this post. This should be placed in \hmg.4\qt\bin directory.

From the next build, this file will also be included inside the release.
Attachments
rcc.zip
(450.52 KiB) Downloaded 195 times
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 »

Code: Select all

2011-02-26 20:45 UTC+0530 Rathinagiri (<srgiri@dataone.in>)
  * source/resource.prg
    * Fixed a small bug. Now, the resource file in the name of the main prg is registered only if the .qrc file is available.  
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: Welcome to the Project Developers' Table

Post by Carlos Britos »

rathinagiri wrote:To include resource file(s), I think you need rcc.exe

I am attaching the rcc.zip to this post. This should be placed in \hmg.4\qt\bin directory.

From the next build, this file will also be included inside the release.
Hi Ratinagiri
I'm trying to download the rcc.zip but I get an htm file with this message

Information
You are not authorised to download this attachment.
Regards/Saludos, Carlos (bcd12a)
Post Reply