Commit Graph

56014 Commits

Author SHA1 Message Date
mattias
e622c77850 IDE: Set active project in Project Inspector when user opens it first time.
git-svn-id: branches/fixes_2_0@62932 -
2020-04-11 07:24:11 +00:00
mattias
326d243023 Designer: Fix moving multiple controls with keyboard after deselecting one. Issue #35255
git-svn-id: branches/fixes_2_0@62931 -
2020-04-11 07:23:35 +00:00
mattias
bbc8c655bd IDE: Sanity check when loading LPS run modes. Issue #35410
git-svn-id: branches/fixes_2_0@62930 -
2020-04-11 07:21:46 +00:00
dmitry
6299e12cab Merged revision(s) 62689-62691 #74b4d747cf-#74b4d747cf, 62697 #7ba5991c3b, 62701 #dfd2b9ea65, 62707-62711 #64e40526df-#64e40526df, 62724-62725 #cc3d447e35-#cc3d447e35, 62732 #965242b45e, 62776 #5a99d126b2, 62885 #e1d1474d82 from trunk:
cocoa: reverted accidental changes from cocoaint.pas made in r62216 #0e6259598f as per Dmitry's comment
........
cocoa: safe color conversion from colordialog to lcl color
........
cocoa: reverting r62568 #6758ea533d. the revision broke SPACE processing (to emulate click on buttons)
........
cocoa: handling ESC buttons on a promptuser dialog in a muted way. Patch by Zoë Peterson. bug #36760
........
cocoa: use number of items, of inserting a menu item for the first time
........
cocoa: calling updateWindows on every event sent. Removing the hacking property assignment.
........
cocoa: preventing font or color dialog from being restored on Application restart (in case of a crash while they're shown on restart)
........
cocoa: reverting undesired change of explicit closing of dialogs
........
cocoa: if closewindow button (red-x) is pressed, cancel color selection, instead of accepting the color
........
cooca: adding support for listview column text alignment
........
cocoa: introducing lclSetColumnAlign to allow set allignment for cell and view based tables
........
cocoa: invalidating header and contents of a column on alignment change
........
cocoa: updating drawing processing for cocoa table
........
cocoa: handling togglebox events as checkbox events. bug #36812
........
cocoa: fix compilation for fpc320rc1 headers. bug #36864
........

git-svn-id: branches/fixes_2_0@62901 -
2020-04-06 13:07:06 +00:00
maxim
630549ca9a Translations: Hungarian translation update by Péter Gábor, bug #36873
git-svn-id: branches/fixes_2_0@62894 -
2020-04-05 22:00:12 +00:00
martin
f01d37a4ba Merged revision(s) 62810-62811 #1f69cf465e-#1f69cf465e,62868 #9ff9f3ac82 from trunk:
FpDebug: fix typecast/deref for generated-pointer-type "^Foo($1234)", for signed values.
........
FpDebugger (all): prevent nil deref, for empty watch (auto instance class)
........
Fix leak in TLCLGlyphs.GetImageIndex (introduced in r58106 #50dc18646e). Entry name must be set, before adding to tree. Since the name is used as lookup (the tree "sorts" by the name). 
........

git-svn-id: branches/fixes_2_0@62869 -
2020-04-02 20:42:02 +00:00
mattias
bbbafe2991 LCL: Fix TDBGrid editor alignment when FixedCells>1. Issue #35715
git-svn-id: branches/fixes_2_0@62867 -
2020-04-02 16:01:13 +00:00
mattias
1159b932fb IDE: Update project inspector also when there is no active project.
git-svn-id: branches/fixes_2_0@62866 -
2020-04-02 16:00:51 +00:00
mattias
2fbaa6d712 LCL-GTK2: Use correct Brush.Color with non-default Brush.Style. Issue #36709
git-svn-id: branches/fixes_2_0@62865 -
2020-04-02 16:00:06 +00:00
mattias
e8353b7d83 Codetools: Improve parsing of recursive generics structures. Issue #34824
git-svn-id: branches/fixes_2_0@62864 -
2020-04-02 15:59:38 +00:00
mattias
9f19d60293 LazUtils: Remove UTF8Encode calls and suppress warnings in winlazfileutils.inc. Issue #35512
git-svn-id: branches/fixes_2_0@62863 -
2020-04-02 15:56:39 +00:00
mattias
040456bf0e LCL-Win32: Show images correctly in OwnerData Listview with property SubItemImages. Issue #35173
git-svn-id: branches/fixes_2_0@62862 -
2020-04-02 15:56:16 +00:00
mattias
ecf0702a88 LazUtils: Remove incorrect code dealing with strings on Windows, use SysUtils code instead. Issue #35512
git-svn-id: branches/fixes_2_0@62861 -
2020-04-02 15:51:35 +00:00
mattias
01a1033b26 Codetools: In function IsCompilerExecutable fix dcc extension check and fix return value.
git-svn-id: branches/fixes_2_0@62858 -
2020-04-02 11:24:15 +00:00
mattias
6bea3632b6 LCL: Update "Accept" flag in TCustomAbstractGroupedEdit.EditDragOver. Optimize. Issue #36685
git-svn-id: branches/fixes_2_0@62857 -
2020-04-02 11:23:39 +00:00
mattias
581e1bd67c LHelp: Fix a range error when title has sole
git-svn-id: branches/fixes_2_0@62856 -
2020-04-02 11:22:52 +00:00
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