Commit Graph

22789 Commits

Author SHA1 Message Date
Jesus Reyes A
37e1398b1c LCL: fix TTreeview ShowSeparators default value.
(cherry picked from commit 0d7fc55be1)
2023-06-28 16:06:37 +03:00
wp_xyz
eda6b3c1df LCL: Fix incorrect clipping by ellipse in TLazCanvas.
(cherry picked from commit e3580cd0b0)
2023-06-27 17:05:57 +03:00
wp_xyz
cb1b303b34 LCL: Fix fpc version check in LazCanvas' polygon fill routine.
(cherry picked from commit a39b58d8cd)
2023-06-27 16:51:55 +03:00
Maxim Ganetsky
152f233f2c LCL: adjusted IFDEFs for TLazCanvas.DoPolygonFill method (DoPolygonFill was merged to FPC 3.2.3)
(cherry picked from commit 261a62e748)
2023-06-27 01:46:03 +03:00
Željan Rikalo
7b9a6b27d1 Qt5,Qt6: fixed crash of TListView in design time. issue #40349
(cherry picked from commit c1d775df54)
2023-06-27 01:46:03 +03:00
Abou Al Montacir
d1e30d656a GTK3: Fixed crash on Win64 after recent changes on GTK3 hints.
Seems that on Win64, `FHintControl` is not always a valid `TWinControl`
class instance.

(cherry picked from commit 58645a39f4)
2023-06-25 22:04:36 +03:00
Abou Al Montacir
087650e40b GTK3: Fixed hint flickering when mouse moves.
Closes: #37712.

When mouse moves but remains over the same widget, we should not
recreate the hint window. Just break execution and 'exit `ActivateHint`
function early.

(cherry picked from commit f7c5d02afb)
2023-06-25 19:28:49 +03:00
mattias
fe3389fc58 set fixes version to 3.0RC1 2023-06-25 17:59:59 +02:00
Abou Al Montacir
cefed8929d GTK3: Fixed rendering of images using 32 bits per pixel.
Closes: #40337. Thanks To: Anton Kavalenka.

When the image is stored in a buffer using 32 bits per pixel, we don't
need to copy pixel by pixel unless the components order is wrong.
We can use `System.move` in this case.
This is the same thing that is used in GTK2.
2023-06-25 13:14:56 +00:00
Abou Al Montacir
1b1444f245 GTK3: Fixed workarea handling on systems with frequent monitor removals.
Closes: #40333. Thanks To: Anton Kavalenka.

Check number of connected monitors and fail if none.

Fall back to first monitory id no primary monitor is defined.
2023-06-24 14:13:26 +00:00
Abou Al Montacir
06ec2750ca GTK3: Passed handle of hint win control to WS inside hint data pointer.
Closes #40331.

GTK3 WS needs to get that handle in order to retrieve the parent window
which need to be set as transient of the newly created popup window.

This is a required by GTK3 documentation as one can see in
  https://docs.gtk.org/gtk3/method.Window.set_transient_for.html

This patch needs to touch common LCL code, but `HintData` files does
not seem to be really used.
2023-06-24 13:59:53 +00:00
rich2014
05555c84d5 Lcl/DrawText: Fix #40324: return value set to the height 2023-06-24 15:41:04 +08:00
rich2014
bd6134b9f3 Cocoa: improve wakeupEventLoop() introduced from 34ab4cb
NSComboBox Dropdown List send NSApplicationDefined NSEvent too (subtype=0).
2023-06-23 17:51:23 +08:00
rich2014
8b426df777 Cocoa: TCocoaComboBox: refactor and comments 2023-06-23 12:54:16 +08:00
rich2014
b9b1f7f310 Cocoa: TCocoaComboBox: keep text case after ItemIndex changed when cbactRetainPrefixCase set 2023-06-23 12:27:19 +08:00
Maxim Ganetsky
82af317c33 LCL: fixed compilation with FPC 3.2.3 (PolygonNonZeroWindingRule was merged into it), issue #40339 2023-06-21 17:37:27 +03:00
giuliano411
8687767b7c Restored LCLType dependency for the proper THandle type.
THandle in LCL is a PtrUInt while in Sysutils is a longint.
2023-06-21 12:00:49 +02:00
Juha
cc7d9e60fb LCL: Simplify TTreeNode after adding support for Enabled property. Issue #40335, patch by n7800. 2023-06-20 11:09:58 +03:00
Maxim Ganetsky
79f7f1bbf2 LCL: Made TCustomImageList more extensible. Based on idea from merge request !202.
1. MarkAsChanged method (protected) is added, which sets FChanged to
true.
2. Virtual DoAfterUpdateStarted and DoBeforeUpdateEnded methods
(protected) are added. They are called in first BeginUpdate and last
EndUpdate respectively.
2023-06-19 16:11:00 +03:00
Abou Al Montacir
2958279f5c GTK3: Updated PangoCairo binding unit.
This unit is not generated when building Gtk-3 units. We generate it
with a separate command (see below).

We constrained the units version to Bullseye (Debian 11.6) shipped
libraries.

They were generated using the following command:
```sh
gir2pas -P Laz -e Set
        -M atk-2.36 \
        -M pango-1.16 \
        -M pangocairo-1.46 \
        -M glib-2.66 \
        -M gio-2.66 \
        -M gmodule-2.66 \
        -M gobject-2.66 \
        -M gtk-3.24 \
        -i /usr/share/gir-1.0/PangoCairo-1.0.gir \
        -o lazarus/lcl/interfaces/gtk3/gtk3bindings
```
2023-06-18 22:59:22 +00:00
Abou Al Montacir
682b34c021 GTK3: Updated binding units code to support building on Windows.
Added DLL name and entry point name to the external clause.

We constrained the units version to Bullseye (Debian 11.6) shipped
libraries.

They were generated using le following command:
```sh
gir2pas -P Laz -e Set -i /usr/share/gir-1.0/Gtk-3.0.gir -o gtk3-test-2 \
        -M atk-2.36 \
        -M pango-1.16 \
        -M pangocairo-1.46 \
        -M glib-2.66 \
        -M gio-2.66 \
        -M gmodule-2.66 \
        -M gobject-2.66 \
        -M gtk-3.24
```

Some files are still modified manually.
2023-06-18 20:18:00 +02:00
Abou Al Montacir
8adfc6f158 GTK3: Updated FreeType auto generated bindings after gir2pas changes.
No manual change is needed for this library.
2023-06-18 16:24:01 +00:00
rich2014
66922b7a2f Cocoa/TComboBox: AutoComplete supported when Dropped Down 2023-06-18 23:01:54 +08:00
Abou Al Montacir
f184921f26 GTK3: Removed manually defined types in libcairo generated unit.
This implied changing GTK3 LCL glue code to use the right type names.
2023-06-18 14:30:11 +00:00
Abou Al Montacir
9247249007 GTK3: Updated auto generated units after adding max version to gir2pas.
We constrained the units version to Bullseye (Debian 11.6) shipped
libraries.

They were generated using le following command:
```sh
gir2pas -P Laz -e Set -i /usr/share/gir-1.0/Gtk-3.0.gir -o gtk3-test-2 \
        -M atk-2.36 \
        -M pango-1.16 \
        -M pangocairo-1.46 \
        -M glib-2.66 \
        -M gtk-3.24
```

Some files are still modified manually.

Some changes ware needed in `gtk3procs.pas` to define legacy macro
`PANGO_PIXELS` and to remove compilation warning.
2023-06-18 14:30:11 +00:00
Juha
0ff44ca90a Revert some of the earlier LCLProc commit. Fix compilation on Windows. 2023-06-18 17:29:03 +03:00
Juha
e045ba01d2 Remove units from uses sections, especially LCLProc which now contains many wrappers to other non-LCL units. 2023-06-18 14:57:06 +03:00
Abou Al Montacir
621a2e479c GTK3: Updated Gtk3 units generated with new gir2pas version.
This change fixes translation of enums and bit fields after recent fin
in `gir2pas` tool.

This required a code change in `gtk3cobject.inc` as some bit fields were
treated as enums while they are now treated as sets.

Units were generated using the following command on Debian Bookworm (12)
```sh
gir2pas -P Laz -e Set -i /usr/share/gir-1.0/Gtk-3.0.gir -o gtk3bindings
```
Then, some functions were removed manually to enable support of Debian
Bullseye (11.6).
2023-06-17 23:11:44 +02:00
Abou Al Montacir
395a00614e gtk3: Fixed LineTo implementation. Closes #40323.
The function `cairo_stroke` causes the current path to be cleared from
the cairo context. Thus we loose the current position.

We replace is with `cairo_stroke_preserve` in order to preserves the
path within the cairo context.
2023-06-17 18:18:56 +02:00
Abou Al Montacir
7ea695cddc GTK3: Updated GObject2 unit generated with new gir2pas version.
This change migrates remaining GObject2 bit fields to Pascal sets.

This required a code change in `gtk3cellrenderes.pas` as integers could
not be cast into sets.

Units were generated using the following command on Debian Bookworm (12)
```sh
gir2pas -P Laz -e Set -i /usr/share/gir-1.0/Gtk-3.0.gir -o gtk3bindings
```
Then, some functions were removed manually to enable support of Debian
Bullseye (11.6).
2023-06-17 15:40:08 +00:00
rich2014
d15790c601 Cocoa: simplified TCocoaWSCustomComboBox.GetDroppedDown() 2023-06-17 19:10:15 +08:00
rich2014
1bb6b52d68 Cocoa/TComboBox: AutoDropDown supported in TCocoaWSCustomComboBox 2023-06-17 18:54:35 +08:00
rich2014
280c57e91d LCL/TCustomComboBox: replace cbactEnabled with AutoComplete 2023-06-16 22:07:47 +08:00
rich2014
3eccd94680 LCL/TCustomComboBox: refactor in TCustomComboBox.MatchListItem() 2023-06-16 21:58:16 +08:00
Juha
87fe030800 LazControls, LCL: Add shortcuts to TreeFilterEdit to work with TreeView. Issue #40321, patch by n7800. 2023-06-16 02:01:21 +03:00
rich2014
055ae4d900 LCL/TCustomComboBox: fix CaseSensitive in MatchListItem() 2023-06-16 00:01:16 +08:00
Juha
b0a3e49dc0 Allow query of LCLWidgetTypeName without LCL. Turn BuildLCLWidgetType into const and fix comment. 2023-06-15 16:46:47 +03:00
rich2014
40e7dd7854 Cocoa: Cursor: compatible with system controls that change the cursor by themselves, such as NSTextField 2023-06-15 21:41:29 +08:00
Maxim Ganetsky
b949b1d54f LCLTranslator: clean up 2023-06-15 03:04:09 +03:00
Juha
74446557f6 Remove old deprecated functions and units. 2023-06-15 02:35:52 +03:00
zeljan1
08283ae760 Qt6: fixed main menu under MacOS. 2023-06-14 19:50:52 +02:00
rich2014
85afe93ad6 Cocoa: CaseSensitive supported in TCocoaComboBox.comboBox_indexOfItemWithStringValue() 2023-06-14 23:46:05 +08:00
rich2014
6d9db64d24 LCL/TCustomComboBox: CaseSensitive supported in RealSetText() 2023-06-14 23:43:42 +08:00
rich2014
062bacda7a LCL/TCustomComboBox: Sorted supported (Cocoa first) 2023-06-14 22:39:47 +08:00
rich2014
2ce8c12ed9 Cocoa: fix AutoComplete in TCocoaWSCustomComboBox: inputting process 2023-06-14 22:23:32 +08:00
Željan Rikalo
03a4881ad3 Qt5: added forgotten QGuiApplication::applicationState() to the bindings and qt56.pas 2023-06-13 21:39:56 +02:00
Maxim Ganetsky
e763d920b7 IDE, LCL: removed stale GetText unit uses 2023-06-13 20:38:32 +03:00
Maxim Ganetsky
f80440d58b Translations: Ukrainian translation update by Olexandr Pylypchuk, issue #40312 2023-06-12 18:20:35 +03:00
Maxim Ganetsky
9c8663e0f6 LCL, LCLTranslator: when searching for translation files, use properly extracted language code (do not assume that it has fixed two-symbol length) 2023-06-12 16:29:08 +03:00
mattias
4323a6e9f5 lcl: fixed compile with fpc 3.2.2 2023-06-12 07:01:41 +02:00