Commit graph

10867 commits

Author SHA1 Message Date
Christof Thalhofer
d79b36dc3c Gambas-Selftest get rid of 'Inform' command
[DEVELOPMENT ENVIRONMENT]
* OPT: Gambas-Selftest get rid of 'Inform' command
2022-12-18 11:32:11 +01:00
Benoît Minisini
ff2fe08c72 Remove debugging messages on dnd.
[GB.GTK]
* BUG: Remove debugging messages on dnd.

[GB.GTK3]
* BUG: Remove debugging messages on dnd.
2022-12-17 12:32:29 +01:00
Benoît Minisini
0456541f43 TabPanel: Inner container was one pixel too short vertically!
[GB.FORM]
* BUG: TabPanel: Inner container was one pixel too short vertically!

* NEW: DirView: Display unwritable directories with a lock emblem.
2022-12-16 19:18:18 +01:00
Benoît Minisini
8b4c7a14a1 Update some icons. Gambas icon theme now can have specific icons for applications.
[GB.FORM.STOCK]
* NEW: Redraw 'home' button.
* NEW: Fix 'microphone-off' icon in 32 pixels size.
* NEW: Update the list of icons that must be reversed with ltr languages.
* NEW: Gambas icon theme now can have specific icons for applications.
* BUG: Fix Gambas IDE application icon in Gambas icon theme.
2022-12-16 08:53:47 +01:00
Benoît Minisini
4520e88486 DirView: Display unwritable directories with a lock emblem.
[GB.FORM]
* BUG: FileChooser: The bookmark button works correctly again the first time it is clicked.
* NEW: DirView: Display unwritable directories with a lock emblem.
2022-12-16 08:51:40 +01:00
Benoît Minisini
c42043aacc Debugger: Clicking on the stack backtrace works correctly again.
[DEVELOPMENT ENVIRONMENT]
* BUG: Debugger: Clicking on the stack backtrace works correctly again.
2022-12-16 08:48:58 +01:00
Benoît Minisini
b145355b76 The debugger now indicates if the printed information is from the current stack frame or from another one.
[GB.DEBUG]
* NEW: The debugger now indicates if the printed information is from the current stack frame or from another one.
2022-12-16 08:46:17 +01:00
Benoît Minisini
e9a050ebcb Project browser: Use a better dialog to handle file overwrite during a copy.
[DEVELOPMENT ENVIRONMENT]
* NEW: Project browser: Use a better dialog to handle file overwrite during a copy.
* NEW: Update French translation.
2022-12-16 01:58:29 +01:00
Benoît Minisini
ee1a23039d Use the old drawing for 'debug-cursor', 'debug-into', 'debug-out' and 'debug-over' icons.
[GB.FORM.STOCK]
* NEW: Use the old drawing for 'debug-cursor', 'debug-into', 'debug-out' and 'debug-over' icons. The new one was not pretty.
2022-12-16 01:56:52 +01:00
Benoît Minisini
eef92cc2fa Debugger: Fix debugger state tracking.
[DEVELOPMENT ENVIRONMENT]
* BUG: Debugger: Fix debugger state tracking.
2022-12-15 14:55:38 +01:00
Benoît Minisini
94af499b8d UserControl now automatically refreshes itself when its enabled state changes.
[GB.QT4]
* BUG: UserControl now automatically refreshes itself when its enabled state changes.

[GB.QT5]
* BUG: UserControl now automatically refreshes itself when its enabled state changes.
2022-12-15 02:32:32 +01:00
Benoît Minisini
d8ff5eb39d New debugger icons. Longer timeout for version control commands.
[DEVELOPMENT ENVIRONMENT]
* NEW: Debugger: Use the new debugger stock icons.
* NEW: Project tree: Use a fixed size for the emblems.
* NEW: Version control: the command timeout is now 30 seconds instead of 15 seconds.
2022-12-15 02:24:20 +01:00
Benoît Minisini
3e51b40923 Add 'debug-cursor', 'debug-into', 'debug-out' and 'debug-over' stock icons.
[GB.FORM]
* NEW: Add 'debug-cursor', 'debug-into', 'debug-out' and 'debug-over' stock icons.
2022-12-15 02:22:35 +01:00
Benoît Minisini
aa27e4fb82 Add 'debug-cursor', 'debug-into', 'debug-out' and 'debug-over' icons.
[GB.FORM.STOCK]
* NEW: Add 'debug-cursor', 'debug-into', 'debug-out' and 'debug-over' icons.
2022-12-15 02:22:10 +01:00
Benoît Minisini
e1eb227882 Fix cell spanning in GridView and TreeView.
[GB.GUI.BASE]
* BUG: GridView: Fix row and column spanning algorithm.
* BUG: TreeView: Item 'Span' property works correctly now.
2022-12-15 00:33:28 +01:00
Benoît Minisini
db39432a2f Redraw the icon of source files that must not be translated.
[DEVELOPMENT ENVIRONMENT]
* NEW: Redraw the icon of source files that must not be translated.
2022-12-13 02:54:22 +01:00
Benoît Minisini
74fef86b36 FileView: Fix generation of svg file previews.
[GB.FORM]
* BUG: FileView: Fix generation of svg file previews.
2022-12-13 02:53:41 +01:00
Benoît Minisini
0e8ecf18e7 FileView: Fix a crash when filling the popup menu. Many other enhancements and fixes.
[GB.FORM]
* NEW: FileView: The image file previews are now cached in the '/tmp' directory. The cache is cleared when the process terminates.
* NEW: FileView: Add preview of 'webp' image files.
* BUG: FileView: Fix a crash when filling the popup menu.
* NEW: FileView: 'Orientation' is new property that allows to define the orientation of the icon view.
* BUG: FileView: Fix preview refresh when the control is shown or hidden.
2022-12-13 02:37:44 +01:00
Benoît Minisini
faa7838e78 IconView: The layout algorithm has been cleaned up and fixed.
[GB.GUI.BASE]
* NEW: Paint.StretchImage() now returns the frame of the drawn image as a rectangle.
* BUG: IconView: The layout algorithm has been cleaned up and fixed.
2022-12-13 02:34:37 +01:00
Benoît Minisini
d13471c82a Forgot to commit a source file in commit 76196d2c!
[COMPILER]
* BUG: Forgot to commit a source file in commit 76196d2c!
2022-12-12 16:43:41 +01:00
Benoît Minisini
de50615169 Form editor: Fix control selection that broke since the last changes in TreeView.
[DEVELOPMENT ENVIRONMENT]
* BUG: Form editor: Fix control selection that broke since the last changes in TreeView.
2022-12-12 11:16:13 +01:00
Benoît Minisini
6a3d02a154 Fix debugger. Do not try to optimize the shape when using the image editor line selection tool.
[DEVELOPMENT ENVIRONMENT]
* BUG: Debugger: Fix step behaviour.
* NEW: Image editor: Do not try to optimize the shape when using the line selection tool.
2022-12-11 23:57:14 +01:00
Benoît Minisini
2bec336ef0 FileView: Remove file details in icon view mode. It's ugly.
[GB.FORM]
* NEW: FileView: Remove file details in icon view mode. It's ugly.
2022-12-11 23:08:25 +01:00
Benoît Minisini
28e6ed3b71 Debugger: The current frame of the stack backtrace is now always correctly highlighted. Automatic local variable declaration is now enabled by default.
[DEVELOPMENT ENVIRONMENT]
* BUG: Debugger: The current frame of the stack backtrace is now always correctly highlighted.
* NEW: Automatic local variable declaration is now enabled by default.
2022-12-11 21:03:16 +01:00
Benoît Minisini
2ea4b2c24d TreeView: Unselectable items are now really really unselectable.
[GB.GUI.BASE]
* BUG: TreeView: Unselectable items are now really really unselectable.
2022-12-11 21:00:30 +01:00
Benoît Minisini
90c40c740e Merge branch 'master' of gitlab.com:gambas/gambas 2022-12-11 20:50:58 +01:00
Benoît Minisini
ffbd8c3db3 TreeView: Unselectable items are now really unselectable.
[GB.GUI.BASE]
* BUG: TreeView: Unselectable items are now really unselectable.
2022-12-11 20:50:48 +01:00
gambix
34a64274b3 [GB.MAP]
* BUG: Continue to resolve bugs
2022-12-11 17:47:05 +01:00
Benoît Minisini
76196d2cd5 Fix parsing of 'Debug' symbol in preprocessor lines. Don't crash anymore if an error is raised while reading command-line arguments.
[COMPILER]
* BUG: Fix parsing of 'Debug' symbol in preprocessor lines.
* BUG: Don't crash anymore if an error is raised while reading command-line arguments.
2022-12-11 16:44:46 +01:00
Benoît Minisini
7480a9b14c Workaround incorrect use of unsigned color constants by the IDE form editor.
[COMPILER]
* NEW: Workaround incorrect use of unsigned color constants by the IDE form editor.
2022-12-10 20:44:10 +01:00
Benoît Minisini
53cd261647 Fix jump optimization again.
[COMPILER]
* BUG: Fix jump optimization again.
2022-12-10 20:36:49 +01:00
Benoît Minisini
bab0f763c5 Do not run jump optimization on ON GOTO / ON GOSUB, it breaks them.
[COMPILER]
* BUG: Do not run jump optimization on ON GOTO / ON GOSUB, it breaks them.
2022-12-10 19:39:17 +01:00
Benoît Minisini
74bb0fde23 Form editor: Fix reading and writing of color properties so that they do not trigger an overflow. Forms must be updated and recompiled!
[DEVELOPMENT ENVIRONMENT]
* BUG: Form editor: Fix reading and writing of color properties so that they do not trigger an overflow. Forms must be updated and recompiled!
2022-12-10 18:37:17 +01:00
Benoît Minisini
529e382122 Prevent a possible infinite recursion when initializing window menu bar.
[GB.QT4]
* BUG: Prevent a possible infinite recursion when initializing window menu bar.
* BUG: Fix the use of a local variable out of scope.

[GB.QT5]
* BUG: Prevent a possible infinite recursion when initializing window menu bar.
* BUG: Fix the use of a local variable out of scope.
2022-12-10 18:08:39 +01:00
Benoît Minisini
9e6d896a86 GridView: Fix integer overflow in cell span management.
[GB.GUI.BASE]
* BUG: GridView: Fix integer overflow in cell span management.
2022-12-10 17:51:53 +01:00
Benoît Minisini
e69cdc7bba Merge branch 'master' of gitlab.com:gambas/gambas 2022-12-10 12:55:44 +01:00
Benoît Minisini
c10fe0a6c3 Optimization of conditional jumps based on values known to be Boolean.
[COMPILER]
* OPT: Optimization of conditional jumps based on values known to be Boolean.
* BUG: Jump optimization is effective when debugging information is generated.
* BUG: The '/' operator correctly returns a Float if its arguments are Float.

[INTERPRETER]
* OPT: Optimization of conditional jumps based on values known to be Boolean.

[GB.JIT]
* NEW: Support for conditional jumps optimization.
2022-12-10 12:54:42 +01:00
gambix
d967daea86 Some tests 2022-12-10 11:21:54 +01:00
Benoît Minisini
b0dac7712b Get rid of deprecated 'GValueArray' datatype. Add support for 'GstValueArray' datatype.
[GB.MEDIA]
* BUG: Get rid of deprecated 'GValueArray' datatype.
* NEW: Add support for 'GstValueArray' datatype.
2022-12-10 01:43:39 +01:00
Benoît Minisini
0acbd1979c Ignore jumps to the end of the function when optimizing jumps.
[COMPILER]
* BUG: Ignore jumps to the end of the function when optimizing jumps.
2022-12-10 00:22:17 +01:00
Benoît Minisini
e495a05249 The Image constructor now fills the image data with 'Color.Transparent' color by default.
[GB.IMAGE]
* NEW: The Image constructor now fills the image data with 'Color.Transparent' color by default. To get uninitialized image data, you must specified 'Color.Default' as fill color.
2022-12-10 00:06:50 +01:00
Benoît Minisini
e082046379 Suppression de deux étiquettes inutiles dans la boucle de l'interpréteur.
[INTERPRETER]
* BUG: Suppression de deux étiquettes inutiles dans la boucle de l'interpréteur.
2022-12-09 20:05:39 +01:00
Benoît Minisini
e34a833bd7 Merge branch 'master' of gitlab.com:gambas/gambas 2022-12-09 18:18:49 +01:00
Benoît Minisini
2eeae0aea6 Make window activation specific to the GUI platform, in the hope of finding a workaround to the fact that window activation request is impossible in Wayland.
[GB.QT5]
* BUG: Make window activation specific to the GUI platform, in the hope of finding a workaround to the fact that window activation request is impossible in Wayland.
2022-12-09 18:16:01 +01:00
gambix
d8159c8289 Add a new hidden function to map to add generic _MapLayer
[GB.MAP]
* NEW: Add a new hidden function to map to add generic _MapLayer. This will allow to easily create
  information layer or other.
* NEW: Now _MapLayer have hidden functions for mouse events (_MouseMove,_MouseUp..._Enter, etc)
2022-12-09 16:41:13 +01:00
Benoît Minisini
5d0c54bca2 Some fixes in overflow detection.
[INTERPRETER]
* BUG: Fix overflow detection in conversion functions.
* BUG: Check for overflow detection only if the '__has_builtin' pseudo-macro is implemented by the compiler.
2022-12-09 16:07:12 +01:00
Benoît Minisini
2e05605938 Merge branch 'master' of gitlab.com:gambas/gambas 2022-12-09 15:04:03 +01:00
Benoît Minisini
af950247c4 Implement overflow detection in JIT compiler. Some jump optimizations in the compiler and the interpreter.
[COMPILER]
* OPT: Optimize jumps pointing at a JUMP instruction.

[INTERPRETER]
* OPT: Avoid conversion to boolean when possible in conditional jumps.

[GB.JIT]
* NEW: Implement overflow detection in integer arithmetic operations. The UNSAFE keyword disable them to get full speed.
2022-12-09 15:00:55 +01:00
Benoît Minisini
6e95b06a36 Mark the component as "unfinished" instead of "unstable".
[GB.POPPLER]
* NEW: Mark the component as "unfinished" instead of "unstable".
2022-12-09 14:12:59 +01:00
gambix
6eca2376bb _ShapeItem have now a name more accurate _MapShapeItem and is exported
[GB.MAP]
* NEW: _ShapeItem have now a name more accurate _MapShapeItem and is exported.
2022-12-09 09:57:17 +01:00