Commit Graph

2991 Commits

Author SHA1 Message Date
Juha
8583ffa716 LCL: Formatting. 2024-11-23 08:10:58 +02:00
mattias
4cb56ddc5c lcl: consistent -g -gl 2024-10-24 12:30:13 +02:00
Maxim Ganetsky
f0eb9b849d IDE, LCL: Lazarus help output refactoring by n7800, issue #40690:
1. The text has been slightly corrected and made more uniform.
2. The parameters are sorted in some logical order, starting with the more "global" ones. A long list of values for debugging is located at the end. Now all parameters are visible at once, without scrolling.
3. Indentations fixed.
4. The list of values for the --skip-checks parameter is listed in a column, similar to the values for the --debug-enable parameter. This is easier to read and does not create a very long line, which is visible in the screenshot.
5. The "LCL Interface specific options:" header is displayed only if such parameters exist.
6. Changed max line length to a more standard 80.
7. Help output has been moved in a nested function.
8. Removed unused code.
2024-01-20 05:04:42 +03:00
Bad Sector
f5718e9f06 LCL-GTK1: Fix various startup warnings and Gtk1 assertions
This fixes a bunch of warnings when Gtk1 applications start.  The fixes
are on keyboard initialization (make a previously statically sized array
dynamic as the old value wasn't long enough and disable an unnecessary
warning about filling the VK table as the user can't do anything about
it - nor we unless the whole thing is redesigned), module loading (this
is a side effect of an environment variable collision between Gtk1, Gtk2
and Gtk3 - all of these use the GTK_MODULES variable to load some
modules but since as of 2023 no distribution aside from Slackware comes
with Gtk1, all of these warnings are bogus, so this patch temporarily
cleans the environment variable before initializing Gtk and restores it
later so that child processes can still access it) and passing NULL
styles to gtk_style_copy (the previous code assumed the style retrieval
functions always return a valid object, which is not the case).
2023-11-30 23:13:16 +00:00
Bad Sector
9b8f434368 LCL-GTK1: Fix menu item drawing for menus without icons
When a menu does not have any icons set, the existing code drew
checkboxes over the menu icons.  This patch fixes that.

The previous code relied on a function that apparently became noop in
Gtk 1.2.9 but the underlying code and private field it modified were not
changed, so this fix now changes the private field directly (this change
was made in 2001 so the chances of this breaking are a bit low :-P).

It also removes the unnecessary left side padding when no menu has any
icon or is checkable so that the menu appearance matches other
(non-Lazarus made) Gtk 1.2 programs.
2023-11-30 17:25:33 +00:00
Bad Sector
f556640c6b LCL-GTK1: Fix designer context menu
This refactors the LM_CONTEXTMENU emulation in Gtk1 to also emit it for
design-mode controls so that the context menu now works in the form
designer again.
2023-09-27 23:04:43 +00:00
Bad Sector
b498fbe6d8 LCL-GTK1: Fix debug build with trunk Lazarus and FPC 2023-09-27 19:56:18 +03:00
mattias
34222c3fa8 updated makefiles 2023-09-12 16:25:55 +02:00
wp_xyz
c15b41d8ed LCL/TShape: Inherit TShape from new TCustomShape class. 2023-09-12 12:03:54 +02:00
mattias
8d92e3b67d updated makefiles 2023-08-14 20:31:20 +02:00
Martin
89aefec06a TTaskDialog: fix WS registration 2023-07-26 01:08:26 +02:00
Bart
4deab8fcb5 Revert "TTaskDialog: fix widgetset registration."
This reverts commit e8dc8eb5fc, because it broke compilation.
2023-07-26 00:54:15 +02:00
Bart
86d6abd65f TTaskDialog: revert the last 2 commits, as they break compilation. 2023-07-26 00:34:55 +02:00
Bart
a1b20c912c TTaskDialog: second attempt to fix widgetset registration. 2023-07-26 00:17:22 +02:00
Bart
e8dc8eb5fc TTaskDialog: fix widgetset registration. 2023-07-26 00:04:46 +02:00
Juha
92b11e2662 LCL-GTK: Fix the order of parameters for FillChar(). Issue #40403. 2023-07-25 11:38:32 +03:00
Bart
cfbb089e1f TaskDialog: Start refactoring TTaskDialog: layout the basic infrastructure for a TWSTaskDialog class. 2023-07-17 11:05:33 +02:00
Juha
e65a102527 Remove unit Laz_AVL_Tree, a copy of unit AVL_Tree. Not needed with FPC 3.2.x. 2023-07-07 17:39:03 +03:00
Juha
211d95da17 LCL: Use TLCLHandle instead of a redefined LCLType.THandle or TLCLIntfHandle. Deprecate them. 2023-07-03 11:17:01 +03:00
Juha
41d646613e LCL-GTK1: Fix crash from double free in supported format check. Merge request !142 by Bad Sector. 2023-03-11 12:56:09 +02:00
Juha
fed1644131 LCL-GTK1: Implement menu icon updates. Merge request !143 by Bad Sector. 2023-03-11 12:34:49 +02:00
Bad Sector
40bb744caf LCL-GTK1: Send LM_CONTEXTMENU for right clicks so that popup menus work. 2022-02-12 17:53:36 +02:00
Bad Sector
8f08573815 Fix Gtk 1.2 LCL backend.
There are still some minor glitches, but the IDE and most examples i
tried seem to work fine.  Some examples didn't work but that seemed to
be mainly a Gtk 1.2 limitation (e.g. no rotating fonts).
2022-02-10 23:54:47 +00:00
Juha
75aebbee85 LCL: Consider that MemSize can return 0 with a custom MemoryManager. Merge request !27 by Sergey Larin. 2021-10-28 11:23:36 +03:00
maxim
b8d0d9366b LCL: fixed typos related to 'occur' word
git-svn-id: trunk@65207 -
2021-06-10 22:21:45 +00:00
wp
2c9ec4c1ed LCL/ShellCtrls: Display default shell icons in TShellListView. Issue #18247.
git-svn-id: trunk@64764 -
2021-03-07 14:39:17 +00:00
wp
e431045dac LCL/ShellTreeView: Add ShellCtrls to widgetsets. Widgetset-based solution for automatic shell icons in TShellTreeView (implemented for win32 only).
git-svn-id: trunk@64747 -
2021-03-05 15:14:19 +00:00
juha
86a4cd2add LCL-GTK1: Cleanup GTK2 code.
git-svn-id: trunk@63520 -
2020-07-06 09:41:48 +00:00
ondrej
ef8d6a825e ComboBox: implement TComboBoxStyle.IsOwnerDrawn and .IsVariable and use them instead of the in [] syntax
git-svn-id: trunk@63228 -
2020-05-26 22:25:15 +00:00
wp
254e43bb4f LCL/Calendar: Remove option dsStartMonday from Calendar.DisplaySettings and replace it by Delphi-compatible Calendar.FirstDayOfWeek
git-svn-id: trunk@63220 -
2020-05-25 14:16:57 +00:00
juha
651a6436a2 Support Haiku build. Makefiles are generated from Makefile.fpc files using proper tools. Issue #36316, patch from Alfred.
git-svn-id: trunk@62890 -
2020-04-05 11:35:01 +00:00
juha
f721c3bcc5 LCL-GTK2: Simplify function Ampersands2Underscore.
git-svn-id: trunk@62466 -
2019-12-29 23:18:55 +00:00
juha
ec99bd95e2 LCL-GTK2: Move function ComparePChar to LazStringUtils as SamePChar.
git-svn-id: trunk@62464 -
2019-12-29 23:18:51 +00:00
juha
315a844105 LCL-GTK2: Use function DeleteAmpersands from unit LCLProc. Already handles a trailing &.
git-svn-id: trunk@62440 -
2019-12-23 21:01:06 +00:00
juha
b46b72fb2b LCL: Remove deprecated function FontCanUTF8. All widgetsets returned True, including GTK(2) and QT(5). Not implementing it caused bugs.
git-svn-id: trunk@62425 -
2019-12-20 17:45:44 +00:00
mattias
6d813c4d01 lcl: gtk1: fixed compile
git-svn-id: trunk@60773 -
2019-03-26 13:11:34 +00:00
ondrej
90f22ba7fd LCL: High-DPI ImageList: LCL runtime and win32
git-svn-id: branches/HiDPIImageList@57039 -
2018-01-10 12:46:42 +00:00
juha
6810c626df LazUtils: Change "Character" to "Codepoint" in LazUTF8 function names to be more accurate and to avoid confusion.
git-svn-id: trunk@56692 -
2017-12-11 19:44:22 +00:00
juha
f79dd3199d LCL: Support horizontal mouse wheel messages. Issue #32753, patch from AlexeyT.
git-svn-id: trunk@56642 -
2017-12-05 21:30:57 +00:00
ondrej
0cd8ed04e5 LCL: combobox, listbox: fix drawing of customdrawn items. Change TOwnerDrawStateType.odPainted to odBackgroundPainted
git-svn-id: trunk@55304 -
2017-06-10 11:43:19 +00:00
juha
1184822164 LCL: Use a helper function for testing fontname 'default'. Issue #31940, patch from AlexeyT.
git-svn-id: trunk@55188 -
2017-06-03 18:56:34 +00:00
juha
e800a738ad Copy AVL_Tree from FPC trunk and replace classes in AvgLvlTree and in CodetoolsStructs with it.
The unit in FPC packages will be used directly later.

git-svn-id: trunk@54524 -
2017-04-05 08:34:48 +00:00
michl
076beac6c5 LCL: TCustomTabControl: Remove doubled, since revision 33537 #fa02b703f1 deprecated, types.
git-svn-id: trunk@54004 -
2017-01-25 21:13:49 +00:00
michl
6a9b9d4d9e LCL: TCustomTabControl: Win32: Allow setting tab width and tab height. Issue #31109, patch from AlexeyT.
git-svn-id: trunk@54002 -
2017-01-25 17:42:06 +00:00
juha
a714a91311 LCL: Move TLCLPlatform and related non-GUI code to a new unit to be used without GUI.
Organize uses-sections by package so that dependencies can be easier seen.

git-svn-id: trunk@53711 -
2016-12-17 22:58:08 +00:00
mattias
1acb6ad60d lcl: added cocoa/agl.pp
git-svn-id: trunk@53317 -
2016-11-08 15:36:00 +00:00
mattias
52b89347f6 lcl: updated makefiles
git-svn-id: trunk@52002 -
2016-03-20 13:05:51 +00:00
ondrej
f7158c1393 lcl: disable windows on system dialog execute
win32: fix parent window handle for system dialogs
Issue #28631

git-svn-id: trunk@51798 -
2016-03-02 05:45:52 +00:00
ondrej
fd3ff3b9c5 lcl: set TMenu ownerdraw properties and events as restricted.
git-svn-id: trunk@51647 -
2016-02-17 11:29:11 +00:00
ondrej
81733b2e74 lcl: rewrite PopupMode/PopupParent
- unify code for PopupMode/PopupParent in one function TCustomForm.GetRealPopupParent for all WS.
- change TWSCustomFormClass.SetPopupParent to TWSCustomFormClass.SetRealPopupParent without PopupMode parameter.
- Fix TPopupMode documentation.
Issue #29247

git-svn-id: trunk@51032 -
2015-12-25 15:37:10 +00:00