Commit graph

1144 commits

Author SHA1 Message Date
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
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
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
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
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
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
9789a7bc93 The mouse cursor type constants are now defined in the Cursor class. Add more mouse cursor constants.
[GB.GTK]
* NEW: The mouse cursor type constants are now defined in the Cursor class.
* NEW: Add more mouse cursor constants.

[GB.GTK3]
* NEW: The mouse cursor type constants are now defined in the Cursor class.
* NEW: Add more mouse cursor constants.

[GB.QT4]
* NEW: The mouse cursor type constants are now defined in the Cursor class.
* NEW: Add more mouse cursor constants.

[GB.QT5]
* NEW: The mouse cursor type constants are now defined in the Cursor class.
* NEW: Add more mouse cursor constants.
2021-10-29 16:32:38 +02:00
gambas
186d96bc23 Remove debugging messages.
[GB.QT4]
* BUG: Remove debugging messages.

[GB.QT5]
* BUG: Remove debugging messages.
2021-10-23 03:32:32 +02:00
gambas
d97f8dd764 Fix drag and drop management, especially in GTK+ components.
[GB.GTK]
* BUG: Fix drag and drop action constants.
* BUG: The three drag and drop actions are supported now.
* BUG: The SHIFT and CONTROL key modifiers define the current drag and drop action.

[GB.GTK3]
* BUG: Fix drag and drop action constants.
* BUG: The three drag and drop actions are supported now.
* BUG: The SHIFT and CONTROL key modifiers define the current drag and drop action.

[GB.QT4]
* BUG: Fix drag and drop action constants.
* BUG: The three drag and drop actions are supported now.
* BUG: The SHIFT and CONTROL key modifiers define the current drag and drop action.

[GB.QT5]
* BUG: Fix drag and drop action constants.
* BUG: The three drag and drop actions are supported now.
* BUG: The SHIFT and CONTROL key modifiers define the current drag and drop action.
2021-10-22 21:18:45 +02:00
gambas
31c990a2a9 Take the NoTabFocus property into account.
[GB.QT4]
* BUG: Take the NoTabFocus property into account.

[GB.QT5]
* BUG: Take the NoTabFocus property into account.
2021-10-14 22:37:11 +02:00