Commit graph

1121 commits

Author SHA1 Message Date
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
gambas
e5d38cb7cb Dialog.FilterIndex is a new property that returns or defines the current filter of the file dialog.
[GB.FORM.DIALOG]
* NEW: Dialog.FilterIndex is a new property that returns or defines the current filter of the file dialog.

[GB.GTK]
* NEW: Dialog.FilterIndex is a new property that returns or defines the current filter of the file dialog.

[GB.GTK3]
* NEW: Dialog.FilterIndex is a new property that returns or defines the current filter of the file dialog.

[GB.QT4]
* NEW: Dialog.FilterIndex is a new property that returns or defines the current filter of the file dialog.

[GB.QT5]
* NEW: Dialog.FilterIndex is a new property that returns or defines the current filter of the file dialog.
2021-10-11 19:31:29 +02:00
gambas
8d886792d4 Paint.Begin() now correctly initializes the text drawing color.
[GB.QT4]
* BUG: Paint.Begin() now correctly initializes the text drawing color.

[GB.QT5]
* BUG: Paint.Begin() now correctly initializes the text drawing color.
2021-10-08 19:23:18 +02:00
gambas
2b625adcd0 Fix how keyboard events are propagated to the parent windows.
[GB.QT4]
* BUG: Fix how keyboard events are propagated to the parent windows.
* NEW: DrawingArea: Remove some now useless code.

[GB.QT5]
* BUG: Fix how keyboard events are propagated to the parent windows.
* NEW: DrawingArea: Remove some now useless code.
2021-09-24 17:26:49 +02:00
gambas
9d08d13719 ComboBox: Close() is a new method that closes the ComboBox popup.
[GB.QT4]
* NEW: ComboBox: Close() is a new method that closes the ComboBox popup.

[GB.QT5]
* NEW: ComboBox: Close() is a new method that closes the ComboBox popup.
2021-09-24 17:25:09 +02:00
gambas
2c2b7d565d Tooltip and link properties of the Color class are now writable. Fix 'Key.Backspace' property name.
[GB.GTK]
* NEW: Tooltip and link properties of the Color class are now writable. Override them if the default widget theme colors are unreadable.
* BUG: Fix 'Key.Backspace' property name.

[GB.GTK3]
* NEW: Tooltip and link properties of the Color class are now writable. Override them if the default widget theme colors are unreadable.
* BUG: Fix 'Key.Backspace' property name.

[GB.QT4]
* NEW: Tooltip and link properties of the Color class are now writable. Override them if the default widget theme colors are unreadable.
* BUG: Fix 'Key.Backspace' property name.

[GB.QT5]
* NEW: Tooltip and link properties of the Color class are now writable. Override them if the default widget theme colors are unreadable.
* BUG: Fix 'Key.Backspace' property name.
2021-08-30 18:58:34 +02:00
gambas
a89f827a39 Key.Shortcut is a new property that returns a string describing the key of a keyboard event with all its modifiers.
[GB.GTK]
* NEW: Key.Shortcut is a new property that returns a string describing the key of a keyboard event with all its modifiers.

[GB.GTK3]
* NEW: Key.Shortcut is a new property that returns a string describing the key of a keyboard event with all its modifiers.

[GB.QT4]
* NEW: Key.Shortcut is a new property that returns a string describing the key of a keyboard event with all its modifiers.

[GB.QT5]
* NEW: Key.Shortcut is a new property that returns a string describing the key of a keyboard event with all its modifiers.
2021-08-24 01:54:41 +02:00
gambas
f7cd9542c8 'Desktop.Type' property is now implemented in 'gb.gui.base'.
[GB.GTK]
* NEW: 'Desktop.Type' property is now implemented in 'gb.gui.base'.

[GB.GTK3]
* NEW: 'Desktop.Type' property is now implemented in 'gb.gui.base'.

[GB.QT4]
* NEW: 'Desktop.Type' property is now implemented in 'gb.gui.base'.

[GB.QT5]
* NEW: 'Desktop.Type' property is now implemented in 'gb.gui.base'.
2021-08-18 21:53:06 +02:00
gambas
89e28ef762 Fix some use of deprecated methods.
[GB.QT5]
* BUG: Fix some use of deprecated methods.
2021-08-18 21:51:44 +02:00
gambas
dedf7e17fe Style.BackgroundOf() method is now reliable.
[GB.GTK]
* BUG: Style.BackgroundOf() method is now reliable.

[GB.GTK3]
* BUG: Style.BackgroundOf() method is now reliable.

[GB.QT4]
* BUG: Style.BackgroundOf() method is now reliable.

[GB.QT5]
* BUG: Style.BackgroundOf() method is now reliable.
2021-06-25 12:21:33 +02:00
gambas
b0ac35dd4b Fix compilation on Qt < 5.3.
[GB.QT4]
* BUG: Fix compilation on Qt < 5.3.

[GB.QT5]
* BUG: Fix compilation on Qt < 5.3.
2021-06-17 13:07:11 +02:00
gambas
deb1916f29 Fix compilation on Qt < 5.14.
[GB.QT4]
* BUG: Fix compilation on Qt < 5.14.

[GB.QT5]
* BUG: Fix compilation on Qt < 5.14.
2021-06-17 12:24:38 +02:00
gambas
102040eb8b Do not loop indefinitely when searching for the next focus widget.
[GB.QT4]
* BUG: Do not loop indefinitely when searching for the next focus widget.

[GB.QT5]
* BUG: Do not loop indefinitely when searching for the next focus widget.
2021-06-17 11:20:39 +02:00
gambas
c8ecbefa7f Fix focus management so that the focus order is always the stacking order.
[GB.QT4]
* BUG: Fix focus management so that the focus order is always the stacking order.

[GB.QT5]
* BUG: Fix focus management so that the focus order is always the stacking order.
* BUG: Remove some compilation warnings.
2021-06-17 11:15:07 +02:00
gambas
41bd7aa6fc Style.PaintButton() now can take a background color as optional argument.
[GB.GTK]
* NEW: Style.PaintButton() now can take a background color as optional argument.

[GB.GTK3]
* NEW: Style.PaintButton() now can take a background color as optional argument.

[GB.QT4]
* NEW: Style.PaintButton() now can take a background color as optional argument.

[GB.QT5]
* NEW: Style.PaintButton() now can take a background color as optional argument.
2021-06-16 01:50:07 +02:00
gambas
8a191771ec Fix Mouse.Button and Mouse.State, especially for mouses having more than 3 buttons.
[GB.GTK]
* BUG: Now Mouse.Button returns the button number, between 1 and 5.
* BUG: Mouse.State returns the same thing as with Qt components, except that apparently GTK+ cannot tell if button 4 and 5 are pressed all the time.

[GB.GTK3]
* BUG: Now Mouse.Button returns the button number, between 1 and 5.
* BUG: Mouse.State returns the same thing as with Qt components, except that apparently GTK+ cannot tell if button 4 and 5 are pressed all the time.

[GB.QT4]
* BUG: Now Mouse.Button returns the button number, between 1 and 5.

[GB.QT5]
* BUG: Now Mouse.Button returns the button number, between 1 and 5.
2021-06-10 02:10:09 +02:00
gambas
878458619b Fix compilation of last warning removals.
[GB.QT5]
* BUG: Fix compilation of last warning removals.
2021-06-04 22:45:42 +02:00
gambas
5dcb72bfea Fix some Qt5 warnings.
[GB.QT5]
* BUG: Fix some Qt5 warnings.
2021-06-04 21:23:18 +02:00
gambas
7adc74b454 Add Placeholder to the list of ComboBox control properties.
[GB.GTK]
* BUG: Add Placeholder to the list of ComboBox control properties.

[GB.QGTK3]
* BUG: Add Placeholder to the list of ComboBox control properties.

[GB.QT4]
* BUG: Add Placeholder to the list of ComboBox control properties.

[GB.QT5]
* BUG: Add Placeholder to the list of ComboBox control properties.
2021-06-04 21:22:14 +02:00
gambas
5bf0f7f267 TextBox & ComboBox: Fix declaration of new Cursor event.
[GB.QT4]
* BUG: TextBox & ComboBox: Fix declaration of new Cursor event.

[GB.QT5]
* BUG: TextBox & ComboBox: Fix declaration of new Cursor event.
2021-06-04 21:09:00 +02:00
gambas
c448acd69e TextBox & ComboBox now raise a Cursor event when the cursor moves.
[GB.GTK]
* NEW: TextBox & ComboBox now raise a Cursor event when the cursor moves.

[GB.GTK3]
* NEW: TextBox & ComboBox now raise a Cursor event when the cursor moves.

[GB.QT4]
* NEW: TextBox & ComboBox now raise a Cursor event when the cursor moves.

[GB.QT5]
* NEW: TextBox & ComboBox now raise a Cursor event when the cursor moves.
2021-06-04 20:26:16 +02:00
gambas
0c837ba9f1 Fix new gcc compiler warning.
[GB.QT4]
* BUG: Fix new gcc compiler warning.

[GB.QT5]
* BUG: Fix new gcc compiler warning.
2021-06-04 20:16:02 +02:00
gambas
b01f603a4c Display the warning about calling the event loop during a keyboard event once.
[GB.GTK]
* NEW: Display the warning about calling the event loop during a keyboard event once.

[GB.GTK3]
* NEW: Display the warning about calling the event loop during a keyboard event once.

[GB.QT4]
* NEW: Display the warning about calling the event loop during a keyboard event once.

[GB.QT5]
* NEW: Display the warning about calling the event loop during a keyboard event once.
2021-05-14 01:19:29 +02:00
gambas
cd4e60eddf TextArea: Add a padding proportional to the font height.
[GB.GTK]
* NEW: TextArea: Add a padding proportional to the font height.

[GB.GTK3]
* NEW: TextArea: Add a padding proportional to the font height.

[GB.QT4]
* NEW: TextArea: Add a padding proportional to the font height.

[GB.QT5]
* NEW: TextArea: Add a padding proportional to the font height.
2021-05-11 03:47:04 +02:00