rich2014
0a80c22cf5
Merge branch 'cocoa/startup'
2023-09-02 21:33:18 +08:00
rich2014
e234155cdc
Cocoa: Fix the APP openning files issue on startup (including Lazarus IDE)
2023-09-02 21:31:11 +08:00
rich2014
6c5322e24c
Cocoa: Fix #40484 : calling TApplication.ProcessMessages() issue before entering RunLoop
2023-09-02 21:31:11 +08:00
Juha
858c6931fc
IDE: Use the correct IDE build date/time. Set it in lazarus.pp which always gets compiled. Issue #40467 , patch by n7800.
2023-09-02 14:41:58 +03:00
Bart
5751dc379f
Fix spelling in a comment (spotted by Maxim).
2023-09-01 18:10:49 +02:00
Jesus Reyes A
9faceb4e77
LazReport: Adding 2x Zoom capabilities to LazReport Designer, from Yuliyan Ivanov, issue #40447
2023-09-01 01:41:27 -06:00
Bart
1367a3c865
Win32: ifdef the const declaration for FOS_OKBUTTONNEEDSINTERACTION in TWin32WSOpenDialog.GetVistaOptions.
2023-08-31 22:46:08 +02:00
Bart
c818418cfa
LCL: use consistent coding/indentation style in TOpenDialog.DoExecute.
2023-08-31 22:23:51 +02:00
Bart
fc8abb150c
LCL: TOpenDialog: fix language in a comment.
2023-08-31 22:20:41 +02:00
Bart
a5b48a084d
LCL: TOpenDialog: do not set ofExtensionDifferent if multiple files are selected.
...
(Also don't bother setting it the result of Execute is False.)
Reason:
The behavour of ofExtensionDifferent is based upon the workings of Windows LPOPENFILENAME behaviour
This behaviour is completely irratic when multiple files are selected, it can be on or off given the same input
Delphi 7 seems to not include the ofExtensionDifferent flag if multiple files are selected, regardless of their extensions
(And nobody seems to bother anyway about this flag)
2023-08-31 18:59:09 +02:00
wp_xyz
7b596989e8
Turbopower_ipro: Fix anchor position calculation, issue #40480 .
2023-08-31 18:58:19 +02:00
wp_xyz
f3c4d7f58d
Misc packages: Replace separate calls to sin() and cos() by sincos(). Issue #40473 .
2023-08-31 12:14:54 +02:00
wp_xyz
493a568bb0
TAChart: Replace separate sin() and cos() calls by sincos(). Issue #40473 .
2023-08-31 11:29:24 +02:00
wp_xyz
ffe2e33f69
fpvectorial: Replace separate sin() and cos() calls by sincos(). Issue #40475
2023-08-31 00:42:24 +02:00
wp_xyz
3b062e3689
aggpas: Use sincos() rather than separate sin() and cos(). Issue #40474 .
2023-08-30 23:53:18 +02:00
Bart
7d4a36a290
LCL: TOpenDialog: set ofExtensionDifferent if (DefaultExt <> '') and (Extension <> DefExt) for all WS.
...
Our docs about ofExtensionDifferent wrongfully states: "Allows a file name with an extension which does not match the filters or default extension in a file dialog."
This is not how Delphi defines it, and also not how it's implemented in pre-Vista dialogs (using OPENFILE structure, the OS sets the corresponding flag).
(Since there have been no bugreports about this, it's doubtfull anybody cares, but nevertheless...)
2023-08-30 23:23:17 +02:00
Bart
33484eab0b
LCL: Start implemention TOpenOptionsEx: widget set specific options for TOpen/SaveDialog that do not fit into TOpenOptions.
2023-08-30 23:01:50 +02:00
mattias
1fcb84da43
IDE: fixed save project as, not applying option suggest lowercase for default name
2023-08-30 11:35:29 +02:00
Maxim Ganetsky
e2afe4932c
IDE: fixed the double click behavior for non-query tree nodes on the help selector dialog, patch by Don Siders with some cleanups, issue #40472
2023-08-30 02:05:20 +03:00
Željan Rikalo
e27bb2eef2
Qt5: use QTimer::singleShot() with QObject context from Qt 5.9.0
2023-08-29 23:42:38 +02:00
Željan Rikalo
e73c702be2
Qt5,Qt6: fix possible wrong result of TQtWidgetSet.GetTextExtentPoint().
2023-08-29 23:41:13 +02:00
wp_xyz
6fda7c4f11
TAChart: Another 3d display issue of TPieSeries.
2023-08-29 19:50:42 +02:00
wp_xyz
ac7dc35162
TAChart: Add rounding-error-tolerant comparison functions to TAMath.
2023-08-29 18:00:27 +02:00
wp_xyz
febc06ca63
TAChart: Fix painting error in 3d-pie series ( https://forum.lazarus.freepascal.org/index.php/topic,64437.msg489868.html )
2023-08-29 17:39:29 +02:00
Željan Rikalo
e554d21707
Qt5: cleanup of TQtWidgetSet.GetTextMetrics().
2023-08-29 15:36:22 +02:00
Željan Rikalo
88afd66312
Qt5,Qt6: significant improvenment of TQtWidgetSet.GetTextExtentExPoint(), also corrected Size.cx in some cases. Returned results are now equal to win32 on windows, but also gtk2 on linux.
2023-08-29 15:11:15 +02:00
Željan Rikalo
269b3d0007
Qt5: fixed Qt documentation inconsistency about QTimer::singleShot() overload.
2023-08-28 18:05:01 +02:00
Maxim Ganetsky
614f1a392e
Merge branch 'gtk2devicecontext-doublefree-refcount-fix' into 'main'
...
LCL-GTK2: Fix double free due to wrong refcount during SaveDC/RestoreDC
See merge request freepascal.org/lazarus/lazarus!231
2023-08-28 15:42:06 +00:00
Bad Sector
5ecce8dc19
LCL-GTK2: Fix double free due to wrong refcount during SaveDC/RestoreDC
...
CopyDataFrom copies the FPixmap field directly without updating
reference counts for the objects, which in some cases ends up attempting
to unref (in the TGtkDeviceContext destructor) an already freed object
(this can happen when, e.g., SaveDC/RestoreDC is called twice with the
same DC - in the first SaveDC/RestoreDC "pass", RestoreDC deletes the
FPixmap object during the saved context destruction and in the second
"pass" the object is already destroyed and the program crashes).
This patch fixes this by adding calls to ref/unref during CopyDataFrom
for the FPixmap.
2023-08-28 15:35:44 +00:00
Bart
ca9f504a0d
LCLIntf: small optimizations to LParamExtractLoHiWord and LParamHiWord as suggested by Maxim.
2023-08-27 22:23:12 +02:00
Bart
b7d3481248
TaskDialog: TLCLTaskDialog:start implementing message TDM_UPDATE_ELEMENT_TEXT.
...
For now the new text must not bi higher than the old text, otherwise the text will be cut off.
2023-08-27 13:43:23 +02:00
Bart
39c979d5b9
TaskDialog: TLCLTaskDialog: implement message handlers for:
...
- TDM_CLICK_BUTTON
- TDM_CLICK_RADIO_BUTTON
- TDM_CLICK_VERIFICATION
- TDM_ENABLE_BUTTON
- TDM_ENABLE_RADIO_BUTTON
2023-08-27 12:43:38 +02:00
Željan Rikalo
36a99bdd26
Qt6: reduced string conversions.
2023-08-27 11:30:15 +02:00
Željan Rikalo
c630749f27
Qt6: reduced num of string conversions, cleanup
2023-08-27 11:29:15 +02:00
Bart
c70e6b3297
LCLIntf: add helper functions to extract Lo and Hi words of LPARAM type.
2023-08-27 10:26:24 +02:00
rich2014
935e7edaff
Merge branch 'lcl/cocoa/leak'
2023-08-27 01:20:57 +08:00
Bart
42bcacac19
TTaskDialog: fix compilation on non-Windows 64-bit targets (lParamlo and lParamhi not defined there).
2023-08-26 18:58:49 +02:00
rich2014
762c5a45f0
Cocoa: set Window Level to normal in DestroyHandle
...
avoid still appearing on the screen before the top window is actually destroyed
2023-08-27 00:01:49 +08:00
rich2014
b65ca17223
Cocoa: MainPool is divided into two stages, covering the whole cycle, fix resources leak
2023-08-26 23:56:18 +08:00
rich2014
7f00662152
Cocoa: BeginMessageProcess/EndMessageProcess implemented, fix resources leak
2023-08-26 23:55:51 +08:00
rich2014
2d1027253f
LCL: WidgetSet.BeginMessageProcess/EndMessageProcess added
2023-08-26 23:48:04 +08:00
Bart
5aab1a7b18
TTaskDialog: Start implement TTaskDialog.ProgressBar for emulated dialog: Range, Position and Style.
2023-08-26 13:20:42 +02:00
Željan Rikalo
12e313d41b
Qt5: Fixed compiling qt56.pas with -Sy option.
2023-08-26 10:35:06 +02:00
dsiders
6c177bc5b2
Docs: LCL/forms. Modifies content in the TApplication.GetControlAtPos topic.
2023-08-26 02:44:42 +01:00
Maxim Ganetsky
895c80c4ea
LCL: optimized TApplication.GetControlAtMouse (no functional changes), patch by Rika, issue #40465
2023-08-26 02:50:48 +03:00
Željan Rikalo
f27a50f74e
Qt5: improve string conversions by removing unneeded GetUtf8Str internal function.
2023-08-25 19:49:26 +02:00
Bart
a397741a99
TTaskDialog: Start implementing TTaskDialog.ProgressBar for emulated dialog.
2023-08-25 19:12:26 +02:00
Bart
f8ee1f55bb
TTaskDialog: remove commented out code.
2023-08-25 18:49:11 +02:00
Bart
9e2aabba9d
TTaskDialog: TTaskDialog.ProgressBar:
...
- FMin and FMax must be in range 0.High(Word).
- Adjust FPosition when setting range.
- Define const for default min/max instead of using magic numbers.
- Simplify SetMin/SetMax.
2023-08-25 18:47:43 +02:00
Željan Rikalo
d06d98e830
Gtk3: fixed TGtk3WidgetSet.GetWindowRect() bounds, patch by Anton Kavalenka.Part of issue #40461
2023-08-25 17:21:44 +02:00