Commit graph

1154 commits

Author SHA1 Message Date
Benoît Minisini
2eeae0aea6 Make window activation specific to the GUI platform, in the hope of finding a workaround to the fact that window activation request is impossible in Wayland.
[GB.QT5]
* BUG: Make window activation specific to the GUI platform, in the hope of finding a workaround to the fact that window activation request is impossible in Wayland.
2022-12-09 18:16:01 +01:00
Benoît Minisini
cff3487f96 WebView: 'Language' is a new property that allows to define the HTTP 'Accept-Language' headers. By default the current language is used.
[GB.GTK3.WEBVIEW]
* NEW: WebView: 'Language' is a new property that allows to define the HTTP 'Accept-Language' headers. By default the current language is used.

[GB.QT4.WEBVIEW]
* NEW: WebView: Add the 'Language' property, but it has no effect on Qt4.

[GB.QT5.WEBVIEW]
* NEW: WebView: 'Language' is a new property that allows to define the HTTP 'Accept-Language' headers. By default the current language is used.
2022-10-18 22:43:37 +02:00
Benoît Minisini
a08d60a2b1 Ignore spurious duplicated mouse move events.
[GB.QT4]
* BUG: Ignore spurious duplicated mouse move events.

[GB.QT5]
* BUG: Ignore spurious duplicated mouse move events.
2022-10-10 01:01:17 +02:00
Benoît Minisini
6a793ddeb7 Replace my old depracted gmail mail by the new one.
[CONFIGURATION]
* NEW: Replace my old depracted gmail mail by the new one.
2022-09-12 15:13:13 +02:00
Benoît Minisini
b042023228 Fix some default control sizes.
[GB.GTK]
* NEW: Fix some default control sizes.

[GB.GTK3]
* NEW: Fix some default control sizes.

[GB.QT4]
* NEW: Fix some default control sizes.

[GB.QT5]
* NEW: Fix some default control sizes.
2022-09-08 02:30:57 +02:00
Benoît Minisini
c378523342 Fix some use of deprecated functions.
[GB.QT5]
* BUG: Fix some use of deprecated functions.
2022-09-03 14:24:35 +02:00
Benoît Minisini
415de7b257 Update configuration files to autoconf 2.71.
[CONFIGURATION]
* NEW: Update configuration files to autoconf 2.71.
2022-09-03 13:24:51 +02:00
Benoît Minisini
7386fe5a2c Align.Make() is a new method that build an alignment constant from its horizontal and vertical parts.
[GB.GTK]
* NEW: Align.Make() is a new method that build an alignment constant from its horizontal and vertical parts.

[GB.GTK3]
* NEW: Align.Make() is a new method that build an alignment constant from its horizontal and vertical parts.

[GB.QT4]
* NEW: Align.Make() is a new method that build an alignment constant from its horizontal and vertical parts.

[GB.QT5]
* NEW: Align.Make() is a new method that build an alignment constant from its horizontal and vertical parts.
2022-08-25 23:57:40 +02:00
Benoît Minisini
02a593dc23 DnD now takes the proxy control into account.
[GB.QT4]
* BUG: Setting the Drop property now acts on the proxy, and the DnD events are handled by the proxy first.

[GB.QT5]
* BUG: Setting the Drop property now acts on the proxy, and the DnD events are handled by the proxy first.
2022-08-06 17:40:17 +02:00
Benoît Minisini
e65aed8ba9 Correctly send wheel events to widgets that handle them when the associated control is a proxy.
[GB.QT4]
* BUG: Correctly send wheel events to widgets that handle them when the associated control is a proxy.

[GB.QT5]
* BUG: Correctly send wheel events to widgets that handle them when the associated control is a proxy.
2022-08-02 03:36:49 +02:00
Benoît Minisini
911ba060e7 Menu.Parent is a new property that returns the parent menu of a menu, or NULL if the menu is a top-level one.
[GB.GTK]
* NEW: Menu.Parent is a new property that returns the parent menu of a menu, or NULL if the menu is a top-level one.

[GB.GTK3]
* NEW: Menu.Parent is a new property that returns the parent menu of a menu, or NULL if the menu is a top-level one.

[GB.QT4]
* NEW: Menu.Parent is a new property that returns the parent menu of a menu, or NULL if the menu is a top-level one.

[GB.QT5]
* NEW: Menu.Parent is a new property that returns the parent menu of a menu, or NULL if the menu is a top-level one.
2022-07-30 00:59:05 +02:00
Benoît Minisini
72d23a24f2 WebView: GetHtml() is a new method that retrieve the HTML contents of the view.
[GB.GTK3.WEBVIEW]
* NEW: WebView: GetHtml() is a new method that retrieve the HTML contents of the view.

[GB.QT4.WEBVIEW]
* NEW: WebView: GetHtml() is a new method that retrieve the HTML contents of the view.

[GB.QT5.WEBVIEW]
* NEW: WebView: GetHtml() is a new method that retrieve the HTML contents of the view.
2022-07-23 15:40:37 +02:00
Benoît Minisini
077c798f89 Drag & Drop: Eat the DragMove event as soon as the Drop event has an event handler.
[GB.QT4]
* BUG: Drag & Drop: Eat the DragMove event as soon as the Drop event has an event handler.

[GB.QT5]
* BUG: Drag & Drop: Eat the DragMove event as soon as the Drop event has an event handler.
2022-07-23 11:26:31 +02:00
Benoît Minisini
83f357232f Merge branch 'TextEdit.InsertRichText' into 'master'
Update CTextEdit.cpp, new InsertRichText() method

See merge request gambas/gambas!266
2022-07-05 21:58:59 +00:00
Benoît Minisini
46dbcdc964 Try again to make 'gb.qt4.webview' compile.
[GB.QT4.WEBVIEW]
* BUG: Try again to make 'gb.qt4.webview' compile.
2022-06-19 00:42:56 +02:00
Benoît Minisini
22b5c6334f Fix 'gb.qt4.webview' compilation.
[GB.QT4.WEBVIEW]
* BUG: Fix 'gb.qt4.webview' compilation.
2022-06-19 00:24:28 +02:00
Benoît Minisini
2acba6caf9 WebView.Cookies.Clear() is a new method that removes all cookies.
[GB.GTK3.WEBVIEW]
* NEW: WebView.Cookies.Clear() is a new method that removes all cookies.

[GB.QT4.WEBVIEW]
* NEW: WebView.Cookies.Clear() is a new method that removes all cookies.

[GB.QT5.WEBVIEW]
* NEW: WebView.Cookies.Clear() is a new method that removes all cookies.
2022-06-18 23:47:15 +02:00
Bruce Steers
d389ee6a2b Update CTextEdit.cpp, new InsertRichText() method
[GB.QT4]
* NEW: InsertRichText() method , a more obvious way to set TextEdit.Selection.RichText
2022-06-12 09:06:52 +00:00
Benoît Minisini
cf1679faa6 Container are now still arranged when they are hidden because of a null size.
[GB.GTK]
* BUG: Container are now still arranged when they are hidden because of a null size.

[GB.GTK3]
* BUG: Container are now still arranged when they are hidden because of a null size.
2022-05-28 23:41:23 +02:00
Benoît Minisini
90634d9cb5 The parent window of a modal window is now always the current active window.
[GB.GTK]
* BUG: The parent window of a modal window is now always the current active window.

[GB.GTK3]
* BUG: The parent window of a modal window is now always the current active window.

[GB.QT4]
* BUG: The parent window of a modal window is now always the current active window.

[GB.QT5]
* BUG: The parent window of a modal window is now always the current active window.
2022-05-15 20:06:26 +02:00
Benoît Minisini
3eb379c447 Fix 'gb.qt4' compilation.
[GB.QT4]
* BUG: Fix 'gb.qt4' compilation.
2022-05-02 08:14:54 +02:00
Benoît Minisini
cd6d80816f Do not use the deprecated printer functions anymore. Use the 'explicit' keyword in all C++ constructors.
[GB.QT4]
* NEW: Use the 'explicit' keyword in all C++ constructors.

[GB.QT5]
* NEW: Use the 'explicit' keyword in all C++ constructors.
* BUG: Do not use the deprecated printer functions anymore.
2022-05-02 00:55:35 +02:00
Benoît Minisini
38aea6b3d5 * The new proxy of a control is now correctly unlinked if it was already the proxy of another control.
[GB.GTK]
* BUG: The new proxy of a control is now correctly unlinked if it was already the proxy of another control.

[GB.GTK3]
* BUG: The new proxy of a control is now correctly unlinked if it was already the proxy of another control.

[GB.QT4]
* BUG: The new proxy of a control is now correctly unlinked if it was already the proxy of another control.

[GB.QT5]
* BUG: The new proxy of a control is now correctly unlinked if it was already the proxy of another control.
2022-04-28 23:48:30 +02:00
gambas
449ec02f61 Ensure that the copy of a Font is internally completely detached from its source.
[GB.QT4]
* BUG: Ensure that the copy of a Font is internally completely detached from its source.

[GB.QT5]
* BUG: Ensure that the copy of a Font is internally completely detached from its source.
2022-04-13 09:59:01 +02:00
gambas
97d862a2d0 Allow calling 'WAIT' alone during a keyboard event handler.
[GB.QT4]
* BUG: Allow calling 'WAIT' alone during a keyboard event handler.

[GB.QT5]
* BUG: Allow calling 'WAIT' alone during a keyboard event handler.
2022-04-12 19:58:15 +02:00
gambas
41ee2c8f9c Remove now useless ComboBox source code.
[GB.GTK]
* NEW: Remove now useless ComboBox source code.

[GB.GTK3]
* NEW: Remove now useless ComboBox source code.

[GB.QT4]
* NEW: Remove now useless ComboBox source code.

[GB.QT5]
* NEW: Remove now useless ComboBox source code.
2022-04-12 13:32:10 +02:00
gambas
4b6c6e2d0f Remove the native ComboBox.
[GB.GTK]
* NEW: UserControl._Focus is a new property that defines if a UserControl can take focus.
* BUG: UserControl_Draw() event handler is called before drawing the control children.
* NEW: Remove the native ComboBox.

[GB.GTK3]
* NEW: UserControl._Focus is a new property that defines if a UserControl can take focus.
* BUG: UserControl_Draw() event handler is called before drawing the control children.
* NEW: Remove the native ComboBox.

[GB.QT4]
* NEW: UserControl._Focus is a new property that defines if a UserControl can take focus.
* NEW: Style methods draw focus and tab focus.
* NEW: Remove the native ComboBox.

[GB.QT5]
* NEW: UserControl._Focus is a new property that defines if a UserControl can take focus.
* NEW: Style methods draw focus and tab focus.
* NEW: Remove the native ComboBox.
2022-04-12 13:06:38 +02:00
gambas
2742b48afa Support for "Wait 0" syntax. Fix support of "Wait" alone syntax in GTK+ components.
[GB.GTK]
* NEW: Support for "Wait 0" syntax.
* BUG: Fix support of "Wait" alone syntax.

[GB.GTK3]
* NEW: Support for "Wait 0" syntax.
* BUG: Fix support of "Wait" alone syntax.

[GB.SDL2]
* NEW: Support for "Wait 0" syntax.

[GB.QT4]
* NEW: Support for "Wait 0" syntax.

[GB.QT5]
* NEW: Support for "Wait 0" syntax.
2022-04-09 19:11:56 +02:00
gambas
830fba47e8 Still fix weirdness of focus representation in Qt5.
[GB.QT4]
* BUG: Still fix weirdness of focus representation in Qt5.

[GB.QT5]
* BUG: Still fix weirdness of focus representation in Qt5.
2022-04-07 17:14:15 +02:00
gambas
44159837bb Set focus reason to 'TabFocus' only for buttons, otherwise they are not highlighted. Other widgets seem to be fine.
[GB.QT4]
* BUG: Set focus reason to 'TabFocus' only for buttons, otherwise they are not highlighted. Other widgets seem to be fine.

[GB.QT5]
* BUG: Set focus reason to 'TabFocus' only for buttons, otherwise they are not highlighted. Other widgets seem to be fine.
2022-04-07 11:59:11 +02:00
gambas
71615e29d8 Specify a focus reason when setting the focus. Remove the workaround in Paint.Font.
[GB.QT4]
* BUG: Specify a focus reason when setting the focus, according to the current event, otherwise focus may not be set.
* BUG: Remove the workaround in Paint.Font.

[GB.QT5]
* BUG: Specify a focus reason when setting the focus, according to the current event, otherwise focus may not be set.
* BUG: Remove the workaround in Paint.Font.
2022-04-07 00:56:59 +02:00
Helmut Grohne
cc50a31fbd Use the host architecture pkg-config
gambas3 fails to cross build from source, because it hard codes the
build architecture pkg-config in various places and thus fails finding
required components that are only installed for the host architecture.

Employ PKG_PROG_PKG_CONFIG to discover the host architecture pkg-config
and let the build proceed quite a bit further.

[GB.NCURSES]
* Use the host architecture pkg-config

[GB.PDF]
* Use the host architecture pkg-config

[GB.QT4]
* Use the host architecture pkg-config

[GB.QT5]
* Use the host architecture pkg-config
2022-03-31 22:40:31 +02:00
gambas
d7b5486d85 Image.Stretch() now takes a third optional argument to stretch without antialiasing.
[GB.GTK]
* NEW: Image.Stretch() now takes a third optional argument to stretch without antialiasing.

[GB.GTK3]
* NEW: Image.Stretch() now takes a third optional argument to stretch without antialiasing.

[GB.QT4]
* NEW: Image.Stretch() now takes a third optional argument to stretch without antialiasing.

[GB.QT5]
* NEW: Image.Stretch() now takes a third optional argument to stretch without antialiasing.
2022-02-25 20:30:55 +01:00
gambas
ec051a231e Image.Rotate() is now antialiased.
[GB.GTK]
* BUG: Image.Rotate() is now antialiased.

[GB.GTK3]
* BUG: Image.Rotate() is now antialiased.

[GB.QT4]
* BUG: Image.Rotate() is now antialiased.

[GB.QT5]
* BUG: Image.Rotate() is now antialiased.
2022-02-22 02:44:55 +01:00
gambas
114d825ede Text drawing alignment is now based on text direction.
[GB.GTK]
* BUG: Text drawing alignment is now based on text direction.

[GB.GTK3]
* BUG: Text drawing alignment is now based on text direction.

[GB.QT4]
* BUG: Text drawing alignment is now based on text direction.

[GB.QT5]
* BUG: Text drawing alignment is now based on text direction.
2022-02-18 00:08:05 +01:00
gambas
b9b2e50ba5 Force the window to move to its last position after the Border property has changed.
[GB.QT5]
* BUG: Force the window to move to its last position after the Border property has changed.
2022-02-16 15:11:50 +01:00
gambas
997a558714 Do not use QWidget::setWindowFlag(), it does not exist on older version of Qt5.
[GB.QT5]
* BUG: Do not use QWidget::setWindowFlag(), it does not exist on older version of Qt5.
2022-02-16 08:12:41 +01:00
gambas
72585bb3c6 Keep the window visibility state when setting its Border property.
[GB.QT5]
* BUG: Keep the window visibility state when setting its Border property.
2022-02-16 01:05:50 +01:00
gambas
d6c8ebaf0f 'Window.Border' now uses the Qt5 window flags to switch the border.
[GB.QT5]
* NEW: 'Window.Border' now uses the Qt5 window flags to switch the border.
2022-02-16 01:04:12 +01:00
gambas
b484884c9e The CheckBox and RadioButton Invert property works as expected again.
[GB.QT4]
* BUG: The CheckBox and RadioButton Invert property works as expected again.

[GB.QT5]
* BUG: The CheckBox and RadioButton Invert property works as expected again.
2022-02-13 21:04:24 +01:00
gambas
4f9e985b3a Paint class now should correctly take into account text direction.
[GB.QT4]
* NEW: Paint class now should correctly take into account text direction.

[GB.QT5]
* NEW: Paint class now should correctly take into account text direction.
* BUG: Fix a deprecation warning.
2022-02-05 00:19:43 +01:00
gambas
742244fe34 Window: Do not raise the Hide event twice.
[GB.QT4]
* BUG: Window: Do not raise the Hide event twice.

[GB.QT5]
* BUG: Window: Do not raise the Hide event twice.
2022-01-28 23:49:53 +01:00
gambas
7223f46933 DrawingArea: Replace some 'bool' by one-bit integers in widget implementation.
[GB.QT4]
* OPT: DrawingArea: Replace some 'bool' by one-bit integers in widget implementation.

[GB.QT5]
* OPT: DrawingArea: Replace some 'bool' by one-bit integers in widget implementation.
2022-01-27 01:54:10 +01:00
gambas
cc7b600dcb Fix recent changes on focus management.
[GB.QT4]
* BUG: Fix recent changes on focus management.

[GB.QT5]
* BUG: Fix recent changes on focus management.
2022-01-23 21:06:47 +01:00
gambas
6fa9fa4286 Make all GUI components behave the same when dealing with focus and modal or popup windows.
[GB.GTK]
* BUG: Make all GUI components behave the same when dealing with focus and modal or popup windows.

[GB.GTK3]
* BUG: Make all GUI components behave the same when dealing with focus and modal or popup windows.

[GB.QT4]
* BUG: Make all GUI components behave the same when dealing with focus and modal or popup windows.

[GB.QT5]
* BUG: Make all GUI components behave the same when dealing with focus and modal or popup windows.
2022-01-22 22:38:40 +01:00
gambas
13df084748 Text direction can now be specified at control level.
[GB.GTK]
* NEW: Control.Direction is a new property that allows to specify the text direction of the control.
* NEW: Control.RightToLeft is a new property that returns if a control is right-to-left oriented.

[GB.GTK3]
* NEW: Control.Direction is a new property that allows to specify the text direction of the control.
* NEW: Control.RightToLeft is a new property that returns if a control is right-to-left oriented.

[GB.QT4]
* NEW: Control.Direction is a new property that allows to specify the text direction of the control.
* NEW: Control.RightToLeft is a new property that returns if a control is right-to-left oriented.

[GB.QT5]
* NEW: Control.Direction is a new property that allows to specify the text direction of the control.
* NEW: Control.RightToLeft is a new property that returns if a control is right-to-left oriented.
2022-01-22 16:27:17 +01:00
gambas
0b3d48b698 Check if the event loop must be stopped each time a timer is disabled.
[GB.GTK]
* BUG: Check if the event loop must be stopped each time a timer is disabled.

[GB.GTK3]
* BUG: Check if the event loop must be stopped each time a timer is disabled.

[GB.QT4]
* BUG: Check if the event loop must be stopped each time a timer is disabled.

[GB.QT5]
* BUG: Check if the event loop must be stopped each time a timer is disabled.
2022-01-14 19:17:09 +01:00
gambas
4ba0b9ad3c Don't quit if there is still one active timer.
[GB.GTK]
* NEW: Don't quit if there is still one active timer.

[GB.GTK3]
* NEW: Don't quit if there is still one active timer.

[GB.QT4]
* NEW: Don't quit if there is still one active timer.

[GB.QT5]
* NEW: Don't quit if there is still one active timer.
2022-01-14 12:34:40 +01:00
gambas
52c3a45680 Picture.Copy() keeps alpha component as expected.
[GB.QT4]
* BUG: Picture.Copy() keeps alpha component as expected.

[GB.QT5]
* BUG: Picture.Copy() keeps alpha component as expected.
2022-01-06 14:50:26 +01:00
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