Commit graph

8663 commits

Author SHA1 Message Date
gambas
4e1b6921d9 WebView.Clear() is a new method that resets the view.
[GB.QT5.WEBVIEW]
* NEW: WebView: Clear() is a new method that resets the view.
* BUG: WebView: The Link property is now available during Finish and Error events.
* NEW: WebView: Cancelling the NewView event has the same effect as setting the NewView property to NULL.
2020-11-14 03:46:03 +01:00
gambas
677e1086ef Many fixes and clean-ups.
[GB.GTK]
* BUG: Setting the ComboBox.List property does not raise the Click event anymore, like in Qt components.
* BUG: Watcher objects now correctly follow controls that recreate their inner widget.
* NEW: Controls initial geometry is now the same as in Qt components.

[GB.GTK3]
* BUG: Setting the ComboBox.List property does not raise the Click event anymore, like in Qt components.
* BUG: Watcher objects now correctly follow controls that recreate their inner widget.
* NEW: Controls initial geometry is now the same as in Qt components.
2020-11-14 03:42:52 +01:00
gambas
3ad3e9a42d Errors cannot be propagated outside of an event handler.
[INTERPRETER]
* NEW: GB.IsLocked() is a new API that tells if an object is locked.
* NEW: GB.IsRaiseLocked() is a new API that tells if raising an event is useless because no observer will receive it.
* BUG: Errors cannot be propagated outside of an event handler, because the event may result from a library signal that do not support exceptions (like the glib library).
2020-11-14 03:33:12 +01:00
gambas
ab7f329f12 Fix crash when clicking on a top-level menu.
[GB.GTK]
* BUG: Fix crash when clicking on a top-level menu.

[GB.GTK3]
* BUG: Fix crash when clicking on a top-level menu.
2020-11-13 18:32:13 +01:00
gambas
1cd8bd9035 Rework Design property management so that it works better.
[GB.GTK]
* NEW: Rework Design property management so that it works better.
* OPT: Cache font metrics to speed up some font properties.

[GB.GTK3]
* NEW: Rework Design property management so that it works better.
* OPT: Cache font metrics to speed up some font properties.

[GB.QT4]
* NEW: Rework Design property management so that it works better.

[GB.QT5]
* NEW: Rework Design property management so that it works better.
2020-11-12 19:58:51 +01:00
gambas
bc2b594680 Remove debugging messages.
[DEVELOPMENT ENVIRONMENT]
* BUG: Remove debugging messages.
2020-11-11 04:48:35 +01:00
gambas
82cea0a2b2 The UNSAFE keyword is now correctly taken into account in function detection.
[DEVELOPMENT ENVIRONMENT]
* BUG: The UNSAFE keyword is now correctly taken into account in function detection.
2020-11-11 03:35:37 +01:00
gambas
2ca5bdd574 The debugger now correctly saves and prints the current error message.
[INTERPRETER]
* NEW: Add a debug API that returns the current error message, and remove the API that printed it.

[GB.DEBUG]
* BUG: The debugger now correctly saves and prints the current error message.
2020-11-11 03:32:03 +01:00
gambas
c4a6164f96 Disabled state is now correctly taken into account by style drawing methods.
[GB.QT4]
* BUG: Disabled state is now correctly taken into account by style drawing methods.

[GB.QT5]
* BUG: Disabled state is now correctly taken into account by style drawing methods.
2020-11-11 02:03:10 +01:00
gambas
2a2780c95b Some little workarounds for GTK+ components.
[GB.FORM]
* BUG: MenuButton: Fix hidden shortcut button for GTK+ components.
* BUG: DirButton: Take the Design property into account.
* BUG: Wizard: Unset the AutoResize property on wizard title label, it breaks with GTK+ components.
2020-11-11 00:27:55 +01:00
gambas
c2ffd3c7b9 TextArea now have no minimum size if they have no scrollbars. Icons of disabled menus are now desaturated.
[GB.GTK]
* BUG: TextArea now have no minimum size if they have no scrollbars.
* BUG: Icons of disabled menus are now desaturated.

[GB.GTK3]
* BUG: TextArea now have no minimum size if they have no scrollbars.
* BUG: Icons of disabled menus are now desaturated.
2020-11-11 00:21:54 +01:00
gambas
a335ad9895 Enhance project info box behaviour.
[DEVELOPMENT ENVIRONMENT]
* NEW: Project info box is now automatically reloaded if the project configuration file has changed.
* NEW: Project info box now correctly displays the current branch besides the version number.
* NEW: Update Gambas fonts.
2020-11-10 09:52:51 +01:00
gambas
9256c5d1af Don't call a 'gb.gtk3' method.
[GB.GTK]
* BUG: Don't call a 'gb.gtk3' method.
2020-11-10 02:06:11 +01:00
gambas
1c478df760 Fix spurious resizing of embedded windows having menus.
[GB.GTK]
* BUG: Fix spurious resizing of embedded windows having menus.

[GB.GTK3]
* BUG: Fix spurious resizing of embedded windows having menus.
2020-11-09 20:46:12 +01:00
gambas
c732871271 Workaround for Pango not being able to display the Gambas font correctly. Fix Control.Reparent()
[GB.GTK]
* BUG: Control.Reparent() now correctly restores the control position in all cases.

[GB.GTK3]
* BUG: Implement a workaround for Pango not being able to display the Gambas font correctly.
* BUG: Control.Reparent() now correctly restores the control position in all cases.
2020-11-09 20:12:15 +01:00
gambas
cb531a5b21 Add 'gb.Input' and 'gb.Output' constants.
[INTERPRETER]
* NEW: Add 'gb.Input' and 'gb.Output' constants.
2020-11-09 17:41:27 +01:00
gambas
4861c3a2d3 SerialPort: The Close() method now takes the buffer to clear as an optional argument.
[GB.NET]
* NEW: SerialPort: The Close() method now takes the buffer to clear as an optional argument. Use 'gb.Read' for the input buffer and 'gb.Write' for the output buffer.
2020-11-09 17:39:27 +01:00
gambas
1239f45687 Redesign internal file constants.
[INTERPRETER]
* NEW: Redesign internal file constants.
* BUG: Opening a file for creation in direct mode now implies the write flag.
2020-11-09 17:38:28 +01:00
gambas
6b3e15f937 SerialPort: Add a Clear() method that clears both input and output buffers.
[GB.NET]
* NEW: SerialPort: Add a Clear() method that clears both input and output buffers.
2020-11-09 14:37:33 +01:00
gambas
52d7ddf745 WebView widget is now patched.
[GB.GTK3]
* NEW: Allow other GTK+3 components to patch their widget.

[GB.GTK3.WEBVIEW]
* NEW: WebView widget is now patched.
2020-11-09 03:31:34 +01:00
gambas
fa57dd5934 Make keyboard data available the same way as in Qt components.
[GB.GTK]
* BUG: Make keyboard data available the same way as in Qt components.

[GB.GTK3]
* BUG: Make keyboard data available the same way as in Qt components.
2020-11-09 03:27:55 +01:00
gambas
1e7babd1ee Popup the same window several times now works correctly.
[GB.GTK]
* BUG: Popup the same window several times now works correctly.

[GB.GTK3]
* BUG: Popup the same window several times now works correctly.
2020-11-09 03:27:07 +01:00
gambas
ab6c37bef7 Inserting a new environment variable now edits the correct cell.
[DEVELOPMENT ENVIRONMENT]
* BUG: Project property dialog: Unset AutoResize property on a container so that the "Authors" Textarea is visible on GTK+3.
* BUG: Project property dialog: Inserting a new environment variable now edits the correct cell.
2020-11-07 10:55:55 +01:00
gambas
3da8c41bdc TextArea works again.
[GB.GTK]
* BUG: TextArea works again.

[GB.GTK3]
* BUG: TextArea works again.
2020-11-07 10:53:17 +01:00
gambas
0b6359e697 Fix the workaround on TabStrip layout error messages.
[GB.GTK3]
* BUG: Fix the workaround on TabStrip layout error messages.
2020-11-07 00:45:17 +01:00
gambas
526919c990 Workaround GTK+ layouting errors on TabStrip.
[GB.GTK3]
* BUG: Workaround GTK+ layouting errors on TabStrip.
2020-11-07 00:36:28 +01:00
gambas
7c5605051f New menu positioning functions are available since GTK+ 3.22 only.
[GB.GTK3]
* BUG: New menu positioning functions are available since GTK+ 3.22 only.
2020-11-06 14:15:43 +01:00
gambas
339cde7d15 Container children are not incorrectly shown in some cases anymore.
[GB.GTK]
* OPT: Get rid of the 'g_typ' gControl variable.
* BUG: Menu having children cannot be checked anymore.
* BUG: Container children are not incorrectly shown in some cases anymore.

[GB.GTK3]
* OPT: Get rid of the 'g_typ' gControl variable.
* BUG: Menu having children cannot be checked anymore.
* BUG: Container children are not incorrectly shown in some cases anymore.
2020-11-06 13:40:14 +01:00
gambas
e93cdacf10 Checking or unchecking a menu does not raise the Click event anymore.
[GB.GTK]
* BUG: Checking or unchecking a menu does not raise the Click event anymore.

[GB.GTK3]
* BUG: Checking or unchecking a menu does not raise the Click event anymore.
2020-11-05 03:01:39 +01:00
gambas
3282fe3cca Fix management of menus.
[GB.GTK]
* BUG: Get rid of glib deprecation warnings.
* OPT: Lazy initialization of input methods for widgets having none by default.
* BUG: Fix management of menus and make them behave like in Qt components.

[GB.GTK3]
* OPT: Lazy initialization of input methods for widgets having none by default.
* BUG: Fix management of menus and make them behave like in Qt components.
2020-11-05 01:38:57 +01:00
gambas
d212010fa7 Use the new '-a' interpreter option to make the script look like it was not run from a temporary generated project.
[SCRIPTER]
* NEW: Use the new '-a' interpreter option to make the script look like it was not run from a temporary generated project.
* BUG: Start to clean-up the project. A lot of clean-up work is still needed!
2020-11-02 22:31:51 +01:00
gambas
6586e7d7cc Add a '-a' option that allows to override the program path (i.e. Application.Path and Args[0]).
[INTERPRETER]
* NEW: Add a '-a' option that allows to override the program path (i.e. Application.Path and Args[0]).
2020-11-02 22:09:35 +01:00
gambas
f3587c71d7 Forgot to add 'gb.settings' back to the checked components.
[GB.FORM.MDI]
* BUG: Forgot to add 'gb.settings' back to the checked components.
2020-11-02 21:44:54 +01:00
gambas
1ad5ed2ac6 Fix compilation.
[GB.FORM.MDI]
* BUG: Fix compilation.
2020-11-02 01:39:45 +01:00
gambas
86f3f6b6f5 Merge branch 'master' of gitlab.com:gambas/gambas 2020-11-01 19:05:08 +01:00
gambas
9394e35c23 Add some test forms. 2020-11-01 19:04:36 +01:00
gambas
f9f96a24b7 BUG: Scanning a class that declares a structure using the name of an already existing class does not loop forever anymore.
[DEVELOPMENT ENVIRONMENT]
* BUG: Scanning a class that declares a structure using the name of an already existing class does not loop forever anymore.
2020-11-01 19:02:28 +01:00
gambix
35352de728 Use pnm instead of jpeg to avoid libjpeg problems.
[GB.SCANNER]
* BUG: Use pnm instead of jpeg to avoid libjpeg problems.
* BUG: Better progress tracking
* BUG: Remove empty entry in list
2020-11-01 14:48:12 +01:00
gambas
905c2f568d Handle focus traversal our owns way.
[GB.GTK]
* NEW: Handle focus traversal our owns way.

[GB.GTK3]
* NEW: Handle focus traversal our owns way.
2020-11-01 08:38:56 +01:00
gambas
8f68f26233 Allow the value of markup attributes not to be embedded between quotes in rich text.
[GB.GTK]
* BUG: Allow the value of markup attributes not to be embedded between quotes in rich text.

[GB.GTK3]
* BUG: Allow the value of markup attributes not to be embedded between quotes in rich text.
2020-10-31 18:53:36 +01:00
gambas
d20832fd74 Control.Reparent() correctly moves the control if the parent is not changed.
[GB.GTK]
* BUG: Control.Reparent() correctly moves the control if the parent is not changed.

[GB.GTK3]
* BUG: Control.Reparent() correctly moves the control if the parent is not changed.
2020-10-31 16:46:18 +01:00
gambas
8e91ff071a Gambas fonts: merge all different sizes in two SFD files (one for regular, one for bold).
[DEVELOPMENT ENVIRONMENT]
* NEW: Gambas fonts: merge all different sizes in two SFD files (one for regular, one for bold).
2020-10-30 22:56:15 +01:00
gambas
dc603dcc6a Use OTB format instead of TTF format for Gambas fonts. It works better (but still not perfectly with GTK+).
[DEVELOPMENT ENVIRONMENT]
* NEW: Use OTB format instead of TTF format for Gambas fonts. It works better (but still not perfectly with GTK+).
2020-10-30 20:53:03 +01:00
gambas
2786ad1aa8 Packager: Debian packages now uses icons in PNG format instead of XPM, that format being not supported by GTK+.
[DEVELOPMENT ENVIRONMENT]
* NEW: Packager: Debian packages now uses icons in PNG format instead of XPM, that format being not supported by GTK+.
2020-10-30 16:13:40 +01:00
gambas
40d0fe638a Project property dialog: Don't try to display the average number of lines by function if there is no function in the project.
[DEVELOPMENT ENVIRONMENT]
* BUG: Project property dialog: Don't try to display the average number of lines by function if there is no function in the project.
2020-10-30 15:32:23 +01:00
gambas
ebcf5d4102 Put the '*.bdf' files into the project data, even if they are generated from the '*.sfd' files.
[DEVELOPMENT ENVIRONMENT]
* NEW: Put the '*.bdf' files into the project data, even if they are generated from the '*.sfd' files.
2020-10-28 23:51:50 +01:00
gambas
82b9018e9b Gambas bitmap fonts are now embedded into TTF files.
[DEVELOPMENT ENVIRONMENT]
* NEW: Gambas bitmap fonts are now embedded into TTF files. GTK+3 now can display them, but with incorrect spacing!
2020-10-28 23:50:18 +01:00
Benoît Minisini
6e6a86b23c Merge branch 'sh.highlight' into 'master'
Sh.highlight: new added sh (shell) to TextEditor

See merge request gambas/gambas!156
2020-10-27 21:58:52 +00:00
gambas
ca20c1f87f Fix AutoResize arrangement.
[GB.GTK]
* BUG: Fix AutoResize arrangement.

[GB.GTK3]
* BUG: Fix AutoResize arrangement.
2020-10-27 22:32:42 +01:00
Bruce Steers
8b5224af77 Merge branch 'sh.highlight' of https://gitlab.com/bsteers4/gambas into sh.highlight 2020-10-27 20:42:31 +00:00