Commit Graph

490 Commits

Author SHA1 Message Date
juha
7b162087fd Improve license headers in sources, part 1. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41387 -
2013-05-24 18:30:06 +00:00
jesus
342ff362a4 LCL, DBGrid, linux, set edit state on primary clipboard paste, issue #24310
git-svn-id: trunk@41067 -
2013-05-08 04:55:20 +00:00
mattias
489eb1d8f4 lcl: grids: added const for default options
git-svn-id: trunk@40959 -
2013-04-30 16:36:31 +00:00
jesus
6e08b82839 LCL, grids, handle ENTER key on KeyPress instead of on KeyDown to give a change user get it in OnKeyPress, issue #24284
git-svn-id: trunk@40834 -
2013-04-18 07:16:15 +00:00
jesus
2ef3cf5a5c LCL, fix grids not hiding editor in TValueListEditor, issue #24273
git-svn-id: trunk@40831 -
2013-04-17 00:45:31 +00:00
jesus
9d12401342 LCL, grids, fix grid losing focus issue #24245
git-svn-id: trunk@40785 -
2013-04-10 17:24:34 +00:00
jesus
d6a1f48258 LCL, grids, fix editor not focused if it's visible and grid is being focused, from Éderson Cássio, issue #24194
git-svn-id: trunk@40780 -
2013-04-10 06:16:28 +00:00
bart
5d55b90f96 Grids: Remove unneccesary TCompositeCellEditor.GetActiveEditor (introduced in r40375 #d2b9d862ef),
make GetActiveControl protected instead.

git-svn-id: trunk@40415 -
2013-02-26 16:32:57 +00:00
bart
d2b9d862ef ValEdit: implement TItemProp.ReadOnly.
For this we need access to private field FEditors of TCompositeCellEditor.

git-svn-id: trunk@40375 -
2013-02-23 16:35:34 +00:00
jesus
c8f3aa7628 LCL, updated debug info for grids
git-svn-id: trunk@40357 -
2013-02-20 09:22:54 +00:00
jesus
3d1bfbe763 LCL, save grid color when doing SaveToFile
git-svn-id: trunk@40316 -
2013-02-14 15:11:17 +00:00
jesus
efee6e8c99 LCL, grids and dbgrids implemented RowHightlight option, from Marcus Müller, issue #18581
git-svn-id: trunk@40276 -
2013-02-12 03:35:29 +00:00
juha
248c598499 LCL: check also for csDestroying component state in Grid when setting edit test.
git-svn-id: trunk@40198 -
2013-02-06 15:59:10 +00:00
bart
def9237ba7 Grids: rename goIgnoreRowContentForAutoAddRows option to goAutoAddRowsSkipContentCheck
(as discussed on lazarus-devel mailinglist).

git-svn-id: trunk@40068 -
2013-01-30 18:10:29 +00:00
bart
c053394595 Grids: Implement TabAdvance, so Tab key can behave independant of Enter key.
Remove goTabIgnoreAutoAdvance option, since it is not needed anymore.

git-svn-id: trunk@40067 -
2013-01-30 18:01:21 +00:00
bart
84b225d357 Grids: better fix for issue #0023735.
Set FRowAutoInserted to false in TCustomGrid.EditorShowChar (unless the editor popped up due
to the user pressing backspace).

git-svn-id: trunk@39955 -
2013-01-24 18:54:21 +00:00
bart
370b7af254 Grids: perform extra check before removing AutoAdded row, and always clear the FRowAutoAdded flag in this scenario.
Quick fix for issue #0023735.
The root cause of the problem here is that TCustomGrid.EditorKeyDown isn't called on the first char the user types if
goAlwaysSwowEditor is not in Options.

git-svn-id: trunk@39954 -
2013-01-24 17:33:29 +00:00
bart
617fb0cf9e Grids: implement goIgnoreRowContentForAutoAddRows option.
If set then AutoAddRows will add a row even if last row is empty.
The then added row will not be removed if it is empty when user moves the cursor up.

git-svn-id: trunk@39940 -
2013-01-23 15:26:45 +00:00
bart
93a98f4972 Grids: implement goTabIgnoreAutoAdvance option.
If set (and goTabs in Options), then Tab key traverses grid like in aaRightDown mode,
much like tables in common wordprocessors.

git-svn-id: trunk@39938 -
2013-01-23 14:26:28 +00:00
jesus
ff9e96532a LCL, do not immediately start dragging when DragMode=dmAutomatic, added helper to dbgrid to convert and make some sense of mouse coords, fix issue #23558
git-svn-id: trunk@39877 -
2013-01-17 22:06:45 +00:00
jesus
459cdc0ca9 LCL, only adjust editor position if colcount/rowcount change will affect editor, issue #23652
git-svn-id: trunk@39868 -
2013-01-17 02:09:04 +00:00
jesus
32ed7b46e7 LCL, fix AV when grid is being destroyed and editor has focus, part of issue #23478
git-svn-id: trunk@39867 -
2013-01-16 23:51:25 +00:00
bart
5a5af581e2 Grids: make option goAutoAddRows also work with Tab key.
Also don't loose the state of FRowAutoInserted in KeyDown() when user presses Crl,Alt,Shift or Meta key
(otherwise "undoing" an auto-added row doesn't work anymore)

git-svn-id: trunk@39864 -
2013-01-16 14:51:29 +00:00
jesus
7e9dbdf832 LCL, fixed issue #23478 in another way
git-svn-id: trunk@39545 -
2012-12-15 01:33:37 +00:00
juha
424b7d0c93 LCL: Free part of CustomGrid's variables after inherited Destroy; Allows freeing a focused grid (works for other controls already). Issue #23478, Patch from mmxngg
git-svn-id: trunk@39544 -
2012-12-15 00:12:06 +00:00
jesus
0d8b603ec0 LCL, fix gtk grid's autofillcolumns problem when sometimes client size changes are not correctly detected, problem 1) issue #19993
git-svn-id: trunk@39316 -
2012-11-20 08:17:01 +00:00
jesus
20b874b8f0 LCL, publish OnGetCheckboxState and OnSetCheckboxState for drawgrid
git-svn-id: trunk@39142 -
2012-10-20 00:03:37 +00:00
jesus
5684485f27 LCL, grids, fix AV saving forms with grids, regression caused on r39113 #47a8c9c3a4
git-svn-id: trunk@39121 -
2012-10-18 00:17:59 +00:00
jesus
2c9cbd6b0e LCL, stringgrid, allow to export to CSV only visible columns, from Alexsander Rosa
git-svn-id: trunk@39114 -
2012-10-17 14:28:27 +00:00
bart
47a8c9c3a4 Increase visibility of EditMask property of TStringCellEditor.
Increase visibility of InplaceEditor in TDrawGrid, TStringGrid and TDBGrid.
Fixes issue #0023103.

git-svn-id: trunk@39113 -
2012-10-17 12:19:37 +00:00
jesus
9e16841b73 LCL, fix unexpected selection, patch from Bart Broersma, issue #18344
git-svn-id: trunk@39011 -
2012-10-09 06:52:08 +00:00
bart
92ed0bbeed grids.pas: changed page-scrolling to use the same algorithm (how far to scroll) as scrolling using keys, taking care of fixedcols and fixedrows. Resolves issue #17882.
git-svn-id: trunk@37897 -
2012-07-08 10:46:51 +00:00
bart
d78838b4b1 TCustomStringGrid.LoadFromCSVStream: fix parsing of strings with leading or trailing
whitespace.
As per RFC4180 this whitespace must be part of the field, even if the field is not quoted.

git-svn-id: trunk@37598 -
2012-06-09 17:26:12 +00:00
jesus
3d09ebb4ca LCL, grids, remove dead code
git-svn-id: trunk@37584 -
2012-06-08 06:48:29 +00:00
bart
dc5a2714d9 TCustomGrid.LoadfromCsvStream: add comment about cleaning this up once TStrings.SetDelimitedText is fixed in (stable) fpc
git-svn-id: trunk@37574 -
2012-06-07 18:31:55 +00:00
juha
c25ec11dc4 LCL: cleanup and formatting, removed a left-over for loop
git-svn-id: trunk@37503 -
2012-06-03 17:50:53 +00:00
bart
0af1e98ba7 TCustomStringGrid.LoadFromCSVStream: implement custom parsing of strings,
since using DelimitedText with either setting of StricDelimiter has it's drawbacks.
New implementation allows spaces in fields, even if field is unquoted.
It also correctly handles quoted fields that have Delimiter as part of the text.

git-svn-id: trunk@37499 -
2012-06-03 12:24:09 +00:00
juha
780bcdc31b LCL: Implement SaveToStream and LoadFromStream for TCustomGrid. Issue #22139
git-svn-id: trunk@37496 -
2012-06-03 09:36:50 +00:00
juha
58ea455548 LCL: for TStringGrid, replace FPC's TXMLConfig with LazUtils' TXMLConfig. Makes further streaming support easier.
git-svn-id: trunk@37437 -
2012-05-27 19:54:16 +00:00
juha
6d009e924d LCL: Implement LoadFromCSVFile and SaveToCSVStream for TCustomStringGrid. Related to issue #22139
git-svn-id: trunk@37436 -
2012-05-27 17:19:36 +00:00
bart
0d005db507 Select cell when it's content is deleted by VK_Delete
git-svn-id: trunk@37399 -
2012-05-22 22:39:20 +00:00
juha
3d6659f2e4 LCL: Revert the hack in TCustomGrid.KeyDown trying to fix issue #22057. Helps debugging the real problem.
git-svn-id: trunk@37385 -
2012-05-21 19:08:42 +00:00
bart
692d98a01c TCustomStringGrid.LoadfromCSVFile: use StrictDelimiter. Fixes issue #22054
git-svn-id: trunk@37318 -
2012-05-18 16:29:50 +00:00
juha
98e6ec0f7e LCL: filter out F-keys without shift state only, issue #22057
git-svn-id: trunk@37317 -
2012-05-18 15:41:47 +00:00
juha
734def7277 LCL: formatting in TCustomGrid code
git-svn-id: trunk@37313 -
2012-05-17 21:25:48 +00:00
juha
43b55bf526 LCL: Prevent also Insert and PrintScreen keys from entering '?' to a cell
git-svn-id: trunk@37309 -
2012-05-17 19:03:08 +00:00
juha
0f4d82b045 LCL: prevent some special keys from entering '?' to a cell, issue #22056
git-svn-id: trunk@37305 -
2012-05-17 14:40:52 +00:00
juha
35c2e0fcca LCL: Cleanup in TCustomGrid.KeyDown
git-svn-id: trunk@37303 -
2012-05-17 07:35:21 +00:00
juha
bf1459a3d8 LCL: Make DELETE key clear the whole cell in StringGrid when cell editor is not active, issue #22056
git-svn-id: trunk@37302 -
2012-05-17 07:35:15 +00:00
juha
32b63791ee LCL: remove code with zero effect in CustomGrid.EditorKeyDown
git-svn-id: trunk@37301 -
2012-05-17 07:35:10 +00:00