Commit graph

1173 commits

Author SHA1 Message Date
Benoît Minisini
c624e3f95f Resizing a window by code correctly raises the Resize event again.
[GB.QT4]
* BUG: Resizing a window by code correctly raises the Resize event again.

[GB.QT5]
* BUG: Resizing a window by code correctly raises the Resize event again.
2023-08-28 13:39:34 +02:00
Benoît Minisini
69f7b31d67 Fix deprecated declaration.
[GB.QT4.WEBKIT]
* BUG: Fix deprecated declaration.

[GB.QT5.WEBKIT]
* BUG: Fix deprecated declaration.
2023-08-22 23:19:55 +02:00
Benoît Minisini
f563dd0557 Style: Add 'Default' constant. It tells the Style routine to use the current painted control (if it exists) as a context.
[GB.DRAW]
* NEW: Support for 'Style.Default' constant.

[GB.GTK]
* NEW: Style: Add 'Default' constant. It tells the Style routine to use the current painted control (if it exists) as a context.

[GB.GTK3]
* NEW: Style: Add 'Default' constant. It tells the Style routine to use the current painted control (if it exists) as a context.
* BUG: Style: Painting the backgroud correctly takes the background color into account, unless for active state (i.e. pressed buttons).

[GB.QT4]
* NEW: Style: Add 'Default' constant. It tells the Style routine to use the current painted control (if it exists) as a context.
* NEW: 'Style.StateOf()' always adds the 'Style.Default' constant.

[GB.QT5]
* NEW: Style: Add 'Default' constant. It tells the Style routine to use the current painted control (if it exists) as a context.
* NEW: 'Style.StateOf()' always adds the 'Style.Default' constant.
2023-07-29 15:43:17 +02:00
Benoît Minisini
cc74743dab Correctly enable shortcuts before opening a popup menu, and disable them after closing it.
[GB.GTK]
* BUG: Correctly enable shortcuts before opening a popup menu, and disable them after closing it.

[GB.GTK3]
* BUG: Correctly enable shortcuts before opening a popup menu, and disable them after closing it.

[GB.QT4]
* BUG: Correctly enable shortcuts before opening a popup menu, and disable them after closing it.

[GB.QT5]
* BUG: Correctly enable shortcuts before opening a popup menu, and disable them after closing it.
2023-06-14 00:51:31 +02:00
Benoît Minisini
8b6affd289 Remove the undocumented 'Container.Dirty' property.
[GB.GTK]
* BUG: Remove the undocumented 'Container.Dirty' property.

[GB.GTK3]
* BUG: Remove the undocumented 'Container.Dirty' property.

[GB.QT4]
* BUG: Remove the undocumented 'Container.Dirty' property.

[GB.QT5]
* BUG: Remove the undocumented 'Container.Dirty' property.
2023-03-30 23:46:58 +02:00
Benoît Minisini
f0fc89f5fa The 'Drop' property of editing controls (TextBox, TextArea...) is now TRUE by default.
[GB.GTK]
* NEW: The 'Drop' property of editing controls (TextBox, TextArea...) is now TRUE by default.

[GB.GTK3]
* NEW: The 'Drop' property of editing controls (TextBox, TextArea...) is now TRUE by default.

[GB.QT4]
* NEW: The 'Drop' property of editing controls (TextBox, TextArea...) is now TRUE by default.

[GB.QT5]
* NEW: The 'Drop' property of editing controls (TextBox, TextArea...) is now TRUE by default.
2023-03-19 20:42:01 +01:00
Benoît Minisini
798b936775 Do not mix arrangement flags and user control flag in the Container implementation.
[GB.GTK]
* BUG: Do not mix arrangement flags and user control flag in the Container implementation.

[GB.GTK3]
* BUG: Do not mix arrangement flags and user control flag in the Container implementation.

[GB.QT4]
* BUG: Do not mix arrangement flags and user control flag in the Container implementation.

[GB.QT5]
* BUG: Do not mix arrangement flags and user control flag in the Container implementation.
2023-03-17 21:12:44 +01:00
Benoît Minisini
d42b432df0 UserContainer now can declare the same special event handlers as UserControl.
[GB.GTK]
* NEW: UserControl: Special event handlers can be declared indepently. Declaring 'UserControl_Draw' is not required anymore.
* NEW: UserContainer now can declare the same special event handlers as UserControl.

[GB.GTK3]
* NEW: UserControl: Special event handlers can be declared indepently. Declaring 'UserControl_Draw' is not required anymore.
* NEW: UserContainer now can declare the same special event handlers as UserControl.

[GB.QT4]
* NEW: UserControl: Special event handlers can be declared indepently. Declaring 'UserControl_Draw' is not required anymore.
* NEW: UserContainer now can declare the same special event handlers as UserControl.

[GB.QT5]
* NEW: UserControl: Special event handlers can be declared indepently. Declaring 'UserControl_Draw' is not required anymore.
* NEW: UserContainer now can declare the same special event handlers as UserControl.
2023-03-17 15:57:48 +01:00
Benoît Minisini
044ab1cc14 Check that we are a UserControl when calling its special event handlers, because the MyContainer class is also used by the Form container.
[GB.QT4]
* BUG: Check that we are a UserControl when calling its special event handlers, because the MyContainer class is also used by the Form container.

[GB.QT5]
* BUG: Check that we are a UserControl when calling its special event handlers, because the MyContainer class is also used by the Form container.
2023-03-10 01:59:49 +01:00
Benoît Minisini
f055efc799 Menu: Setting the 'Picture' property of a top-level menu has no effect anymore.
[GB.QT4]
* BUG: Menu: Setting the 'Picture' property of a top-level menu has no effect anymore.

[GB.QT5]
* BUG: Menu: Setting the 'Picture' property of a top-level menu has no effect anymore.
2023-03-04 17:24:06 +01:00
Benoît Minisini
f8eac053f4 Popup windows are now correctly parented, so that imbricated popups do not close all at once on mouse button press.
[GB.QT4]
* BUG: Popup windows are now correctly parented, so that imbricated popups do not close all at once on mouse button press.

[GB.QT5]
* BUG: Popup windows are now correctly parented, so that imbricated popups do not close all at once on mouse button press.
2023-02-10 18:23:48 +01:00
Benoît Minisini
8effd60c5b Window: 'Geometry' is a new property that returns the last geometry of the window in normal state.
[GB.GTK]
* NEW: Window: 'Geometry' is a new property that returns the last geometry of the window in normal state.

[GB.GTK3]
* NEW: Window: 'Geometry' is a new property that returns the last geometry of the window in normal state.

[GB.QT4]
* NEW: Window: 'Geometry' is a new property that returns the last geometry of the window in normal state.

[GB.QT5]
* NEW: Window: 'Geometry' is a new property that returns the last geometry of the window in normal state.
2023-01-21 03:50:59 +01:00
Benoît Minisini
40de952214 Starts program by assuming the clipboard has been modified.
[GB.GTK]
* BUG: Starts program by assuming the clipboard has been modified.

[GB.GTK3]
* BUG: Starts program by assuming the clipboard has been modified.

[GB.QT4]
* BUG: Starts program by assuming the clipboard has been modified.

[GB.QT5]
* BUG: Starts program by assuming the clipboard has been modified.
2023-01-12 00:57:27 +01:00
Benoît Minisini
caacdd9c2f Control.Drag() now calls Drag(), so that 'text/uri' mimetype is supported. Fix reference leak in drag & drop target management of Qt components.
[INTERPRETER]
* NEW: 'GB.Push()' now can handle Variant values.

[GB.GTK]
* NEW: Control.Drag() now calls Drag(), so that 'text/uri' mimetype is supported.

[GB.GTK3]
* NEW: Control.Drag() now calls Drag(), so that 'text/uri' mimetype is supported.

[GB.QT4]
* BUG: Fix reference leak in drag & drop target management.
* NEW: Control.Drag() now calls Drag(), so that 'text/uri' mimetype is supported.

[GB.QT5]
* BUG: Fix reference leak in drag & drop target management.
* NEW: Control.Drag() now calls Drag(), so that 'text/uri' mimetype is supported.
2023-01-09 02:45:52 +01:00
Benoît Minisini
1b6b81243f 'Painter.Font' sometimes does not work correctly for an unknown reason. Found a workaround.
[GB.QT4]
* BUG: 'Painter.Font' sometimes does not work correctly for an unknown reason. Found a workaround.

[GB.QT5]
* BUG: 'Painter.Font' sometimes does not work correctly for an unknown reason. Found a workaround.
2023-01-07 13:30:36 +01:00
Benoît Minisini
fcef1adabf Application.MiddleClickPaste is a new property that tells if middle click should paste.
[GB.GTK]
* NEW: Application.MiddleClickPaste is a new property that tells if middle click should paste.
  The global GTK+ settings is taken into account at application startup.

[GB.GTK3]
* NEW: Application.MiddleClickPaste is a new property that tells if middle click should paste.
  The global GTK+ settings is taken into account at application startup.

[GB.QT4]
* NEW: Application.MiddleClickPaste is a new property that tells if middle click should paste.

[GB.QT5]
* NEW: Application.MiddleClickPaste is a new property that tells if middle click should paste.
2022-12-27 22:15:50 +01:00
Benoît Minisini
af8f28e0e4 UserControl: Call the UserControl_Resize() public method on resize.
[GB.GTK]
* NEW: UserControl: Call the UserControl_Resize() public method on resize.

[GB.GTK3]
* NEW: UserControl: Call the UserControl_Resize() public method on resize.

[GB.QT4]
* NEW: UserControl: Call the UserControl_Resize() public method on resize.

[GB.QT5]
* NEW: UserControl: Call the UserControl_Resize() public method on resize.
2022-12-20 21:45:29 +01:00
Benoît Minisini
94af499b8d UserControl now automatically refreshes itself when its enabled state changes.
[GB.QT4]
* BUG: UserControl now automatically refreshes itself when its enabled state changes.

[GB.QT5]
* BUG: UserControl now automatically refreshes itself when its enabled state changes.
2022-12-15 02:32:32 +01:00
Benoît Minisini
529e382122 Prevent a possible infinite recursion when initializing window menu bar.
[GB.QT4]
* BUG: Prevent a possible infinite recursion when initializing window menu bar.
* BUG: Fix the use of a local variable out of scope.

[GB.QT5]
* BUG: Prevent a possible infinite recursion when initializing window menu bar.
* BUG: Fix the use of a local variable out of scope.
2022-12-10 18:08:39 +01:00
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