Commit Graph

60281 Commits

Author SHA1 Message Date
juha
9acf3c4388 IDE: Implement cache for attribute SchemeGlobal. FAttributes.IndexOf() calls drop to ~19700.
git-svn-id: trunk@64331 -
2021-01-04 15:56:31 +00:00
juha
44cce07479 IDE: Minor optimization for EditorOptions. Debug TColorSchemeLanguage.FAttributes. IndexOf() is called ~31000 times at startup.
git-svn-id: trunk@64330 -
2021-01-04 15:56:30 +00:00
juha
186eb16098 IDE: Optimize Assign() of EditorOptions classes.
git-svn-id: trunk@64329 -
2021-01-04 15:56:29 +00:00
juha
1e43ac6865 IDE: Study EditorOptions assignments with debug code. Turn methods into global funcs. Refactoring.
git-svn-id: trunk@64328 -
2021-01-04 15:56:28 +00:00
juha
a5df757d33 LazUtils: Fix comments in AvgLvlTree for TStringToStringTree etc.
git-svn-id: trunk@64327 -
2021-01-04 15:56:26 +00:00
wp
47719157fe LazControls: Fix compilation issue related to generics and SameValue() on 64-bit platform (thanks to Ondrej).
git-svn-id: trunk@64326 -
2021-01-04 13:38:20 +00:00
zoran
6b53432dd4 DateTimePicker: add InMonthView function to TCalendarControlWrapper - adds layer of abstraction to using of calendar "view"
git-svn-id: trunk@64325 -
2021-01-04 11:57:45 +00:00
wp
519788b865 TAChart: Fix compilation due to recent changes in FPC 3.3.1. Issue #38301.
git-svn-id: trunk@64324 -
2021-01-03 17:25:04 +00:00
ondrej
4002a31014 TCustomLabel: fix RTL drawing. Issue #38270
git-svn-id: trunk@64323 -
2021-01-03 16:33:10 +00:00
wp
44b40ce1ce TurboPower_iPro: Add new property UsePaintBuffer.
git-svn-id: trunk@64322 -
2021-01-03 11:58:02 +00:00
wp
a616c2ad2a TurboPower_iPro: Revert r64201 #29c601614e/64202 #d9b1507320
git-svn-id: trunk@64321 -
2021-01-03 11:13:09 +00:00
martin
85dd4b9122 Fix Memleak in TComponentTreeView.Destroy
git-svn-id: trunk@64320 -
2021-01-03 01:48:34 +00:00
martin
bc73f7750f LazDebuggerFp: Fix endless loop, in stack supplier.
git-svn-id: trunk@64319 -
2021-01-03 01:37:56 +00:00
bart
b8b3de002a Refine the implementation of TCustomListView.Delete(), .InsertItem and .Edit after r64309 #fbb46cb85d (Issue #0038263).
This commit is also not completely Delphi compatible.
In Delphi Items can be added or delted as a respons to LVN_xxx messages, which the Lazarus implementation
does not support (it may very well be not protable?).

This commit causes code duplication (fortunately mostly one-liners)
The resons for this that the Lazarus methods DoDeletion, DoInsert and DoEndEdit are virtual and as such
may have been overriden by users, so this code still needs to work.
Users with code coming from Delphi expect that they can override Delete, InsertItem and Edit, so this must be possible as well,
and in that case out event dispatchers simply call the overridden Delphi variant.

The exception to this is Delete().
As far as we know, in Delphi Delete() is triggerd after an Items.Delete and acts as an event dispatcher,
but if you call it by itself, then it will actually delete the item (this in contrast to InsertItem, which only
calls the event handler and does nothing else).
(No Delphi code was studied to obtain this information, it was all done using black box testing (by LacaK and BB),
so this conclusion may be wrong.)
I decided to implement Delete in such a way that it checks wether it was called after the fact (after Items.Delete),
and if that is not the case, it will delete the item (triggering a re-entry of the method).
Not very nice, but it is in any case better then an empy implementation like it was before r64309 #fbb46cb85d.

It was discussed also to rename and deprecate our event dispatchers in favour of the Delpi ones, but I decided agains that
for the following reasons:
- naming conventions: DoXXX dispatches OnXXX
- signatures differ between DoEndEdit and Edit

git-svn-id: trunk@64318 -
2021-01-02 13:23:49 +00:00
martin
beee215ea3 Fix compile with 3.0.4
git-svn-id: trunk@64317 -
2021-01-01 16:20:04 +00:00
wp
7ec8d3b74b TurboPower_iPro: Fix compilation of HtmlFileExp1 and HtmlFileExp2 demo projects.
git-svn-id: trunk@64316 -
2021-01-01 15:50:39 +00:00
juha
c87414e208 Docs: Documentation updates for LCL Grids. Issue #38288, patch from Don Siders.
git-svn-id: trunk@64315 -
2021-01-01 11:56:15 +00:00
juha
49384e3efc Docs: Documentation update for LCL, LazUtils and LazControls. Issue #38287, patch from Don Siders.
git-svn-id: trunk@64314 -
2020-12-31 20:32:21 +00:00
juha
33cb0bd3a6 IdeIntf: Remember the expanded/collapsed state in OI's ComponentTree when changing designer form. Issue #33464.
git-svn-id: trunk@64313 -
2020-12-31 12:37:14 +00:00
juha
b4fc035018 Restore the "const" removed in r64300 #943e4e4ff7. Affected 3rd party components.
git-svn-id: trunk@64312 -
2020-12-31 10:57:48 +00:00
juha
6780d0d9dc Jedi Code Format: Support unicodestrings variables again. Issue #38282, patch from Domingo Galmés.
git-svn-id: trunk@64311 -
2020-12-31 10:57:44 +00:00
joost
4b59383f64 FpDebug: Removed usage of hard-coded register
git-svn-id: trunk@64310 -
2020-12-30 19:15:57 +00:00
wp
fbb46cb85d LCL/TListView: Improved Delphi compatibility by giving life to the empty methods Delete and InsertItem and adding an Edit method.
git-svn-id: trunk@64309 -
2020-12-30 18:56:35 +00:00
juha
db94cc7a39 LazUtils: Support EUDC to PUA Microsoft mapping in function DBCSToUTF8. Issue #38206, patch from powerpcer.
git-svn-id: trunk@64308 -
2020-12-30 10:27:05 +00:00
juha
3f43cd260e ProjectTemplates: Use the template.lpi file for a new project. Issue #38244, patch from Rolf Wetjen.
git-svn-id: trunk@64307 -
2020-12-30 10:24:02 +00:00
juha
9cc893672d IdeHelp: Fix Lazarus hanging when lHelp starts from Menu and F1 pressed. Issue #38276, patch from Andrey Sobol.
git-svn-id: trunk@64306 -
2020-12-29 23:28:27 +00:00
juha
802ff9d061 Jedi Code Format: Fix option "leave as is" for linebreak in blocks. Issue #38277, patch from Domingo Galmés.
git-svn-id: trunk@64305 -
2020-12-29 23:07:28 +00:00
juha
ac6049864a LCL: Give new name to left-Backslash key on 102-keys keyboard. Issue #37966, patch from CudaText man.
git-svn-id: trunk@64304 -
2020-12-29 22:56:43 +00:00
juha
9219ea531d Move unit GraphMath from LCL to LazUtils. It has no dependencies to GUI.
git-svn-id: trunk@64303 -
2020-12-29 22:56:40 +00:00
juha
3feac99f06 Designer, editor: Formatting.
git-svn-id: trunk@64302 -
2020-12-29 22:56:31 +00:00
juha
c0926457b8 IdeIntf: Harmonize events for Delete, update OI's tree when plugins are deleted from PSScript.
git-svn-id: trunk@64301 -
2020-12-29 22:47:37 +00:00
juha
943e4e4ff7 IdeIntf: Remove "const" from an event. Add HookGetCheckboxForBoolean handler in OI only once.
git-svn-id: trunk@64300 -
2020-12-29 22:47:34 +00:00
michl
5610156d9f AnchorDocking: Don't loose docking side with ManualDock. Issue #38272
git-svn-id: trunk@64299 -
2020-12-29 10:33:37 +00:00
michl
bfe13f352f AnchorDocking: Allow docking in AnchorDockPanel on a TargetControl. Issue #37165
git-svn-id: trunk@64298 -
2020-12-29 10:24:14 +00:00
mattias
5607a8093c lhelp: show help on --help and -h
git-svn-id: trunk@64297 -
2020-12-28 22:45:11 +00:00
maxim
fe9ac84b09 Pas2JS: moved resource strings for VS Code extensions to the correct location, improved wording, i18n, regenerated translations and updated Russian translation
git-svn-id: trunk@64296 -
2020-12-28 21:49:56 +00:00
joost
a32ac8e665 FpDebug: support more function-arguments (x86_64)
git-svn-id: trunk@64295 -
2020-12-28 21:33:51 +00:00
joost
cfa42adfc3 FpDebug: Fpmake.pp updated
git-svn-id: trunk@64294 -
2020-12-28 21:27:55 +00:00
michl
2300a04013 IDE: Fix not handled AV on startup when broken fppkg.cfg is selected
git-svn-id: trunk@64293 -
2020-12-28 19:21:20 +00:00
juha
2d29afae9c IdeIntf: Remove an unused property OwnerComponent.
git-svn-id: trunk@64292 -
2020-12-28 19:15:26 +00:00
mattias
5fe35be313 IDE: less hints
git-svn-id: trunk@64291 -
2020-12-28 16:59:41 +00:00
wp
97b67541f1 TAChart: TPolygonSeries supports complex polygons now (holes, non-contiguous, self-intersecting).
git-svn-id: trunk@64290 -
2020-12-28 16:57:47 +00:00
jesus
cc6e0d00c6 LazReport: fix AV export regression, patch by Zdravko Gabrovski issue #38258
git-svn-id: trunk@64289 -
2020-12-28 15:43:31 +00:00
michl
e441f568b9 AnchorDocking: Allow ManualDock for Target TAnchorDockPanel. Issue #37165
git-svn-id: trunk@64288 -
2020-12-27 19:55:28 +00:00
michael
965f4823f2 * Remove windows-only code
git-svn-id: trunk@64287 -
2020-12-27 16:55:33 +00:00
michael
2134a62af3 * Implement VS Code template dialog setting
git-svn-id: trunk@64286 -
2020-12-27 16:30:40 +00:00
dmitry
292137d3e3 cocoa: adding support for precise scrolling deltas. bug #38205
git-svn-id: trunk@64285 -
2020-12-27 07:39:37 +00:00
michl
24567c321c Designer: Alternative fix of closing a LAMW form in designer. Related to revision 61223 #298236df33 and 64283
git-svn-id: trunk@64284 -
2020-12-26 22:44:03 +00:00
michl
d0d67fe1b4 SpartaDockedFormEditor: Revert revision 61223 #298236df33 as it is wrong. Never call Application.ProcessMessages on closing of IDE. Frames in SpartaDockedFormEditor working again (memory leak at closing of IDE with debug symbols is gone)
git-svn-id: trunk@64283 -
2020-12-26 22:39:45 +00:00
michl
b2881f7b9b SpartaDockedFormEditor: Remove not needed funny button
git-svn-id: trunk@64282 -
2020-12-26 16:37:51 +00:00