Page 94 of 106

Re: Welcome to the Project Developers' Table

Posted: Tue Feb 01, 2011 9:13 am
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. :)

Re: Welcome to the Project Developers' Table

Posted: Tue Feb 01, 2011 9:58 am
by esgici
Thanks a lot Rathi :)

You are our vice-chairman :D

Best regards

--

Esgici

Re: Welcome to the Project Developers' Table

Posted: Tue Feb 01, 2011 11:02 am
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 ?

Re: Welcome to the Project Developers' Table

Posted: Tue Feb 01, 2011 11:39 am
by Rathinagiri
Perfect suggestion.

Let us work on that.

Re: Welcome to the Project Developers' Table

Posted: Tue Feb 08, 2011 6:44 pm
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

Re: Welcome to the Project Developers' Table

Posted: Sat Feb 26, 2011 6:55 am
by Rathinagiri
A Request to Developers:

Please give a comment here with your changelog whenever you make a commit.

Re: Welcome to the Project Developers' Table

Posted: Sat Feb 26, 2011 6:55 am
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.

Re: Welcome to the Project Developers' Table

Posted: Sat Feb 26, 2011 1:04 pm
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.

Re: Welcome to the Project Developers' Table

Posted: Sat Feb 26, 2011 3:14 pm
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.  

Re: Welcome to the Project Developers' Table

Posted: Sat Feb 26, 2011 9:55 pm
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.