Commit graph

8973 commits

Author SHA1 Message Date
gambas
91cf8ef35e Min() and Max() are now faster.
[INTERPRETER]
* OPT: Min() and Max() are now faster.
2021-01-21 14:33:49 +01:00
gambas
6d87ae2df8 Merge branch 'master' of https://gitlab.com/gambas/gambas 2021-01-21 02:41:26 +01:00
gambas
ead0304aa7 Update control style sheet only if the control is visible.
[GB.GTK]
* BUG: Resizing a control now take the minimum size into account.

[GB.GTK3]
* OPT: Update control style sheet only if the control is visible.
* BUG: Resizing a control now take the minimum size into account.
2021-01-21 02:39:10 +01:00
gambas
157c59f096 Update French translation.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update French translation.
2021-01-21 02:36:14 +01:00
gambas
85f750dfca Screen.ResolutionX and Screen.ResolutionY are two new properties that return the resolution of a screen.
[GB.GTK]
* NEW: Screen.ResolutionX and Screen.ResolutionY are two new properties that return the resolution of a screen.

[GB.GTK3]
* NEW: Screen.ResolutionX and Screen.ResolutionY are two new properties that return the resolution of a screen.

[GB.QT4]
* NEW: Screen.ResolutionX and Screen.ResolutionY are two new properties that return the resolution of a screen.

[GB.QT5]
* NEW: Screen.ResolutionX and Screen.ResolutionY are two new properties that return the resolution of a screen.
2021-01-21 02:35:08 +01:00
gambas
1bbdc43fc3 FontChooser: Correctly fill font tree when being shown.
[GB.FORM]
* BUG: FontChooser: Correctly fill font tree when being shown.
2021-01-21 02:34:06 +01:00
gambas
aead895e74 Rich text with attribute values containing spaces does not crash anymore.
[GB.GTK]
* BUG: Rich text with attribute values containing spaces does not crash anymore.

[GB.GTK3]
* BUG: Rich text with attribute values containing spaces does not crash anymore.
2021-01-21 02:33:06 +01:00
gambas
1e22281d4d Add GB.String.Split() API. GB.Array.Get() does not check array bounds anymore.
[INTERPRETER]
* NEW: Add GB.String.Split() API.
* OPT: GB.Array.Get() does not check array bounds anymore.
2021-01-21 02:32:06 +01:00
gambas
1c3e02257c Signal handlers are now checked only if requested explicitly by a component.
[INTERPRETER]
* OPT: Signal handlers are now checked only if requested explicitly by a component.

[GB.GTK]
* NEW: Request SIGCHLD handler check.

[GB.GTK3]
* NEW: Request SIGCHLD handler check.
2021-01-21 01:49:38 +01:00
gambas
9ec5e664fc Optimize font chooser and make TreeView item height writable.
[GB.FORM]
* OPT: FontChooser: Font list is now filled only if needed.

[GB.GUI.BASE]
* NEW: TreeView: TreeView item height is now writable.
2021-01-21 01:46:02 +01:00
gambas
4113f6f7df Fix compilation on Qt < 5.7.
[GB.QT5]
* BUG: Fix compilation on Qt < 5.7.
2021-01-20 21:59:52 +01:00
gambas
2539929e4e Fix modal dialogs and default resolution on Wayland.
[GB.QT4]
* BUG: Don't set the QDialog flag on modal dialogs. It makes Qt dizzy, and can even freeze Gnome on Wayland.

[GB.QT5]
* BUG: Don't set the QDialog flag on modal dialogs. It makes Qt dizzy, and can even freeze Gnome on Wayland.
* BUG: The default resolution on Wayland is 96 DPI instead of 72 DPI.
2021-01-20 21:51:25 +01:00
gambas
f346811bf8 Add a new test form.
[GB.FORM]
* NEW: Add a new test form.
2021-01-20 02:54:14 +01:00
gambas
8ba841d150 Fix Control.ScreenY.
[GB.GTK]
* BUG: Fix Control.ScreenY.

[GB.GTK3]
* BUG: Fix Control.ScreenY.
2021-01-20 02:53:39 +01:00
gambas
8327e7f9bf Set application desktop file name and fix window properties on Wayland.
[GB.QT4]
* NEW: Set application desktop file name to the application name.

[GB.QT5]
* NEW: Set application desktop file name to the application name.
* BUG: Window properties are correctly set on Wayland now.
2021-01-19 16:13:41 +01:00
gambas
4586106357 Merge branch 'master' of https://gitlab.com/gambas/gambas 2021-01-19 16:03:30 +01:00
gambas
503e467c78 BUG: Compute control screen coordinates differently because of Wayland.
[GB.GTK]
* BUG: Compute control screen coordinates differently because of Wayland.

[GB.GTK3]
* BUG: Compute control screen coordinates differently because of Wayland.
2021-01-19 16:02:44 +01:00
gambas
479197db31 BUG: Fix keyboard event management.
[GB.GTK]
* BUG: Fix keyboard event management.

[GB.GTK3]
* BUG: Fix keyboard event management.
2021-01-19 16:01:12 +01:00
gambas
e93a455f48 Define the minimum size of controls better, so that less GTK+ spurious warnings are emitted.
[GB.GTK3]
* BUG: Define the minimum size of controls better, so that less GTK+ spurious warnings are emitted.
2021-01-19 02:02:46 +01:00
gambas
d2349cdb6c Fix GTK+3 'get_preferred_height_and_baseline_for_width' overriding.
[GB.GTK3]
* BUG: Fix GTK+3 'get_preferred_height_and_baseline_for_width' overriding.
2021-01-18 23:01:07 +01:00
gambas
ab307322bf Do not crash if expanded widgets change during arrangement. Fix GTK+ window centering method.
[GB.GTK]
* BUG: Do not crash if expanded widgets change during arrangement.

[GB.GTK3]
* BUG: Remove platform-specific window centering method.
* BUG: Do not crash if expanded widgets change during arrangement.

[GB.QT4]
* BUG: Do not crash if expanded widgets change during arrangement.

[GB.QT5]
* BUG: Do not crash if expanded widgets change during arrangement.
2021-01-18 22:27:33 +01:00
gambas
cf8abc4639 Make 'gb.gtk' compile again.
[GB.GTK]
* BUG: Make 'gb.gtk' compile again.
2021-01-18 22:03:21 +01:00
gambas
8d652ed193 GTK+ fixes, especially for Wayland.
[GB.GTK]
* NEW: Add minimum size to buttons, TextBox and Slider controls.
* BUG: Handle key events before global shortcuts only for GtkEntry and GtkTextView widgets.
* BUG: Fix client decoration size computation.
* BUG: The size of a window is now always the size of its contents, without the decorations.

[GB.GTK3]
* NEW: Add minimum size to buttons, TextBox and Slider controls.
* BUG: Handle key events before global shortcuts only for GtkEntry and GtkTextView widgets.
* BUG: Fix client decoration size computation.
* BUG: The size of a window is now always the size of its contents, without the decorations.
* NEW: Centering a window is a now platform-specific.
2021-01-18 21:55:07 +01:00
gambas
1e7ea9f50c Check SIGCHLD signal handler at each event loop.
[INTERPRETER]
* BUG: Check SIGCHLD signal handler at each event loop.
2021-01-18 21:40:48 +01:00
gambas
9f696b9a39 About dialog: Make it larger for wide fonts.
[DEVELOPMENT ENVIRONMENT]
* BUG: About dialog: Make it larger for wide fonts.
2021-01-18 21:39:59 +01:00
gambas
531e6534f3 SwitchButton: Keep color hue when transitioning between selected and normal background color.
[GB.FORM]
* BUG: SwitchButton: Keep color hue when transitioning between selected and normal background color.
2021-01-18 21:37:51 +01:00
gambas
c369ca1c62 Do not crash when quitting if the GUI has not been initialized.
[GB.QT5]
* BUG: Do not crash when quitting if the GUI has not been initialized.
2021-01-17 20:36:28 +01:00
gambas
cfc6de5e08 Fix GTK+ warnings and errors when freeing stuff before the GUI is initialized.
[GB.GTK]
* BUG: Fix GTK+ warnings and errors when freeing stuff before the GUI is initialized.

[GB.GTK3]
* BUG: Fix GTK+ warnings and errors when freeing stuff before the GUI is initialized.
2021-01-17 20:35:13 +01:00
gambas
f2692f3c8d Add a message label on the bottom right of the IDE main window, besides the debug panel buttons.
[DEVELOPMENT ENVIRONMENT]
* NEW: Add a message label on the bottom right of the IDE main window, besides the debug panel buttons.
* BUG: Make unused FScreenshot form compile.
2021-01-17 19:40:25 +01:00
gambas
c207d71d91 Message: Style property value now can only be "flat" or "default". Setting an unknown style resets the style to "default".
[GB.GUI.BASE]
* BUG: Message: Style property value now can only be "flat" or "default". Setting an unknown style resets the style to "default".
2021-01-17 00:28:32 +01:00
gambas
20ed2d06dc Option dialog: Add an option to choose the message style.
[DEVELOPMENT ENVIRONMENT]
* NEW: All messages now use message boxes.
* NEW: Option dialog: Add an option to choose the message style.
* BUG: Project property dialog: Do not hide component if it has the same name as the project.
2021-01-17 00:25:50 +01:00
gambas
549e8b1fdd Spinner: Circle spinner now is a progress when its value is strictly between 0 and 1. Otherwise it spins.
[GB.FORM]
* NEW: Spinner: Circle spinner now is a progress when its value is strictly between 0 and 1. Otherwise it spins.
2021-01-17 00:14:47 +01:00
gambas
e5f1462c02 Support for desktop component plugins. Unsupported APIs (on wayland) now raise an error.
[GB.DESKTOP]
* NEW: Support for desktop component plugins. Unsupported APIs (on wayland) now raise an error.
2021-01-17 00:13:03 +01:00
gambas
6debc3df5e ComboBox: PlaceHolder property does not crash anymore on read-only ComboBox.
[GB.QT4]
* BUG: ComboBox: PlaceHolder property does not crash anymore on read-only ComboBox.

[GB.QT5]
* BUG: ComboBox: PlaceHolder property does not crash anymore on read-only ComboBox.
2021-01-17 00:10:14 +01:00
gambas
b62b931d50 This component is a now a X11 plugin for 'gb.desktop'.
[GB.DESKTOP.X11]
* NEW: This component is a now a X11 plugin for 'gb.desktop'.
2021-01-16 23:38:59 +01:00
gambas
c211efd0c8 Creating a control with a NULL container now raises an error instead of crashing.
[GB.GTK]
* BUG: Creating a control with a NULL container now raises an error instead of crashing.

[GB.GTK3]
* BUG: Creating a control with a NULL container now raises an error instead of crashing.
2021-01-16 16:53:36 +01:00
gambas
0d2f6c4a4a Message: Add Style and ColoredButtons properties.
[GB.GUI.BASE]
* NEW: Message: Style is a new property that defines the message box style. At the moment, "default" and "flat" are supported.
* NEW: Message: ColoredButtons is a new property that defines if the buttons should be colored or not.
2021-01-16 15:15:55 +01:00
gambas
13d21f1b09 Fix FontChooser layout, and add a RichText property to IconPanel tabs.
[GB.FORM]
* BUG: FontChooser: Fix layout.
* NEW: IconPanel: Add a RichtText property to IconPanel tabs.
*
2021-01-16 04:39:36 +01:00
gambas
f7eef2af6e Message: Add the title to the message box, and make it movable.
[GB.GUI.BASE]
* NEW: Message: Add the title to the message box, and make it movable.
2021-01-16 04:34:29 +01:00
gambas
feeb175c46 Fix Mouse.StartX and Mouse.StartY. Fix underline and strikeout text in Label and TextLabel.
[GB.GTK]
* BUG: Mouse.StartX and Mouse.StartY are now always available during mouse events.
* BUG: Label and TextLabel now correctly display underline or strikeout text.

[GB.GTK3]
* BUG: Mouse.StartX and Mouse.StartY are now always available during mouse events.
* BUG: Label and TextLabel now correctly display underline or strikeout text.
2021-01-16 04:32:04 +01:00
gambas
00b9bb9f0c Message: Test a new look for the message boxes.
[GB.GUI.BASE]
* NEW: Message: Test a new look for the message boxes.
2021-01-15 22:37:30 +01:00
gambas
475a7699d3 Message: Default buttons are now replaced as soon as at least one button is specified.
[GB.GUI.BASE]
* BUG: Message: Default buttons are now replaced as soon as at least one button is specified.
2021-01-15 22:04:18 +01:00
gambas
ce379dadb0 Fix mouse cursor handling of TextBox, ComboBox and TextArea.
[GB.GTK3]
* BUG: Fix mouse cursor handling of TextBox, ComboBox and TextArea.
2021-01-15 00:51:27 +01:00
gambas
dd3853c7f4 Form editor: Changing the class of a public control from the "Change into" menu now works as expected.
[DEVELOPMENT ENVIRONMENT]
* BUG: Form editor: Changing the class of a public control from the "Change into" menu now works as expected.
2021-01-14 11:49:24 +01:00
gambas
09e3a9ae19 Scroll view to make popup windows visible as much as possible.
[GB.WEB.GUI]
* NEW: Scroll view to make popup windows visible as much as possible.
2021-01-14 04:14:55 +01:00
gambas
03fdb5dca7 Somes fixes in the DateBox control.
[GB.WEB.GUI]
* BUG: DateBox: Fix date formatting.
* NEW: DateBox: Set a default width according to the DateTime property.
2021-01-14 03:58:20 +01:00
gambas
6bec59fc15 File.DefaultDirAuth is a new property that defines the default authorizations used when using MkDir.
[INTERPRETER]
* NEW: File.DefaultDirAuth is a new property that defines the default authorizations used when using MkDir.
2021-01-14 01:09:30 +01:00
gambas
af3ea949b2 Form editor: The control selection menu now uses two levels of menus not to display too many items in the same popup.
[DEVELOPMENT ENVIRONMENT]
* NEW: Form editor: The control selection menu now uses two levels of menus not to display too many items in the same popup.
2021-01-14 00:39:28 +01:00
gambas
75056eb307 Packager: Common extra dependencies and extra files are not lost anymore when the target systems change.
[DEVELOPMENT ENVIRONMENT]
* BUG: Packager: Common extra dependencies and extra files are not lost anymore when the target systems change.
2021-01-14 00:00:09 +01:00
gambas
f8221167af Add a Tag property to many view control items.
[GB.GUI.BASE]
* NEW: GridView: Cells have now a Tag property.
* NEW: GridView: Columns have now a Tag property.
* NEW: TreeView: Items have now a Tag property.
* NEW: ListView: Items have now a Tag property.
* NEW: ColumnView: Items have now a Tag property.
* NEW: IconView: Items have now a Tag property.
2021-01-13 23:20:40 +01:00