Commit graph

9747 commits

Author SHA1 Message Date
gambas
af0509e372 Fix deletion of empty directories.
[CONFIGURATION]
* BUG: Fix deletion of empty directories.
2021-05-22 16:04:41 +02:00
gambas
5ee3fbbeee Add a tag property to the ServerSocket class, and save a few bytes in Socket and ServerSocket internal structures.
[GB.NET]
* NEW: ServerSocket: Add a tag property.
* OPT: Socket: Remove a duplicated 'path' field and save a few bytes in Socket structure.
* OPT: ServerSocket: Save a few bytes in the ServerSocket structure.
2021-05-22 00:07:40 +02:00
gambas
8fe3fdf811 Handle "EXPORT TO DEFAULT" syntax correctly.
[DEVELOPMENT ENVIRONMENT]
* BUG: Handle "EXPORT TO DEFAULT" syntax correctly.
* NEW: New flag icon for untranslated classes.
2021-05-21 17:10:00 +02:00
gambas
b9c006ec72 Namespace support continued.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update French translation.
* NEW: Support of new EXPORT syntaxes.
* NEW: When reading '.info' files, automatically replace local class names by exported names in signature.
* NEW: Project property dialog: add an option to define the project default namespace.
* NEW: Project property dialog: component requirements and exclusions are now displayed in two different columns.
2021-05-21 16:53:47 +02:00
gambas
3c64df79b7 Namespace support continued.
[COMPILER]
* NEW: Add the '-n' option that defines a default namespace for exported classes.
* BUG: The generation of '.info' file now uses the exported name of classes.
* NEW: 'EXPORT TO <Namespace>' exports the class as '<NameSpace>:<class name>'.
* NEW: 'EXPORT TO DEFAULT' now exports to the global namespace.
2021-05-21 16:48:59 +02:00
gambas
3438a07f23 Don't use 'rmdir --ignore-fail-on-non-empty' again.
[CONFIGURATION]
* NEW: Don't use 'rmdir --ignore-fail-on-non-empty' again.
2021-05-20 16:43:24 +02:00
Hasan Merkit
746c3c8312 Update Turkish Translation
"second" is not "saniye". Wrong translation changed.
Added more translations.
2021-05-18 11:46:20 +00:00
gambas
0e78042e07 Initial implementation of class namespaces.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update French translation.
* NEW: Support of the new '.list' file format.
* NEW: Support of the new EXPORT AS syntax.
* NEW: Update error messages.

[COMPILER]
* NEW: EXPORT AS is a new syntax for exporting a class with a specific name that can include a namespace.
* NEW: New header file to start sharing reader code with the 'gb.eval' component.
* NEW: Class names can include a colon. The part before the colon is assumed to be a namespace.

[INTERPRETER]
* NEW: Classes exported in a namespace are now declared both in the global symbol table and in the local symbol table of their component.
* NEW: Class names are now allocated inside the symbol tables, and not in the class objects anymore.

[GB.EVAL]
* NEW: Share some reader code with the compiler.
2021-05-18 02:12:33 +02:00
gambas
f7fdbeec38 Don't use 'rmdir --ignore-fail-on-non-empty', it's not supported on FreeBSD.
[CONFIGURATION]
* NEW: Don't use 'rmdir --ignore-fail-on-non-empty', it's not supported on FreeBSD.
2021-05-17 00:33:51 +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
883a209061 Clipboard: Always replace "text/plain" format by "text/plain;charset=utf-8" when pasting.
[GB.GTK]
* BUG: Clipboard: Always replace "text/plain" format by "text/plain;charset=utf-8" when pasting.

[GB.GTK3]
* BUG: Clipboard: Always replace "text/plain" format by "text/plain;charset=utf-8" when pasting.
2021-05-14 01:18:01 +02:00
gambas
71f6e291b9 Remove useless 'gb.gsl' from project components.
[GB.FORM.DIALOG]
* BUG: Remove useless 'gb.gsl' from project components.
2021-05-13 22:06:58 +02:00
gambas
c5a0e318d7 SpinBox: Take into account that the internal mouse timer may be cleared during its event handler.
[GB.GUI.BASE]
* BUG: SpinBox: Take into account that the internal mouse timer may be cleared during its event handler.
2021-05-13 00:03:50 +02:00
gambas
a22be6a4b4 Translation dialog: Do not use sorted ComboBoxes for choosing languages.
[DEVELOPMENT ENVIRONMENT]
* BUG: Translation dialog: Do not use sorted ComboBoxes for choosing languages, as Qt and GTK+ do not sort the same way, and it breaks the behaviour of the dialog when using GTK+3.
2021-05-12 23:36:45 +02:00
gambas
8ca02c7895 Translation dialog: The "copy all translations" menu works correctly now.
[DEVELOPMENT ENVIRONMENT]
* BUG: Translation dialog: The "copy all translations" menu works correctly now.
* BUG: Translation dialog: Use an explicit background for the untranslated string TextArea, because transparent background does not work with GTK+.
2021-05-12 21:56:36 +02:00
gambas
49e35a9192 FileView: Fix automatic extension behaviour.
[GB.FORM]
* BUG: FileView: Fix automatic extension behaviour.
2021-05-12 21:54:36 +02:00
gambas
61ff5b9091 Disable a setting flag deprecated in WebKitGTK >= 2.32.0.
[GB.GTK3.WEBVIEW]
* BUG: Disable a setting flag deprecated in WebKitGTK >= 2.32.0.
2021-05-12 14:22:04 +02:00
gambas
7d9188d6e7 Use the new compiler options flags.
[DEVELOPMENT ENVIRONMENT]
* BUG: Use the new compiler options flags.
2021-05-12 06:34:31 +02:00
gambas
28d5ee1c74 The workaround of Pango markup bug makes lines disappear with recent versions of Pango, so remove it.
[GB.GTK]
* BUG: The workaround of Pango markup bug makes lines disappear with recent versions of Pango, so remove it.
* BUG: Font.RichTextSize() now uses the same algorithm as Font.TextSize().

[GB.GTK3]
* BUG: The workaround of Pango markup bug makes lines disappear with recent versions of Pango, so remove it.
* BUG: Font.RichTextSize() now uses the same algorithm as Font.TextSize().
2021-05-11 21:32:07 +02:00
gambas
184e21e586 Prevent infinite redirection with "==>", and update IDE dependencies.
[WIKI]
* NEW: Update IDE dependencies.
* BUG: Prevent infinite redirection with "==>".
2021-05-11 03:55:25 +02:00
gambas
9f3319a8f2 Search dialog: Replace message boxes by a label, and fix title update.
[DEVELOPMENT ENVIRONMENT]
* NEW: Search dialog: Replace message boxes by a label.
* BUG: Search dialog: The title now correctly follows the current tab title.
2021-05-11 03:53:55 +02:00
gambas
6720d87855 Take focus into account when drawing TextArea border, and workaround many drawing warnings.
[GB.GTK3]
* BUG: TextArea: Take focus into account when drawing the border.
* BUG: Workaround many drawing warnings in Slider, CheckBox and RadioButton.
2021-05-11 03:48:24 +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
gambas
5216f8ee20 MenuButton: Custom drawing of shortcut underlines for GTK+.
[GB.FORM]
* BUG: MenuButton: Custom drawing of shortcut underlines for GTK+.
2021-05-11 03:46:22 +02:00
gambas
aaf05b7c96 Automatic container resize now takes the arrangement of the parent of the container into account.
[GB.GTK]
* BUG: Automatic container resize now takes the arrangement of the parent of the container into account.

[GB.GTK3]
* BUG: Automatic container resize now takes the arrangement of the parent of the container into account.

[GB.QT4]
* BUG: Automatic container resize now takes the arrangement of the parent of the container into account.

[GB.QT5]
* BUG: Automatic container resize now takes the arrangement of the parent of the container into account.
2021-05-08 20:52:31 +02:00
gambas
8d05d066d9 Update Turkish Translation.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update Turkish Translation.
2021-05-08 01:19:56 +02:00
gambas
2f92ae8ef9 Fix variables prefixes.
[DEVELOPMENT ENVIRONMENT]
* BUG: Fix variables prefixes.
2021-05-07 22:27:59 +02:00
gambas
da94bbabf3 'h' can be the prefix of any object datatype, even those which already has a prefix.
[COMPILER]
* NEW: 'h' can be the prefix of any object datatype, even those which already has a prefix.
2021-05-07 22:26:53 +02:00
gambas
0e7773b112 Project properties dialog: Add a button to enable variable prefix check compilation flag.
[DEVELOPMENT ENVIRONMENT]
* NEW: Project properties dialog: Add a button to enable variable prefix check compilation flag.
* BUG: Rename some variables whose datatype prefix was incorrect.
2021-05-07 20:03:59 +02:00
gambas
3732a5b778 Merge branch 'master' of gitlab.com:gambas/gambas 2021-05-07 20:01:43 +02:00
gambas
09da1e3248 Update 'README.md' file.
[CONFIGURATION]
* NEW: Update 'README.md' file.
2021-05-07 20:01:15 +02:00
gambas
fbff4a7ee9 New compilation option to check variable prefixes against their datatype, and print a warning if they do not match.
[COMPILER]
* NEW: Set compilation flags with the '-f' generic option now.
* NEW: New compilation option to check variable prefixes against their datatype, and print a warning if they do not match.
2021-05-07 19:20:30 +02:00
gambas
3b8b6b5315 Support for 'gb.gtk3.opengl' component.
[GB.GUI.OPENGL]
* NEW: Support for 'gb.gtk3.opengl' component.
2021-05-07 19:20:04 +02:00
Benoît Minisini
92a156b405 Merge branch 'bsteers4-master-patch-22023' into 'master'
Update TextEditorMode_Sh.class: remove quotes from braces

See merge request gambas/gambas!222
2021-05-06 14:44:57 +00:00
Benoît Minisini
616ddbcada Merge branch 'ScripterBugs' into 'master'
[Scripter]

See merge request gambas/gambas!225
2021-05-06 14:44:05 +00:00
gambas
bbee396304 Form editor: Do not crash if a user-defined control inheriting UserContainer requests a non-container in its 'DrawWith' property. Use a Panel or TabPanel instead.
[DEVELOPMENT ENVIRONMENT]
* NEW: Support for 'gb.gtk3.opengl' component.
* NEW: Update French translation.
* BUG: Form editor: Do not crash if a user-defined control inheriting UserContainer requests a non-container in its 'DrawWith' property. Use a Panel or TabPanel instead.
2021-05-03 00:21:11 +02:00
gambas
25edb08f68 The GTK+3 GLArea control now works, by forcing the legacy mode.
[GB.GTK3.OPENGL]
* BUG: GLArea: Force legacy mode (OpenGL < 3.2), unless the 'GDK_GL' environment variale is already defined.
* BUG: GlArea: The control can now take the focus.
2021-05-02 00:31:54 +02:00
Brian G
4869252479 [Scripter]
* BUG: Fix --convert-project   have badly used iif stmt cause single parameter version to fail
2021-05-01 08:41:22 -07:00
gambas
defee2d9c1 Merge branch 'master' of gitlab.com:gambas/gambas 2021-05-01 00:31:07 +02:00
gambas
ae3ff60eef Fix compilation on BSD.
[INTERPRETER]
* BUG: Fix compilation on BSD systems.

[GB.FORM]
* NEW: Search for icon themes in '/usr/local' for BSD systems.
2021-05-01 00:28:19 +02:00
Benoît Minisini
d3cbc60404 Update .gitlab-ci.yml file 2021-04-30 20:17:04 +00:00
gambas
e712f103d8 Merge branch 'master' of gitlab.com:gambas/gambas 2021-04-30 21:46:26 +02:00
gambas
42673b0b2c New component that provides GlArea OpenGL control for 'gb.gtk3'. Does not work yet.
[GB.GTK3.OPENGL]
* NEW: New component that provides GlArea OpenGL control for 'gb.gtk3'. Does not work yet.
2021-04-30 21:44:30 +02:00
gambas
f66b426c46 TextEditor: Remove 'tabledragger.js' test file because it is copyrighted.
[GB.FORM.EDITOR]
* BUG: TextEditor: Remove 'tabledragger.js' test file because it is copyrighted.
2021-04-30 21:43:53 +02:00
gambas
f970a37ed8 Fix a string memory leak in error management.
[INTERPRETER]
* BUG: Fix a string memory leak in error management.
2021-04-30 21:01:14 +02:00
gambas
10faf9da83 TerminalView: Reset() method does not fail anymore if the currently running process is dead.
[GB.FORM.TERMINAL]
* BUG: TerminalView: Reset() method does not fail anymore if the currently running process is dead.
2021-04-30 20:39:12 +02:00
Christof Thalhofer
6c79c186c4 gb.test new test suite 'Production'
[GB.TEST]
* NEW: Test suite 'Production' which is called by run.sh.

The test suite 'Production' excludes tests which are not reliable in all
circumstances.
2021-04-30 08:09:22 +02:00
Christof Thalhofer
2a3b152594 gambas3-selftest comment out Debug symbols
We should need no Debug any more.
2021-04-30 08:02:35 +02:00
gambas
8427844d2d Use SIGUSR1, now that SIGUSR2 is used by the Gambas debugger.
[GB.WEB.GUI]
* BUG: Use SIGUSR1, now that SIGUSR2 is used by the Gambas debugger.
2021-04-30 04:21:24 +02:00
gambas
b3cbe0e4a0 Abort JIT compilation before executing the QUIT instruction.
[INTERPRETER]
* BUG: Abort JIT compilation before executing the QUIT instruction.
2021-04-30 00:34:50 +02:00