Commit graph

10366 commits

Author SHA1 Message Date
gambas
4616f8237a Use floating point font metrics for computing text size everywhere.
[GB.QT4]
* BUG: Use floating point font metrics for computing text size everywhere.

[GB.QT5]
* BUG: Use floating point font metrics for computing text size everywhere.
2022-01-05 19:45:32 +01:00
gambas
8332f3b8d5 Use floating point font metrics for computing text size.
[GB.QT4]
* BUG: Use floating point font metrics for computing text size.

[GB.QT5]
* BUG: Use floating point font metrics for computing text size.
2022-01-05 19:33:19 +01:00
gambas
79fbe6c0a8 Fix tab focus management.
[GB.GTK]
* BUG: Fix tab focus management.

[GB.GTK3]
* BUG: Fix tab focus management.
2022-01-05 16:07:57 +01:00
gambas
184af48c18 Fix tab focus management and NoTabFocus property.
[GB.QT4]
* BUG: Fix tab focus management and NoTabFocus property.

[GB.QT5]
* BUG: Fix tab focus management and NoTabFocus property.
2022-01-05 16:07:13 +01:00
gambas
ef59714579 Fix compilation of 'gb.qt4'.
[GB.QT4]
* BUG: Fix compilation of 'gb.qt4'.
2022-01-05 01:56:16 +01:00
gambas
c8835ae99c Label: Try to take italic fonts into account in text alignement.
[GB.GUI.BASE]
* NEW: Label: Try to take italic fonts into account in text alignement.
* BUG: Label: Workaround a Qt bug where using Paint.TextExtents() on a bitmap font makes it unable to be drawn correctly.
2022-01-05 01:23:32 +01:00
gambas
8af26cb5f3 Implement all metrics in the custom paint device used for measuring text.
[GB.QT4]
* NEW: Do not use a copy of the font object when calling 'set_painter_font()' in 'cpaint_impl.cpp'.

[GB.QT5]
* NEW: Do not use a copy of the font object when calling 'set_painter_font()' in 'cpaint_impl.cpp'.
* NEW: Implement all metrics in the custom paint device used for measuring text.
2022-01-05 01:16:40 +01:00
gambas
4be0f59eed Help browser: Try to put more accurate search results first.
[DEVELOPMENT ENVIRONMENT]
* NEW: Help browser: Try to put more accurate search results first.
2022-01-04 17:12:00 +01:00
gambas
0fccd1d5ee Setting Application.Busy now displays the busy cursor correctly again.
[GB.GTK]
* BUG: Setting Application.Busy now displays the busy cursor correctly again.

[GB.GTK3]
* BUG: Setting Application.Busy now displays the busy cursor correctly again.
2022-01-04 16:09:29 +01:00
gambas
d10aa23ffb Remove debugging message.
[GB.GTK]
* BUG: Remove debugging message.

[GB.GTK3]
* BUG: Remove debugging message.
2022-01-04 15:53:11 +01:00
gambas
06d751bb0b Do nothing when setting a control font with the same font. Finish removing dynamic event callbacks.
[GB.GTK]
* OPT: Replace all dynamic event callback functions (one by object) by unique global functions.
* BUG: Do nothing when setting a control font with the same font.

[GB.GTK3]
* OPT: Replace all dynamic event callback functions (one by object) by unique global functions.
* BUG: Do nothing when setting a control font with the same font.
2022-01-04 13:11:48 +01:00
gambas
3ac63996b1 DrawingArea: Keep the Focus property when the internal widget is recreated.
[GB.GTK]
* BUG: DrawingArea: Keep the Focus property when the internal widget is recreated.

[GB.GTK3]
* BUG: DrawingArea: Keep the Focus property when the internal widget is recreated.
2022-01-03 14:00:56 +01:00
gambas
c4490cbf14 MenuButton: Fix a possible "Invalid object" error when a MenuButton is destroyed during its Click event.
[GB.FORM]
* BUG: MenuButton: Fix a possible "Invalid object" error when a MenuButton is destroyed during its Click event.

* NEW: More icons for Gambas icon theme.
2022-01-02 17:24:35 +01:00
gambas
13f4b8a547 Make executable dialog: Do not increment the release number twice in some cases.
[DEVELOPMENT ENVIRONMENT]
* BUG: Make executable dialog: Do not increment the release number twice in some cases.
2022-01-02 16:26:37 +01:00
gambas
67d760db17 Fix a crash on focus management. Do not raise 'Activate' event when showing an embeded window to mimic Qt components behaviour.
[GB.GTK]
* BUG: Embedding a top-level window by reparenting now correctly removes it from the list of top-level windows.
* BUG: Do not raise 'Activate' event when showing an embeded window to mimic Qt components behaviour.
* BUG: Do not crash if a window has no explicit focus and no focusable child control.
* OPT: Start to replace dynamic event callback functions (one by object) by unique global functions.

[GB.GTK3]
* BUG: Embedding a top-level window by reparenting now correctly removes it from the list of top-level windows.
* BUG: Do not raise 'Activate' event when showing an embeded window to mimic Qt components behaviour.
* BUG: Do not crash if a window has no explicit focus and no focusable child control.
* OPT: Start to replace dynamic event callback functions (one by object) by unique global functions.
2022-01-01 16:21:47 +01:00
gambas
c14f65b838 Help browser: Offline help browser now goes back in history with the right mouse button or the menu key.
[DEVELOPMENT ENVIRONMENT]
* NEW: Help browser: Offline help browser now goes back in history with the right mouse button or the menu key.
2022-01-01 11:09:20 +01:00
gambas
810a619c06 Debugger: Fix breakpoint management.
[DEVELOPMENT ENVIRONMENT]
* BUG: Debugger: Removing a breakpoint is always possible.
* BUG: Debugger: Incorrect breakpoints (on commented or void lines) are removed when the debugger starts only.
2021-12-30 14:21:15 +01:00
gambas
2cbfa19117 Fix window initial focus management.
[GB.GTK3]
* BUG: Fix window initial focus management.
2021-12-30 02:15:43 +01:00
gambas
2707e0061d TextEditor: Do not clip lines whose width is larger than 32767 pixels.
[GB.FORM.EDITOR]
* BUG: TextEditor: Do not clip lines whose width is larger than 32767 pixels.
2021-12-29 18:33:44 +01:00
gambas
418486f68c Fix accelerator management workaround.
[GB.GTK]
* BUG: Fix accelerator management workaround.

[GB.GTK3]
* BUG: Fix accelerator management workaround.
2021-12-29 18:14:49 +01:00
gambas
4dd2518bb0 Version control: Really do not crash anymore when the current branch name is null.
[DEVELOPMENT ENVIRONMENT]
* BUG: Version control: Really do not crash anymore when the current branch name is null.
2021-12-23 01:07:37 +01:00
gambas
172f9da174 Update some commented debugging messages.
[GB.QT4]
* NEW: Update some commented debugging messages.

[GB.QT5]
* NEW: Update some commented debugging messages.
2021-12-22 16:14:40 +01:00
gambas
dbfa71f602 Fix proxy container management again.
[GB.GTK]
* BUG: Fix proxy container management again.

[GB.GTK3]
* BUG: Fix proxy container management again.
2021-12-22 16:13:37 +01:00
gambas
ba438ac9cc ScrollArea: Do not set the Proxy property, if setting the _Container property already did the job.
[GB.GUI.BASE]
* NEW: ScrollArea: Do not set the Proxy property, if setting the _Container property already did the job.
2021-12-21 20:54:44 +01:00
gambas
34b91db4e3 Do nothing if the Proxy property is set without actually changing its value.
[GB.QT4]
* OPT: Do nothing if the Proxy property is set without actually changing its value.

[GB.QT5]
* OPT: Do nothing if the Proxy property is set without actually changing its value.
2021-12-21 20:50:16 +01:00
gambas
faff7299a1 The internal '_Container' property of UserControl and UserContainer now behaves the same way as in Qt components.
[GB.GTK]
* BUG: The internal '_Container' property of UserControl and UserContainer now behaves the same way as in Qt components.

[GB.GTK3]
* BUG: The internal '_Container' property of UserControl and UserContainer now behaves the same way as in Qt components.
2021-12-21 20:48:03 +01:00
gambas
7c17f33560 Search dialog: The "replacing capture groups" checkbox is now indented so that its dependency on the "regular expression" checkbox is clearly visible.
[DEVELOPMENT ENVIRONMENT]
* NEW: Search dialog: The "replacing capture groups" checkbox is now indented so that its dependency on the "regular expression" checkbox is clearly visible.
2021-12-21 13:20:50 +01:00
gambas
856afbec08 Search dialog: Support for replacing capture groups in regular expressions.
[DEVELOPMENT ENVIRONMENT]
* NEW: Search dialog: Support for replacing capture groups in regular expressions.
2021-12-18 01:11:06 +01:00
gambas
56b33c1461 Search dialog: Using a non-fixed editor font does not crash anymore.
[DEVELOPMENT ENVIRONMENT]
* BUG: Search dialog: Using a non-fixed editor font does not crash anymore.
2021-12-17 13:48:00 +01:00
gambas
1238ce91fc TextEditor: Use the new hidden API that estimates the character width of a specific font.
[GB.FORM.EDITOR]
* NEW: TextEditor: Use the new hidden API that estimates the character width of a specific font.
2021-12-17 13:47:07 +01:00
gambas
56a235f257 TextHighlighter: Use the new hidden API that estimates the character width of a specific font.
[GB.EVAL.HIGHLIGHT]
* NEW: TextHighlighter: Use the new hidden API that estimates the character width of a specific font.
2021-12-17 13:46:43 +01:00
gambas
11c7d60ff4 The hidden API that estimate the character width of a specific font now returns by default an estimated value for non-fixed fonts.
[GB.GUI.BASE]
* NEW: The hidden API that estimate the character width of a specific font now returns by default an estimated value for non-fixed fonts.
2021-12-17 13:46:05 +01:00
gambas
d5514f7120 Search dialog: Center the searched text in the result text as much as possible.
[DEVELOPMENT ENVIRONMENT]
* NEW: Search dialog: Center the searched text in the result text as much as possible.
2021-12-15 16:06:29 +01:00
gambas
d7d0c2620f Search dialog: Fix and optimize drawing of text in the result table.
[DEVELOPMENT ENVIRONMENT]
* OPT: Search dialog: The text in the result table is drawn faster.
* BUG: Search dialog: The text in the result table is highlighted only for 'Gambas' code. Other highlighting do not work at the moment.
* BUG: Search dialog: Replace tabs by spaces in the result text, so that text is drawn correctly.
2021-12-15 16:00:34 +01:00
gambas
3d3f7cd4d4 TextHighlighter: Fix Paint() method, and add an optional argument that defines the position of the first character of the highlighted text to paint.
[GB.EVAL.HIGHLIGHT]
* BUG: TextHighlighter: Paint() correctly takes into account the new highlighter theme design.
* NEW: TextHighlighter: Paint() method takes an optional argument that defines the position of the first character of the highlighted text to paint.
2021-12-15 15:54:39 +01:00
gambas
1feb4d4ff1 IconView: Little optimization on a test.
[GB.GUI.BASE]
* OPT: IconView: Little optimization on a test.
2021-12-15 15:51:28 +01:00
Benoît Minisini
b0b1dbf5fe Merge branch 'bsteers4-master-patch-16644' into 'master'
See merge request gambas/gambas!252
2021-12-13 21:41:09 +00:00
Bruce Steers
b171733904 IconView: Add 'Next' and 'Previous' properties to the IconView item class, and allows Add() method to insert the new item at the beginning.
[GB.GUI.BASE]
* NEW: IconView: Add 'Next' and 'Previous' properties to the IconView item class.
* NEW: IconView: The 'Add()' method now inserts the new item at the beginning when the 'After' is explicitly specified as 'NULL'.
2021-12-13 21:41:09 +00:00
gambas
39fad5cad9 Packager: ArchLinux: packager information is now available in the generated packages.
[DEVELOPMENT ENVIRONMENT]
* BUG: Packager: ArchLinux: packager information is now available in the generated packages.
2021-12-13 21:55:10 +01:00
gambas
524724f4e3 Packager: ArchLinux: Continue fixing packaging.
[DEVELOPMENT ENVIRONMENT]
* NEW: Packager: ArchLinux: Continue fixing packaging.
2021-12-13 20:12:01 +01:00
gambas
063c5859e7 Packager: ArchLinux: Add maintainer as packager in 'PKGINFO' file.
[DEVELOPMENT ENVIRONMENT]
* NEW: Packager: ArchLinux: Add maintainer as packager in 'PKGINFO' file.
2021-12-13 00:20:42 +01:00
gambas
5de3cbd935 Debugger: The 'Remove all breakpoints' menu entry does not crash anymore.
[DEVELOPMENT ENVIRONMENT]
* BUG: Debugger: The 'Remove all breakpoints' menu entry does not crash anymore.
* BUG: Debugger: Fix breakpoint initialization at project opening.
2021-12-12 23:06:53 +01:00
gambas
9cd730b388 Merge branch 'master' of gitlab.com:gambas/gambas 2021-12-12 22:44:04 +01:00
gambas
a6efc1ae3d Clip the drawing of container children, as GTK+3 does not do that by default.
[GB.GTK3]
* BUG: Clip the drawing of container children, as GTK+3 does not do that by default.
2021-12-12 22:42:53 +01:00
Benoît Minisini
679ccaecd4 Merge branch 'bsteers4-master-patch-90416' into 'master'
IconView.class: do not return before drawing background picture if no items are added.

See merge request gambas/gambas!253
2021-12-12 17:09:30 +00:00
Bruce Steers
5187e4fcea IconView.class: do not return before drawing background picture if no items are added.
[GB.GUI.BASE]
* BUG: IconView background image is now drawn if no icons are added.
2021-12-12 16:01:58 +00:00
gambas
ab885aabd4 Hide and show all children of a container when it is mapped, to workaround GTK+3 bugs with widget stacking.
[GB.GTK3]
* BUG: Hide and show all children of a container when it is mapped, to workaround GTK+3 bugs with widget stacking.
2021-12-12 00:53:38 +01:00
gambas
93613f517a Packager: Try to fix how license is registered in ArchLinux packages.
[DEVELOPMENT ENVIRONMENT]
* NEW: Packager: Add more GPL licenses.
* BUG: Packager: Try to fix how license is registered in ArchLinux packages.
2021-12-11 12:36:42 +01:00
gambas
f19a9b7494 Packager: On ArchLinux, remove an extra space in the "maintainer" comment of the PKGBUILD file.
[DEVELOPMENT ENVIRONMENT]
* BUG: Packager: On ArchLinux, remove an extra space in the "maintainer" comment of the PKGBUILD file.
2021-12-11 12:14:32 +01:00
gambas
20dbef2e68 IconView: The 'After' argument of the 'Add()' method now works as expected.
[GB.GUI.BASE]
* BUG: IconView: The 'After' argument of the 'Add()' method now works as expected.
2021-12-11 12:01:58 +01:00