Commit Graph

79 Commits

Author SHA1 Message Date
juha
0e356292c6 LCL: In ValueListEditor, allow setting keyAdd in KeyOptions before setting keyEdit. Allow setting goAutoAddRows in Options.
git-svn-id: trunk@44629 -
2014-04-07 07:20:39 +00:00
bart
d369e9fa44 ValEdit: Fix InsertRow (Issue #0025881)
git-svn-id: trunk@44566 -
2014-03-31 21:19:27 +00:00
bart
614130f5b7 ValEdit: Remove duplicate line in TItemProp.AssignTo
git-svn-id: trunk@43545 -
2013-12-15 22:30:36 +00:00
bart
60b306caa2 ValEdit: In TValueListEditor.ValidateEntry when validation fails, don't continue searching for more violations.
Issue #0025161.

git-svn-id: trunk@43521 -
2013-12-07 17:32:54 +00:00
bart
ed6faba781 ValEdit: fix crash on GetCells when empty rows are auto-added.
git-svn-id: trunk@43177 -
2013-10-08 16:49:06 +00:00
bart
ed57fc41d6 ValEdit: fix possible error in InsertRowWithValues due to uninitialized NameValueSeparator.
git-svn-id: trunk@43119 -
2013-10-06 11:53:10 +00:00
bart
4c3f9378b9 ValEdit: refactor the logic behind wether or not to hide the editor when manipulating the Strings property.
git-svn-id: trunk@43118 -
2013-10-06 11:49:54 +00:00
bart
d91315a258 ValEdit: implement an adapted version of InsertRowWithValues.
git-svn-id: trunk@43110 -
2013-10-05 22:03:28 +00:00
bart
00ac786d09 ValEdit: Fix crash in InsertRow if Strings.Count = 0.
Issue #0025144.

git-svn-id: trunk@43109 -
2013-10-05 20:30:04 +00:00
jesus
74824cdc4e LCL, fix ValueListEdit not showing key column at runtime, issue #24780
git-svn-id: trunk@42958 -
2013-09-27 02:56:24 +00:00
juha
f40d0f314f LCL: Prevent crash in TValueListEditor when resizing a parent form. Issue #24827, patch from Cyrax
git-svn-id: trunk@42319 -
2013-08-04 12:02:35 +00:00
bart
24dd7801d7 ValEdit: fix crash in ValueListEditor.AdjustColumnWidths.
Patch by Cyrax. Issue #0024779.

git-svn-id: trunk@42205 -
2013-07-25 17:01:20 +00:00
bart
52faf04b92 ValEdit: use Strings.NameValueSeparator instead of hardcoded '='.
Patch by Cyrax (slightly adapted).

git-svn-id: trunk@42197 -
2013-07-24 12:06:14 +00:00
bart
62c0f61046 ValEdit: Make TValueListeditor.Clear only clear Strings, not entire Grid.
git-svn-id: trunk@41158 -
2013-05-12 15:44:33 +00:00
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