Commit Graph

65 Commits

Author SHA1 Message Date
bart
8cb6307e5c TValueListEditor: Fix possible crash in TValueListStrings.Put.
git-svn-id: trunk@40523 -
2013-03-09 17:48:24 +00:00
bart
19779223aa TValueListEditor: TValueListStrings.InsertItem: don't hide the editor if we're typing in it
(which happens when we type first character in an empty grid).

git-svn-id: trunk@40522 -
2013-03-09 17:46:10 +00:00
bart
cd1ff4f40f TValueListEditor: Implement RestoreCurrentRow.
git-svn-id: trunk@40521 -
2013-03-09 17:03:38 +00:00
bart
62329743e2 TValueListEditor: GetCells: don't return an empty string if ARow is out of bounds.
git-svn-id: trunk@40520 -
2013-03-09 15:09:59 +00:00
bart
f368c819e0 TValueListEditor: implement IsEmptyRow.
git-svn-id: trunk@40519 -
2013-03-09 14:59:41 +00:00
bart
e085ecd22c TValueListEditor: implement FindRow.
git-svn-id: trunk@40515 -
2013-03-09 14:28:23 +00:00
bart
1aa0b17d81 ValEdit: Fix possible AV in TValueListStrings.Put when accessing FGrid.Editor.
git-svn-id: trunk@40468 -
2013-03-03 13:18:47 +00:00
bart
006b452930 ValEdit: Implement DeleteColRow, DeleteCol, InsertColRow, ExchangeColRow and MoveColRow.
git-svn-id: trunk@40467 -
2013-03-03 13:11:22 +00:00
bart
a7f651be93 ValEdit: Implement KeyDelete.
git-svn-id: trunk@40460 -
2013-03-02 17:12:34 +00:00
bart
64aaa76ce9 ValEdit: KeyDeleten does not require KeyEdit.
git-svn-id: trunk@40459 -
2013-03-02 15:31:02 +00:00
bart
f9e3ecf385 ValEdit: fix not removing ReadOnly of editor when in column[0], introduced in (my own) r40417 #e06657740f.
git-svn-id: trunk@40424 -
2013-02-26 22:07:36 +00:00
bart
730d773260 ValEdit: KeyOptions: implement KeyAdd.
git-svn-id: trunk@40418 -
2013-02-26 17:41:55 +00:00
bart
e06657740f ValEdit: don't show any editor at all in the first column if KeyEdit is not in KeyOptions.
git-svn-id: trunk@40417 -
2013-02-26 17:29:06 +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
b0b8409a1c ValEdit: Implement DeleteRow().
git-svn-id: trunk@40387 -
2013-02-24 14:33:19 +00:00
bart
8ff1d3962b ValEdit: InsertRow: if Append then insert after current row, not after last row.
(According to Delphi help text)

git-svn-id: trunk@40385 -
2013-02-24 14:21:53 +00:00
bart
41464aaec9 ValEdit: Disable goAutoAddRowsSkipContentCheck (temoprary workaround).
git-svn-id: trunk@40384 -
2013-02-24 13:48:21 +00:00
bart
72cba621d3 ValEdit: when set RowCount also update Strings accordingly.
Needed for AddKey in KeyOtions.

git-svn-id: trunk@40383 -
2013-02-24 13:45:15 +00:00
bart
4592622e5c ValEdit: Start implementing KeyOptions.
git-svn-id: trunk@40382 -
2013-02-24 13:15:00 +00:00
bart
729e3e2fdb ValEdit: Fix not updating cell in TValueListStrings.Put when goAlwaysShowEditor in Options and current
editor is TCompositeCellEditor.

git-svn-id: trunk@40376 -
2013-02-23 16:57:50 +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
bart
12ef5fac9f ValEdit: implelement OnGetPickList.
git-svn-id: trunk@40374 -
2013-02-23 14:25:05 +00:00
bart
4952b8047a ValEdit: set DropDownCount of associated ComboBox to DropDownRows if ItemProp.EditStyle = esPickList.
git-svn-id: trunk@40372 -
2013-02-23 14:08:49 +00:00
jesus
d79e1a4d79 ValEdit, fix strange focus swapping reported by bart
git-svn-id: trunk@40358 -
2013-02-20 09:28:58 +00:00
bart
324d155e3e ValEdit: Rename some private fields to improve readability and avoid ugly constructs like FOwner.FOwner.
git-svn-id: trunk@40339 -
2013-02-17 12:19:16 +00:00
bart
0c06816fa5 ValEdit: Fix not updating cell in TValueListStrings.Exchange when goAlwaysShowEditor in Options.
git-svn-id: trunk@40333 -
2013-02-16 22:16:06 +00:00
bart
c5115fb647 ValEdit: TValueListStrings.GetItemProp: return nil when strings are updating.
git-svn-id: trunk@40329 -
2013-02-16 18:15:47 +00:00
bart
e436bede0d ValEdit: TValueListStrings.Assign: Assign also ItemProps if Source is TValueListStrings.
git-svn-id: trunk@40319 -
2013-02-14 22:55:12 +00:00
bart
db4e29e1d9 ValEdit: Remove unneeded overridden SetTextStr.
git-svn-id: trunk@40299 -
2013-02-13 15:19:02 +00:00
bart
f074778ce7 ValEdit: Ignore epmty cells when validating.
git-svn-id: trunk@40298 -
2013-02-13 15:14:44 +00:00
bart
ba23bf1705 ValEdit: do not store '=' in Strings is "key" and "value" cell is empty.
git-svn-id: trunk@40297 -
2013-02-13 15:08:52 +00:00
bart
354039f2b0 ValEdit: Update Modified when Strings are changed.
git-svn-id: trunk@40296 -
2013-02-13 14:24:33 +00:00
bart
6b04227c32 ValEdit: Implement CustomSort so it keeps ItemProps in sync.
git-svn-id: trunk@40295 -
2013-02-13 14:14:53 +00:00
bart
5acb32b369 ValEdit: Refactoring. Store ItemProps in TFPObjectList, so it's easier
to Insert, Exchange, Clear and keep it in sync with Strings.

git-svn-id: trunk@40294 -
2013-02-13 13:05:23 +00:00
bart
e233a67124 ValEdit: Fix not updating cell in TValueListStrings.Put when goAlwaysShowEditor in Options.
Fixes issue #0023875.

git-svn-id: trunk@40282 -
2013-02-12 22:16:47 +00:00
bart
bb1447887f ValEdit: don't hide/show editor inside TValueListStrings.Put (otherwise you cannot type anymore).
git-svn-id: trunk@40253 -
2013-02-10 15:09:50 +00:00
bart
b74e586846 ValEdit: Make OnButtonClick and OnEditButtonClick published.
git-svn-id: trunk@40242 -
2013-02-10 12:41:12 +00:00
bart
ada0f52f3c ValEdit: remove unused redeclared OnEditButtonClick property.
(Maybe in future need to override DoEditButtonClick?)
Fixes issue #0023846.

git-svn-id: trunk@40227 -
2013-02-09 16:56:36 +00:00
bart
619097177e ValEdit: Refactoring: remove SelectValueEditor and override SelectEditor instead.
git-svn-id: trunk@40226 -
2013-02-09 16:42:33 +00:00
bart
b48441883c ValEdit: fix bug in SetOptions (once goColMoving was set, it wasn't possible to change options anymore).
git-svn-id: trunk@40225 -
2013-02-09 16:09:25 +00:00
bart
b3c2eafeb0 ValEdit: remove calls to Changing and Changed in override TValueListStrings methods,
since they are already called in the invoked inherited methods.

git-svn-id: trunk@40224 -
2013-02-09 14:13:11 +00:00
bart
938dfb12e9 ValEdit: Fix FItemProps getting out of sync when Inserting, Deleting or Assigning strings,
which caused a crash on Delete(), and memory leaks.
Fixes issue #0023851

git-svn-id: trunk@40209 -
2013-02-08 17:29:28 +00:00
bart
98b1126b93 ValEdit: fix not updating active cell contents when changing Strings property (Assign, Add, Delete, Set Text, Clear) which
happens when goAlwaysShowEditor is in Options.

git-svn-id: trunk@40204 -
2013-02-07 19:15:05 +00:00
bart
eab5aa8fb5 ValEdit: also release the memory of the TValueListStrings.FItemProps array itself, not only the items.
git-svn-id: trunk@40197 -
2013-02-06 15:29:04 +00:00
juha
218c95590c LCL: delete also ItemProps when deleting strings.
git-svn-id: trunk@40195 -
2013-02-06 14:43:25 +00:00
bart
9ce1fac44c ValEdit: free TValueListStrings.FItemProps in TValueListStrings.Destroy.
Resolves issue #0023841.

git-svn-id: trunk@40194 -
2013-02-06 14:21:07 +00:00
juha
053dfd2a1a LCL: Fix a bug in ValueListEditor when reading / writing value by key (Values['Key'])
git-svn-id: trunk@40193 -
2013-02-06 10:53:57 +00:00
juha
99e4142bb7 LCL: Make button and picklist cell editors work in TValueListEditor
git-svn-id: trunk@39818 -
2013-01-09 23:32:04 +00:00
juha
3dceac8624 LCL: implement method TValueListEditor.InsertRow
git-svn-id: trunk@39813 -
2013-01-09 09:06:23 +00:00
juha
074f42f249 LCL: add ItemProps to ValueListEditor
git-svn-id: trunk@39659 -
2012-12-26 22:33:15 +00:00