Recent

Author Topic: TDBGrid Enhansement (Add all columns from the dataset)  (Read 17129 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: TDBGrid Enhansement (Add all columns from the dataset)
« Reply #15 on: October 19, 2013, 09:37:18 pm »
quick note:
1. svn client
fpcup has already downloaded an svn client for you ;)
It should be in a subdirectory of c:\development\fpcbootstrap\; it's called svn.exe

If you want a graphical SVN client which is very nice, you can download and install TortoiseSVN.

2. changes
Yes, you go ahead and change everything the way you want it, recompile Lazarus, check everything looks ok.
Then you can go to c:\development\lazarus and run svn diff to list the differences/show the patch; do svn diff > thepatch.diff to save the patch etc.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

zgabrovski

  • New Member
  • *
  • Posts: 33
Re: TDBGrid Enhansement (Add all columns from the dataset)
« Reply #16 on: October 19, 2013, 10:37:35 pm »
OK, I an ready with the patch file.
But I check, it contains only changes into DBPropedits.pas. The new .pas and .lfm file for property editor form is not included in the patch.diff file.
Must I attach those two other files in the bug tracker? 

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: TDBGrid Enhansement (Add all columns from the dataset)
« Reply #17 on: October 20, 2013, 10:07:27 am »
OK, I an ready with the patch file.
Great work!

But I check, it contains only changes into DBPropedits.pas. The new .pas and .lfm file for property editor form is not included in the patch.diff file.
Yes, that's normal with patch files.

Must I attach those two other files in the bug tracker?
Yes, please attach them along with the patch (or zip them up first if they're a bit bigger).
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

zgabrovski

  • New Member
  • *
  • Posts: 33
Re: TDBGrid Enhansement (Add all columns from the dataset)
« Reply #18 on: October 20, 2013, 10:46:17 am »
I hope that I upload the patch successfully. Can you please check?

http://bugs.freepascal.org/view.php?id=25219

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: TDBGrid Enhansement (Add all columns from the dataset)
« Reply #19 on: October 20, 2013, 11:52:53 am »
Great, thanks.

Some remarks:
- it's often useful to indicate in which directory the new files should go (i.e. $(lazarusdir)\components\ideintf)
- Typo: you spelled the filenames DBGrigColumns... instead of DBGfid. Also, the rest of the files there use lowercase, so probably best to use the same convention
- your indentation in the patch (TDBGridColumnsPropertyEditor = class (TCollectionPropertyEditor)) does not match the rest of the code
- typo in function name, some vertical linespace.
Minor stuff really.... but the kind of stuff I can check easily ;)
No idea about the actual content though, so no comments there ;)

I took the liberty of creating a new patch and renaming the files. If ok, could you upload them to the issue tracker?

Thanks a lot
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

zgabrovski

  • New Member
  • *
  • Posts: 33
Re: TDBGrid Enhansement (Add all columns from the dataset)
« Reply #20 on: October 20, 2013, 04:50:58 pm »
It is OK, n.p. I upload new file, but how to remove old one?

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: TDBGrid Enhansement (Add all columns from the dataset)
« Reply #21 on: October 20, 2013, 04:54:16 pm »
You can't remove the old one if you have bug reporter privileges. I'll remove the old one for you...

I also assigned it to somebody who I think is the right guy for Laz DB controls patches.

Thanks a lot for your hard work!
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

zgabrovski

  • New Member
  • *
  • Posts: 33
Re: TDBGrid Enhansement (Add all columns from the dataset)
« Reply #22 on: October 20, 2013, 05:25:20 pm »
It was a pleasure for me.
If I find other thinks, that I can improve, I will do.


BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: TDBGrid Enhansement (Add all columns from the dataset)
« Reply #23 on: October 20, 2013, 05:37:27 pm »
;)

Please do keep an eye on the bugtracker issue though, you might get some feedback there...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018