Commit graph

9598 commits

Author SHA1 Message Date
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
35a5f54bda Fix focus management of windows and activation of embedded windows.
[GB.GTK]
* BUG: Fix focus management of windows.
* BUG: Activate embedded windows on show.

[GB.GTK3]
* BUG: Fix focus management of windows.
* BUG: Activate embedded windows on show.
2021-06-17 11:13:16 +02:00
gambas
899c3138e2 Handle the ".[]" syntax in method signature popup. A few enhancements in the procedure popup.
[DEVELOPMENT ENVIRONMENT]
* NEW: Procedure popup: Underline the startup method in the procedure list.
* NEW: Procedure popup: Don't show the "STATIC" button in a module.
* NEW: Code editor: The ".[]" syntax is now handled when displaying method signatures.
2021-06-16 23:26:03 +02:00
gambas
78b6bfbf92 Update 'start' and 'end' icons.
[GB.FORM.STOCK]
* NEW: Update 'start' and 'end' icons.
2021-06-16 03:28:21 +02:00
gambas
f8c9e5b8f8 Translation dialog: Add two buttons for finding the first and the last untranslated string.
[DEVELOPMENT ENVIRONMENT]
* NEW: Translation dialog: Add two buttons for finding the first and the last untranslated string.
* NEW: Update French translation.
2021-06-16 03:27:53 +02:00
gambas
c59ae913b6 Merge branch 'master' of gitlab.com:gambas/gambas 2021-06-16 01:55:10 +02:00
gambas
d5105c8349 Remove an extra newline at the end of the "non freed allocation" warning message.
[INTERPRETER]
* BUG: Remove an extra newline at the end of the "non freed allocation" warning message.
2021-06-16 01:54:12 +02:00
gambas
a6a47e5882 Project tree: Use the new 'inheritance' stock icon.
[DEVELOPMENT ENVIRONMENT]
* NEW: Project tree: Use the new 'inheritance' stock icon.
2021-06-16 01:53:42 +02:00
gambas
f9a51f632a Add 'inheritance' stock icon.
[GB.FORM.STOCK]
* NEW: Add 'inheritance' stock icon.
2021-06-16 01:52:33 +02:00
gambas
09dd6a7009 MenuButton: The background color is now used for coloring the button background.
[GB.FORM]
* NEW: MenuButton: The background color is now used for coloring the button background.
* BUG: MenuButton: Fix how style flags are used for drawing the control.
2021-06-16 01:51:54 +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
Benoît Minisini
2bd8b62f7b Merge branch 'ScripterExternDefBug' into 'master'
[Scripter]

See merge request gambas/gambas!234
2021-06-15 16:13:25 +00:00
gambas
e6d9faad0a Allow local static variables to declare embedded arrays or structures like global variables.
[COMPILER]
* NEW: Allow local static variables to declare embedded arrays or structures like global variables.
2021-06-15 17:06:57 +02:00
gambas
6e69b9c00a Do not allow window titlebar to be moved outside of the visible area.
[GB.WEB.GUI]
* BUG: Fix combo-box layout.
* BUG: Do not allow window titlebar to be moved outside of the visible area.
2021-06-15 17:00:37 +02:00
gambas
4f6107e443 Fix documentation of embedded arrays, structures and embedded arrays of structures.
[DEVELOPMENT ENVIRONMENT]
* BUG: Fix documentation of embedded arrays, structures and embedded arrays of structures.
2021-06-15 16:45:35 +02:00
gambas
eb941620bf Fix autocompletion of embedded arrays of structures.
[DEVELOPMENT ENVIRONMENT]
* BUG: Fix autocompletion of embedded arrays of structures.
* BUG: Debugger panel: Do not show the output console automatically if there is an error.
2021-06-15 11:05:37 +02:00
Brian G
88367440fc [Scripter]
* BUG Fix EXTERN definitions correctly outside generated main() definition in lazy scripts(no main)
* BUG Fix Ensure externs are after all structures in lazy script(no main)
* BUG Fix Enum and Const to be outside before Structures in lazy scripts(no main)
* NEW Added two new testscripts to project to test structures and externs with and without main() defined
2021-06-14 17:21:02 -07:00
gambas
1ff8787721 Add a button in the project tree that opens the startup class.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update French translation.
* NEW: Add a button in the project tree that opens the startup class.
2021-06-15 02:10:05 +02:00
gambas
e143bc65c7 Debugger panel: Use a label to show the current error. Make the expression watch panel bigger.
[DEVELOPMENT ENVIRONMENT]
* NEW: Debugger panel: Use a label to show the current error. Do not use a balloon anymore.
* NEW: Debugger panel: The expression watch panel is now bigger.
2021-06-15 02:00:53 +02:00
gambas
2cf8ae5578 Update support file.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update support file.
2021-06-15 01:32:24 +02:00
gambas
81cf09199b Fix incorrect Turkish translation file.
[DEVELOPMENT ENVIRONMENT]
* BUG: Fix incorrect Turkish translation file.
2021-06-15 01:20:41 +02:00
gambas
78191ced69 Remove the new Size, DataSize and StaticSize properties of the Class class. Use SizeOf() instead of DataSize.
[INTERPRETER]
* NEW: Remove the new Size, DataSize and StaticSize properties of the Class class. Use SizeOf() instead of DataSize.
2021-06-14 22:37:53 +02:00
gambas
0c30eda13f The SizeOf() function now can return the data size of a class or a structure.
[INTERPRETER]
* NEW: The SizeOf() function now can return the data size of a class or a structure.
2021-06-14 22:36:57 +02:00
gambas
d99609f2d9 Add Class.DataSize property, and make Class.Size returns the full size of an object of that class.
[INTERPRETER]
* NEW: Class.Size now returns the full size allocated for an object of that class.
* NEW: Class.DataSize is a new property that returns the size of the dynamic data allocated for that class.
2021-06-14 19:30:15 +02:00
gambas
a7d7135112 Class.Size and Class.StaticSize are two new properties that return the size of the dynamic and static data of a class.
[INTERPRETER]
* NEW: Class.Size and Class.StaticSize are two new properties that return the size of the dynamic and static data of a class.
2021-06-14 19:20:36 +02:00
gambas
6588c9c1e6 Merge branch 'master' of gitlab.com:gambas/gambas 2021-06-14 00:18:20 +02:00
gambas
2613dfab3a TerminalView: Ignore errors if resizing the running process virtual terminal fails.
[GB.FORM.TERMINAL]
* BUG: TerminalView: Ignore errors if resizing the running process virtual terminal fails.
2021-06-14 00:18:02 +02:00
Christof Thalhofer
8c1e1672f4 Merge branch 'master' of https://gitlab.com/gambas/gambas 2021-06-13 23:04:28 +02:00
Christof Thalhofer
453f61ed7e gambas3-selftest script run.sh with 'fast' option
[DEVELOPMENT ENVIRONMENT]
*OPT: gambas3-selftest script run.sh with 'fast' option
2021-06-13 23:02:41 +02:00
gambas
08a24c7927 Delete global QThreadPool object on fork only if QT version is at least 5.15.0.
[GB.QT5]
* BUG: Delete global QThreadPool object on fork only if QT version is at least 5.15.0.
2021-06-13 22:53:27 +02:00
Benoît Minisini
419b92a1d5 Merge branch 'ScripterStaticFix' into 'master'
* NEW Add support for STATIC def within a function

See merge request gambas/gambas!233
2021-06-13 20:32:46 +00:00
Benoît Minisini
03210a1dde Merge branch 'MediaViewFix' into 'master'
MediaView, also hide spacer panel when hiding controls

See merge request gambas/gambas!230
2021-06-13 20:31:04 +00:00
Benoît Minisini
5f3e7f0c62 Merge branch 'tr_update' into 'master'
Update Turkish Translation

See merge request gambas/gambas!229
2021-06-13 20:30:03 +00:00
Brian G
c7303759f8 * NEW Add support for STATIC def within a function 2021-06-12 19:26:00 -07:00
gambas
3d41de69d4 Fix Eval() and fix error management on disabled fast functions.
[INTERPRETER]
* BUG: Fix Eval().
* BUG: Fix error management on disabled fast functions.
2021-06-12 12:02:39 +02:00
gambas
b24029f722 Object.SizeOf() on embedded arrays now returns the size of the array, and not the size of the temporary object created for accessing the array.
[INTERPRETER]
* NEW: Object.SizeOf() on embedded arrays now returns the size of the array, and not the size of the temporary object created for accessing the array.
2021-06-12 02:02:44 +02:00
gambas
06e2373dd5 Fix memory leaks in debugger expression evaluation routines.
[INTERPRETER]
* BUG: Fix memory leaks in debugger expression evaluation routines.

[GB.DEBUG]
* BUG: Fix memory leaks in debugger expression evaluation routines.
* NEW: The debugger now prints the reference count next to object references.
* BUG: A null pointer is printed as "NULL" now.
2021-06-12 01:39:52 +02:00
gambas
cb8c0a3f43 Implement and fix assignation of structures and embedded arrays.
[INTERPRETER]
* NEW: Implement and fix assignation of structures and embedded arrays.
2021-06-11 19:25:50 +02:00
gambas
c32df65c35 Some GTK+ fixes for SpinBox and ButtonBox when the font is small. Fix ButtonBox border drawing.
[GB.GUI.BASE]
* BUG: SpinBox: Clamp the vertical padding so that the inner textbox works on GTK+ with small fonts.

[GB.FORM]
* BUG: ButtonBox: Clamp the vertical padding so that the inner textbox works on GTK+ with small fonts.
* BUG: ButtonBox: Fix border drawing according to the widget state (focus and hovering).
2021-06-10 03:23:47 +02:00
gambas
e1202bad7e Array.Read() and Array.Write() now check their stream argument instead of crashing if it is NULL.
[INTERPRETER]
* BUG: Array.Read() and Array.Write() now check their stream argument instead of crashing if it is NULL.
2021-06-10 02:27:09 +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
c42a80d20f Don't try to call the "before fork" library handler if the library is not yet loaded.
[INTERPRETER]
* BUG: Don't try to call the "before fork" library handler if the library is not yet loaded.
2021-06-07 23:53:16 +02:00
gambas
fff860d387 Packager wizard: Add a button for opening the target folder.
[DEVELOPMENT ENVIRONMENT]
* NEW: Packager wizard: Add a button for opening the target folder.
* BUG: Packager wizard: Fix the message label displayed during package creation.
* NEW: Update French translation.
2021-06-06 00:26:31 +02:00
gambas
32336a6780 Project open dialog: Add 'Examples' and 'Installed software' tabs.
[DEVELOPMENT ENVIRONMENT]
* NEW: Project open dialog: Add 'Examples' and 'Installed software' tabs.
2021-06-05 23:40:47 +02:00
gambas
49dc9b051b Fix JIT function calls and add Jit.Enabled property.
[INTERPRETER]
* BUG: Calling a JIT function from a class having a ':' in its name works correctly now.
* NEW: Jit.Enabled is a new property that allows to temporarily deactivate the JIT compiler.
2021-06-05 14:29:58 +02:00
gambas
b4a13cb831 Reset the internal Qt5 thread pool before forking.
[GB.QT5]
* BUG: Reset the internal Qt5 thread pool before forking.
2021-06-05 03:13:39 +02:00
gambas
67d266d79b Call an optional fork helper in each loaded component libraries before starting a task.
[INTERPRETER]
* NEW: Call an optional fork helper in each loaded component libraries before starting a task.
2021-06-05 03:11:54 +02:00
gambas
c2ee03d50b FileChooser: Correctly restore the ShowDetailed property from settings.
[GB.FORM]
* BUG: FileChooser: Correctly restore the ShowDetailed property from settings.
2021-06-04 23:34:30 +02:00