Commit Graph

56048 Commits

Author SHA1 Message Date
mattias
4c09dc2ed2 IDE: Make sure temp dir exists before starting IPC server. Issue #35838
git-svn-id: branches/fixes_2_0@62855 -
2020-04-02 11:22:31 +00:00
mattias
6ae9bebcfe Codetools: Support Codecompletion inside "with begin end" block. May fix other cases, too. Issue #0023782
git-svn-id: branches/fixes_2_0@62854 -
2020-04-02 11:22:10 +00:00
mattias
9f79c56107 LCL: Prevent a crash when freeing a DBEdit with focus. Issue #27178
git-svn-id: branches/fixes_2_0@62853 -
2020-04-02 11:21:45 +00:00
mattias
3f95c60f40 LCL: Prevent a crash in Coolbar when clicking a Grabber in an empty band.
git-svn-id: branches/fixes_2_0@62852 -
2020-04-02 11:21:27 +00:00
mattias
851dc814ae MacOS: Improve external tool execution with an .app application. Issue #36314
git-svn-id: branches/fixes_2_0@62851 -
2020-04-02 11:21:05 +00:00
mattias
4ec00f8765 LCL: Prevent an exception in TPageControl with a disabled tab. Issue #36282
git-svn-id: branches/fixes_2_0@62850 -
2020-04-02 11:20:42 +00:00
mattias
c2436284b0 LazReport: In TfrCustomMemoView do not convert code page when loading lines from a blob field. Issue #36264
git-svn-id: branches/fixes_2_0@62849 -
2020-04-02 11:20:22 +00:00
mattias
efebefd5c2 lazutils: SysToUTF8: only UTF8_RTL, issue #35696, from Serge Anvarov
git-svn-id: branches/fixes_2_0@62848 -
2020-04-02 11:10:42 +00:00
maxim
cb59956acd Merged revision(s) 62505-62506 #fbf5621974-#fbf5621974 from trunk:
LCL: grids: don't store default TitleFont
........
Grid: fix High-DPI font scaling
........

git-svn-id: branches/fixes_2_0@62838 -
2020-03-31 21:25:27 +00:00
maxim
b110179beb Merged revision(s) 61291 #5b5ad75799 from trunk:
LazUtils: Add OnCompare func for TFreeTypeFont's AVLTree. Prevents adding glyphs many times. Issue #35627.
........

git-svn-id: branches/fixes_2_0@62837 -
2020-03-31 21:24:23 +00:00
maxim
c30586b3f9 Merged revision(s) 62621 #acc7de51bd from trunk (separate patch by Bart):
TStringGrid: also call DoCellProcess when pasting HTML. Issue #0036576.
........

git-svn-id: branches/fixes_2_0@62836 -
2020-03-31 21:23:17 +00:00
maxim
b6b334264b Merged revision(s) 62787 #4ff199e1d7, 62804 #dd9be6d9e1 from trunk:
FileIsText: only exit False if an "illegal" char is found, don't require a NewLine char being present. Resolves #0036679.
........
LazUtils/FreeType: Avoid ignoring font files after reading defective one.
........

git-svn-id: branches/fixes_2_0@62825 -
2020-03-30 19:36:42 +00:00
maxim
8f5c8b8fae Merged revision(s) 62641 #72551f3c1e, 62646 #e51bb976a4 from trunk:
LCL: WinCE: align implementation of TWinCEWSCustomEdit.GetPreferredSize with Win32. Does not use AWinControl.Caption. In WinCE7 GetTextExtentPoint32() for empty string returns 0 height (In WinCE6 returns non-zero height), which causes empty TEdit controls to shrink in height.
........
LCL: WinCE: in WinCE7 TBitBtn changes font when focused. So set font explicitly before painting Caption. Hot fix inspired by Win32 implementation.
........

git-svn-id: branches/fixes_2_0@62824 -
2020-03-30 19:33:58 +00:00
maxim
43998ec941 Merged revision(s) 62628 #d47d48cd56, 62633 #6483f57d33 from trunk:
TAChart: Fix painting of checkboxes in TChartListBox on COCOA.
........
TAChart: Fix drawing of checkboxes/radiobuttons on Cocoa, part 2.
........

git-svn-id: branches/fixes_2_0@62823 -
2020-03-30 19:32:04 +00:00
maxim
b8f25955d0 Merged revision(s) 62137 #193392dc98 from trunk:
LCL-GTK3: Implement TrayIcon for GTK3 widgetset. Issue #36209, patch from David Bannon.
........

git-svn-id: branches/fixes_2_0@62822 -
2020-03-30 19:31:02 +00:00
mattias
406ed6121f IDE: run params default for windows
git-svn-id: branches/fixes_2_0@62681 -
2020-02-27 12:04:33 +00:00
dmitry
e92a2c8d37 lcl: adding sortindicator for the listview control
git-svn-id: branches/fixes_2_0@62667 -
2020-02-24 04:12:44 +00:00
dmitry
374c0f7699 Merged revision(s) 62561-62562 #c6feb9685a-#c6feb9685a, 62568 #6758ea533d, 62589 #edd505d679, 62661-62663 #cdede4ea6f-#cdede4ea6f from trunk:
cocoa: assigning callback to a spinedits arrows
........
cocoa: getting rid of unnecessary text change notifications. bug #36578
........
cocoa: surpressing beeps on windows for unknown key presses
........
cocoa: eliminating horizontal spacing between columns to match winapi. bug #36618
........
cocoa: adding automatic largeInc determination based of the page size
........
cocoa: removing additional offset on large scroll
........
cocoa: passing scroll part information, whenever the scroll part is known
........

git-svn-id: branches/fixes_2_0@62666 -
2020-02-24 04:07:44 +00:00
mattias
8c392f47f1 codetools: parse varargs of type
git-svn-id: branches/fixes_2_0@62658 -
2020-02-22 09:01:57 +00:00
mattias
68bb23dcf7 codetools: fixed IsCompilerExecutable allowing fpc*, bug #36689
git-svn-id: branches/fixes_2_0@62652 -
2020-02-20 09:10:01 +00:00
maxim
67fb0f4032 Merged revision(s) 62211 #6fe903d537 from trunk:
LCL-GTK3: Prevent a crash with Wayland caused by allocating 0-sized surface. Issue #36220, patch from Anton Kavalenka.
........

git-svn-id: branches/fixes_2_0@62618 -
2020-02-07 22:20:39 +00:00
maxim
f4e5f3f56a Merged revision(s) 62474 #6f1497ade1 from trunk:
revert 61976 #ec34c3f2f1:
lazutils: lazutf8: fixed TStringList.LoadFromFile load UTF8 by default
* not needed any more because the latest FPC trunk has TEncoding.Default=SystemEncoding that is UTF-8 in Lazarus/LazUTF8
........

git-svn-id: branches/fixes_2_0@62617 -
2020-02-07 22:11:21 +00:00
maxim
4f57011244 Merged revision(s) 62451 #7b571df356 from trunk:
TAChart: Improved and scaled layout of TChartListbox demo.
........

git-svn-id: branches/fixes_2_0@62616 -
2020-02-07 22:10:15 +00:00
maxim
1b233c929f Merged revision(s) 62405 #4640c96ffc from trunk:
IdeIntf: Add ForceUpdate parameter for selecting items in GridColumns editor. Prevents an AV when deleting a column. Issue #36260.
........

git-svn-id: branches/fixes_2_0@62615 -
2020-02-07 22:05:28 +00:00
maxim
702a8b2588 Merged revision(s) 61111 #7de7e2642e, 62486 #ec8029f42d from trunk:
LCL: Fix some data control regressions. Issue #35458, patch from Michal Gawrycki.
........
LCL/FlowPanel: Fix AutoSize issue (issue #36514).
........

git-svn-id: branches/fixes_2_0@62614 -
2020-02-07 22:02:11 +00:00
dmitry
b25c8c2021 Merged revision(s) 62557 #36ff050ad7 from trunk:
cocoa: fix setting a new state for cocoa checkbox.
........

git-svn-id: branches/fixes_2_0@62558 -
2020-01-15 03:46:38 +00:00
dmitry
36b9cd3dbc Merged revision(s) 62539-62541 #f588bfbd67-#f588bfbd67, 62545 #7c70ec7fc5 from trunk:
cocoa: fixes for pattern brush drawing, by Yuriy Sydorov. bug #36565
........
cocoa: manual scroller no longer reports any mouse events (to prevent double events). This matches the TCocoaScrollView implementation. Forcefully syncing scroll position with position of scrollers :) before reporting to LCL. bug #36048
........
cocoa: adding support for small and large change parameters of a scrollbar
........
cocoa: checkbox and radiobuttons initial value are now set without change notification
........

git-svn-id: branches/fixes_2_0@62546 -
2020-01-14 01:41:38 +00:00
wp
81cf2717b8 Fix compilation of LazHelpHtml for WinCE. Issue #36558.
git-svn-id: branches/fixes_2_0@62543 -
2020-01-13 11:51:05 +00:00
dmitry
7577b0e9e9 Merged revision(s) 62528-62533 #4ac51dd8f4-#4ac51dd8f4, 62537 #276621a391 from trunk:
cocoa: updating font dialog to return the selected font size. bug #33990
........
cocoa: updating font dialog initialization. bug #33990
........
Cocoa fonts: comments
........
cocoa: hiding focus ring, if borderstyle is none. bug #34828
........
cocoa: not allowing a column of TListView to be selected automatically.
........
Cocoa: font dialog:
* Make font size dependent on the dialog's Font.PixelsPerInch and not the global CocoaBasePPI because the user can change it.
* Avoid rounding errors by using the real Font.Size value.
Bug #34828
........
cocoa: updating patrons list
........

git-svn-id: branches/fixes_2_0@62538 -
2020-01-12 20:07:25 +00:00
dmitry
199a2ed24a Merged revision(s) 62497-62498 #2c9df5c82a-#2c9df5c82a, 62500 #0094808177, 62502 #eb25ab2a98 from trunk:
cocoa: implementing TCocoaWSCustomTabControl.GetTabRect
........
cocoa: implementing GetTabRect for left and right tabs
........
cocoa: releasing capture, if present on disabling or destroying a window. bug #36491
........
cocoa: checking for enabled flag of the controls hierarchy
........

git-svn-id: branches/fixes_2_0@62503 -
2020-01-07 05:03:10 +00:00
dmitry
61b50a74b1 Merged revision(s) 62481 #11fb196904, 62490 #5301fa49cb from trunk:
cocoa: forcing focusing of the content view, if window gets focused
........
cocoa: ShowHide only activates non hint window. Hint window are brought to front, but not getting focus. bug #36516
........

git-svn-id: branches/fixes_2_0@62499 -
2020-01-05 07:14:49 +00:00
ondrej
08a6145ef0 merge r62477 #61ff6d46d1: Fix compilation with FPC trunk
git-svn-id: branches/fixes_2_0@62478 -
2020-01-03 10:24:51 +00:00
maxim
b812427da7 Merged relevant parts of revisions 62359 #655b966c04, 62367 #9307a89215, 62449 #ce0447a6e0 from trunk:
LCL: regenerated translations and updated Russian translation
........
Translations: Brazilian Portuguese translation update by Marcelo B Paula, bug #36413
........
Translations: Ukrainian translation update by Olexandr Pylypchuk, bug #36476
........

git-svn-id: branches/fixes_2_0@62476 -
2020-01-02 22:09:14 +00:00
maxim
062b0e4ee4 LCL: regenerated translations
git-svn-id: branches/fixes_2_0@62475 -
2020-01-02 21:49:09 +00:00
dmitry
c9d2229b7b Merged revision(s) 61059-61060 #59587a0452-#59587a0452, 61107 #9c59e031fc, 61135 #2b46c6d5e0, 61536 #9bf589f433, 61739 #f13e53bf2f, 61767 #159d5cc8cc, 62188 #7ec219a05b from trunk:
opengl: adding support for Cocoa mouseMove events for Right and Middle mouse buttons. Based on the patch by Chris Rorden. bug #34938
........
opengl: forcing painting even with NSgraphicContext currentContext assigned. Seems to be Mojave specific behaviour not to provide context. bug #34983
........
opengl: update cocoa compilation for the latest update with keyhandling
........
opengl: prevent double mouse-down events for cocoa. bug #35480
........
opengl: fix cocoa compilation
........
opengl: cocoa: removing Dummy type declarations as they are not in the code. Yet the type declarations changed in trunk FPC version (3.2.0). bug #35974
........
opengl: getting rid of cocoa GetNSObjectView
........
opengl: remove gl unit used from glcocoanscontext unit
........

git-svn-id: branches/fixes_2_0@62469 -
2019-12-30 06:46:56 +00:00
dmitry
9e2610ab5d Merged revision(s) 61018 #085e081476 from trunk:
docs: adding Zoë Peterson for ongoing cocoa patching
........

git-svn-id: branches/fixes_2_0@62460 -
2019-12-29 21:06:23 +00:00
dmitry
47ad0f79ca Merged revision(s) 61708 #facd13195f from trunk:
cocoa: checking if coordinates flip in needed, when showing popup menu. bug #35975
........

git-svn-id: branches/fixes_2_0@62459 -
2019-12-29 21:04:25 +00:00
dmitry
81bb1a5151 Merged revision(s) 61617 #b79e2dd90e, 61648 #2e83444e6f, 61675 #17237b6c07, 61692-61696 #cd175cddac-#cd175cddac, 61704-61705 #1437ddef5a-#1437ddef5a, 61709-61710 #013971d96c-#013971d96c, 61731 #3b11854e5c, 61741 #aedf865eae, 61760-61766 #e768107d9c-#e768107d9c, 61768 #462398fd23, 61770-61772 #ea3cda9791-#ea3cda9791, 62052-62054 #bbe61721bd-#bbe61721bd, 62060-62061 #53c619e833-#53c619e833, 62145 #5800bed098, 62155-62161 #636869401c-#636869401c, 62180 #546b5cedd7, 62183 #13ce80945c, 62187 #4f6399d3ef, 62198-62199 #0f2e400fb5-#0f2e400fb5, 62203-62205 #2616af5061-#2616af5061, 62213-62216 #3318764632-#3318764632, 62227-62228 #ffc0a1fef3-#ffc0a1fef3, 62250-62252 #e4c13cf957-#e4c13cf957, 62279-62280 #7edf0a44bc-#7edf0a44bc, 62351-62352 #79faff4c47-#79faff4c47, 62355 #4213fd0677, 62373-62374 #8535bb2ac4-#8535bb2ac4, 62407 #a21894d597, 62413-62414 #810d3c4e27-#810d3c4e27, 62433-62435 #c620145935-#c620145935, 62437-62439 #16d8971fa2-#16d8971fa2, 62452 #03d28dad0f from trunk:
cocoa: drawedge implementation
........
cocoa: softer color selection for shadows and pseudo 3d for 10.14, rather than deprecated methods call
........
cocoa: extending the list of patreons for August pledge
........
cocoa: nice look for status bar
........
cocoa: calling default NSView lclSetEnabled for tabcontrol
........
cocoa: placing a customcontrol manualscrollview into manualscrollhost. The host itself is a scrollview. But it is not used for Scroll, but rather for the feature of drawing the border. bug #34761
........
cocoa: adding support for ownerData checkbox values on TListView
........
cocoa: adding forced mouse up for buttons bug #35826
........
cocoa: adding window content invalidation on hidding of window
........
cocoa: update ScreenToLocal to support flipped controls
........
cocoa: (re)creating a scrollbar with the dimensions matching the desired kind. If kind is changed in runtime - recreating the scrollbar. bug #35968
........
cocoa: returning alpha multiplied colors in NSColorToRGB
........
cocoa: removing extra null-character from the clipboard text. Patch by Zoë Peterson. bug #35984
........
cocoa: making ManualScrollHost to pass the methods to the hosted ManualScrollView
........
cocoa: clearing selection of ListBox is itemIndex is set to negative index
........
cocoa: restoring pen and brush states for DrawEdge call. bug #35998
........
cocoa: resolve the position corruption on bringToFront call. bug #35826
........
cocoa: replacing use of GetNSObjectView with lclContentView
........
cocoa: replacing use of GetNSObjectView with lclContentView
........
cocoa: replacing use of GetNSObjectView with lclContentView
........
cocoa: getting rid of GetNSObjectView
........
cocoa: don't change buttons font, if a custom font has been selected
........
cocoa: correct horizontal scrollWheel. macOS and LCL are using reversed delta values
........
cocoa: preventing double scrollWheel message for the pair of manualHost+manualScrollView bug #36001
........
cocoa: not sending onSelectionChange notification while clearing TListBox stringlist
........
cocoa: range check errors resolution, modified patch by C Western. bug #36171
........
cocoa: updating numerical value of the spin edit on every text change notification. bug #36096
........
cocoa: changed the way MaxLength is being passed to cocoa interface (adding new method, instead of direct field access). Implemented ontextchange event for password field. bug #36158
........
cocoa: restoring the window style changes notification. patch by Zoë Peterson. bug #35622
........
cocoa: fix client frame coordinates for NSBox (groupbox). bug #36109
........
cocoa: scrollwheel events for textedit fields. bug #36221
........
cocoa: disabling main menu, while showing application modal message
........
cocoa: using scrollingDeltaAXIS methods as suggested my macOS docs for scroll method. Updated the basis of delta to LCL 120 as suggested in bug #36221 by C Western
........
cocoa: implementing customlistview.ItemGetState for lisSelected. bug #36074
........
cocoa: implementing the event to call filetypechanged for a file dialog. bug #36024
........
cocoa: implementing folderChanged and selectionChanged for opensavefile dialogs
........
cocoa: adding support for close event of a filedialog
........
cocoa: preventing sending of setFocus message to a control already focused. bug #36111
........
cocoa: revert the change of not sending focus notification for LCL focused control
........
cocoa: forcing the constant scroll step
........
cocoa: changing how date conversion utilities work. Currently following the system calendar. bug #36252
........
cocoa: prevent all windows from being enabled if modal session is active
........
cocoa: proper handling of cancel (escape) action on a prompt dialog
........
cocoa: renaming of the SaveOpenDialog delegate class. update the use of file filtering
........
cocoa: interrupting mouse event handling (by cocoa), if modal window is shown. bug #36266
........
cocoa: removing the method that is using macOS 10.9 declaration (NSErrorPointer). The method does not need to be implemented. bug #36267
........
cocoa: fix open dialog file type empty filter. bug #36272
........
cocoa: imlpementing gridlines property for tableview. bug #36263
........
cocoa: adding menu hijack specific handling of quite menu command. bug #36265
........
cocoa: making file related dialogs modal (blocking menu)
........
cocoa: update the code to be compatible fpc-trunk headers. patch by noname012
........
cocoa: corrections of NSAppKitVersionNumber10_14 to match the current Xcode headers bug #36283
........
cocoa: making togglebox consistent with the standard button. Providing configuration to make the cocoa run in backwards compatible manner
........
cocoa: update change text edit font color. bug #36313
........
cocoa: setting the default system font to a text edit on allocation
........
cocoa: making font configuration to be selector based, rather than class based
........
cocoa: checking for the rectangle to have some size before drawing
........
cocoa: supporting additional bmp formats. Patch by TK. bug #36311
........
cocoa: making mainpool lazy initialization - moving to AppInit, to prevent conflicts with dynlib loading. bug #36360
........
cocoa: making menu captions resource strings. Patch by Zoë Peterson. bug #35234
........
cocoa: using brush color for FrameRect. bug #36410
........
lcl: cocoa: fixed compile
........
cocoa: forcing focus set on Showing window through WS ShowHide method
........
cocoa: restoring the use of CocoaLoopOverride for a better control of the message loop. bug #36405
........
cocoa: sanitizing temp url selection in a dialog selection
........
cocoa: calling finishLaunching explicitly on AppInit rather than from run loop
........
cocoa: updating lclRelativePos function, based on the patch by David Jenkins. bug #36049
........
cocoa: removing unused function. related to bug #36049
........
cocoa: using the primary display (index 0) as a base for screen coordinates. Patch by David Jenkins. bug #36049
........
cocoa: changing the way undo manager is allocated. Changing handling of the text assignment to a memo. Patch by Zoë Peterson. bug #36073
........
cocoa: sanity check for undomanager reversal
........
cocoa: properly cleaning up the callback interface for the calendar
........

git-svn-id: branches/fixes_2_0@62458 -
2019-12-29 20:57:29 +00:00
dmitry
7846210f02 Merged revision(s) 61288 #95b9f913d4, 61326 #fd9e22019c, 61394 #f525589cfb, 61437 #25a5e07eaf from trunk:
treeview: calling UpdateScrollbars on resizing, expand, collapse or selection move. Removed UpdateScrollbars from the darwing. Prevents Cocoa drawing (upside down) glitch. #34334
........
lcl: TreeView scrollbars needs to be updated on mouse wheel. #35677
........
lcl: updating scrollbars after scrollbars were changed
........
treeview: updating scrollbars on items addition and removal. #35738
........

git-svn-id: branches/fixes_2_0@62457 -
2019-12-29 20:43:09 +00:00
dmitry
78045d2f44 Merged revision(s) 62277 #a2486e3c42 from trunk:
mtprocs: proper len type (csize_t instead of (cint) for fpsysctl call. #36325
........

git-svn-id: branches/fixes_2_0@62456 -
2019-12-29 20:35:33 +00:00
mattias
cdbcce6410 LCL/LazHelpHtml: Fix Microsoft Edge not being detected as default browser on Windows 10. Issue #35659, patch by jamie philbrook, slightly modified.
git-svn-id: branches/fixes_2_0@62400 -
2019-12-14 18:09:11 +00:00
mattias
aba78853f5 LCL/ComboBoxEx: Use type TImageIndex for image index properties of TComboboxEx. Issue #33026, patch by Michal Gawrycki.
git-svn-id: branches/fixes_2_0@62399 -
2019-12-14 18:08:53 +00:00
mattias
a1b4bb3d0a SynEdit: MarkupFoldColor, fix crash when HL does not have config.
git-svn-id: branches/fixes_2_0@62398 -
2019-12-14 18:08:31 +00:00
mattias
e8fbe92d36 LCL: Fix TSpeedButton and TBitBtn using non-scaled icons if an Action is assigned to these controls (https://forum.lazarus.freepascal.org/index.php/topic,47574.msg340909.html)
git-svn-id: branches/fixes_2_0@62397 -
2019-12-14 18:08:14 +00:00
mattias
5f7d7361bc fpvectorial: Fix memory leak caused by TvRenderInfo.Errors. Issue #36331
git-svn-id: branches/fixes_2_0@62396 -
2019-12-14 18:07:50 +00:00
mattias
d38aa42d42 codetools: parse property; experimental; platform
git-svn-id: branches/fixes_2_0@62395 -
2019-12-14 18:05:35 +00:00
mattias
a11683df3c multithreadprocs: fixed copile darwin fpc 3.3.1
git-svn-id: branches/fixes_2_0@62376 -
2019-12-11 10:32:40 +00:00
maxim
e76999a57b Merged revision(s) 62299 #d34b0037c8 from trunk:
Translations: Slovak translation update by LacaK, bug #36357
........

git-svn-id: branches/fixes_2_0@62300 -
2019-11-25 22:52:01 +00:00
maxim
429779eee9 Merged revision(s) 62297 #85fe179abe from trunk:
IDE: improved 'Add unit to Uses' dialog layout, bug #36344
........

git-svn-id: branches/fixes_2_0@62298 -
2019-11-25 22:27:58 +00:00
maxim
92378adfe6 Merged revision(s) 62255 #410b95d666 from trunk:
TAChart: Avoid crash in unfavorable cases when cChart, NavPanel and AutoScaleAxisTransforms are on the form (https://forum.lazarus.freepascal.org/index.php/topic,47429.0.html). Patch by PaulRowntree.
........

git-svn-id: branches/fixes_2_0@62267 -
2019-11-17 21:46:57 +00:00