Commit graph

2256 commits

Author SHA1 Message Date
gambas
e3ca5b2e12 FileView: Invalidate directory cache every five second, or if an explicit reload is triggered.
[GB.FORM]
* NEW: FileView: A directory cache is now automatically invalidated every five second.
* NEW: FileView: ReloadAll() now invalidates the directory cache.
2018-07-21 09:27:37 +02:00
gambas
150f488f8c Fix renaming process of DirView and FileView controls.
[GB.FORM]
* BUG: DirView: Errors occuring during a renaming now display the balloon message on the renaming item.
* BUG: DirView: Forbid void directory names.
* BUG: FileView: Canceling an item rename now works as expected in icon mode, and correctly refreshes the view.
* BUG: FileView: Forbid void file names.
2018-07-17 23:11:43 +02:00
gambas
6e935d2efd IconView: Canceling the Rename event keeps the editor opened.
[GB.GUI.BASE]
* BUG: IconView: Hitting ENTER while renaming an item does not insert a newline in the item text.
* NEW: IconView: Canceling the Rename event keeps the editor opened.
2018-07-17 23:09:11 +02:00
gambas
8c34e888b5 TreeView: Canceling the Rename event keeps the editor opened.
[GB.GUI.BASE]
* NEW: TreeView: Canceling the Rename event keeps the editor opened.
2018-07-17 22:29:04 +02:00
gambas
9abaadc360 Some fixes in FileView and FileProperties.
[GB.FORM]
* BUG: FileView: Setting the Current property does nothing if the new value is the same as the old one.
* BUG: FileProperties: Correctly abort the directory size background task if the Path property is set.
* BUG: FileProperties: Don't fill the error tab if the directory size background task is aborted.
2018-07-15 23:10:41 +02:00
Tobias Boege
789ce931f7 IconView: always raise Click event when clicked
[GB.GUI.BASE]
* BUG: IconView: always raise Click event when clicked and not only when selection changes

See Gambas Bug #1358
2018-06-28 19:07:31 +02:00
gambas
6a23fa861a TreeView: Don't mess up multiple selection when automatic sorting is enabled.
[GB.GUI.BASE]
* BUG: TreeView: Don't mess up multiple selection when automatic sorting is enabled.
2018-06-26 18:50:38 +02:00
gambas
0c43cfced0 Add Session.Path property, and fix the write of session values for sqlite sessions.
[GB.WEB]
* BUG: Fix the write of session values for sqlite sessions.
* NEW: Session.Path is a new property that returns the path of the file where the session is stored.
2018-06-22 00:47:48 +02:00
gambas
5e2a99a0a0 Session: Exist() method now works correctly for sessions stored in sqlite databases.
[GB.WEB]
* BUG: Session: Exist() method now works correctly for sessions stored in sqlite databases.
2018-06-19 00:30:29 +02:00
gambas
b8198005db [BENCHMARKS]
* OPT: Little optimization in nbody benchmark.

[GB.JIT]
* BUG: Fix translation of loops.
* BUG: Fix label generation.
2018-06-13 16:55:25 +02:00
gambas
83eed9707d Merge branch 'jit-with-c' 2018-06-13 00:45:19 +02:00
gambas
6b8afd0617 [COMPILER]
* BUG: Fix Left, Mid and Right subroutines metadata.

[GB.JIT]
* BUG: Fix function arguments management.
* BUG: Functions returning objects work correctly now.
* BUG: Fix internal control variables management.
2018-06-13 00:38:18 +02:00
gambas
c671adfd6b Work continues on new JIT system.
[INTERPRETER]
* OPT: String searching (Instr, RInstr and Replace) has been made about 4x faster by searching the first occurence with memchr() and memrchr().

[GB.FORM.TERMINAL]
* BUG: Fix warning messages.

[GB.JIT]
* BUG: Fix byte, short and boolean pushing and popping routines.
* BUG: Fix string values referencing.
* BUG: Fix optional argument management.
* NEW: Optimization of bits management subroutines.

[GB.QT4]
* BUG: Delay hooks initialization, because now socket notifiers must not be used before creating the event loop.

[GB.QT5]
* BUG: Delay hooks initialization, because now socket notifiers must not be used before creating the event loop.
2018-06-11 18:56:39 +02:00
gambas
4e50dec11d Work continues on new JIT system. Translation is now done at runtime.
[INTERPRETER]
* OPT: String routines are now compiled with -O3.
* NEW: Don't display JIT debugging message unless GB_JIT_DEBUG is set to something different from zero.
* NEW: String whose length is greater than 256 now have a growth step of 256 bytes instead of 16.

[GB.JIT]
* NEW: Do many global optimizations as now the class metadata is fully available.
* NEW: Support for optional argument. Still buggy at the moment.
2018-06-09 22:42:35 +02:00
gambas
23be942b6a Work continues on the new JIT system.
[BENCHMARKS]
* NEW: Little meaningless changes.

[INTERPRETER]
* NEW: JIT: Support for FOR EACH loops.
* BUG: JIT: Handle function values that are put on stack before calling them.

[COMPILER]
* NEW: JIT: Optimization of mathematic functions.
* NEW: JIT: Support for FOR EACH loops.
* NEW: JIT: Remove successive POP_x() / PUSH_x().
* NEW: JIT: Optimization of DIV and MOD.
* NEW: JIT: Support of internal control local variables used by SELECT and FOR EACH.
* NEW: JIT: Support for SWAP.

[GB.JIT]
* NEW: Optimization of mathematic functions.
* NEW: Variants management.
* NEW: All conversions are handled now.
* NEW: FOR EACH loops are implemented.
2018-06-05 11:43:39 +02:00
gambas
23081e47c6 Work continues on new JIT system. The "Fractal" example runs!
[INTERPRETER]
* NEW: Implement return value of JIT methods.
* NEW: Support for calling '.' operator from a JIT method.

[COMPILER]
* BUG: JIT: Fix detection of native arrays.
* BUG: JIT: Delete translated file if a class has no fast method anymore.
* BUG: JIT: Prefix JIT method with "jit_" to avoid possible conflicts.
* BUG: JIT: Fix variable initialization.
* NEW: JIT: Complete datatype support.
* NEW: JIT: Support for SWAP.
* NEW: JIT: Support for array operators.
* BUG: JIT: Fix arithmetic operators.
* NEW: JIT: Implement ME and "." operator.
* NEW: JIT: Complete GOSUB / RETURN support.
* NEW: JIT: Support for DIV and MOD operators. Not optimized yet.

[ARCHIVER]
* NEW: Put JIT translation in the archive.

[GB.JIT]
* NEW: Complete datatype support. Variant is not supported yet.
* NEW: Complete GOSUB / RETURN support.
* NEW: Support for ME and '.' operator.
2018-06-02 17:59:47 +02:00
gambas
714b77a10d Work on new JIT system continues.
[CONFIGURATION]
* NEW: Add '.jit' directory to '.gitignore'.

[COMPILER]
* NEW: New '-j' option that disables just in time compilation.
* NEW: JIT: Support for private functions calls.
* NEW: JIT: Support for native arrays accessors.
* BUG: JIT: Fix loop support.
* NEW: JIT: Support for GOSUB.

[GB.JIT]
* NEW: GB_JIT_DEBUG is an environment variable that defines if JIT compilation debugging messages are printed.
* NEW: GB_JIT_CFLAGS is an environment variable that defines the JIT compilation flags. The default is "-O3".
* NEW: Support for native arrays accessors.
2018-06-01 03:50:42 +02:00
gambas
5219fc48d1 Work continues on new JIT system.
[COMPILER]
* BUG: JIT: Fix local variable referencing.
* NEW: JIT: Implement NEW operator and array accessors.

[INTERPRETER]
* NEW: Support for JIT NEW operator and array accessors.

[GB.JIT]
* NEW: Support for object datatypes.
* NEW: Implement NEW operator and array accessors.
2018-05-29 23:25:57 +02:00
gambas
83a2452acb Continue working on new JIT system.
[COMPILER]
* NEW: JIT: Support for FOR...TO...NEXT loops.
* NEW: JIT: Support for Len(), Left$(), Mid$(), and Right$().
* NEW: JIT: Subroutines return values are now hadled correctly.

[GB.JIT]
* NEW: Compile JIT code with -O3.
2018-05-29 03:43:23 +02:00
gambas
a2b64b190a Work on new JIT system continues.
[COMPILER]
* NEW: Internal initialization functions now can be JIT translated.
* NEW: Support of subroutine calling completed. Interpreter subroutines are called if there is no optimization implemented in the JIT translation.

[INTERPRETER]
* NEW: Remove old JIT stuff.

[GB.JIT]
* NEW: Use 'gambas.h' and 'gb.jit.h' to compile translated code.
2018-05-28 03:18:44 +02:00
gambas
540cda4531 C/C++ syntax highlighting: A backslash at the end of the line continues preprocessor definitions.
[GB.EVAL.HIGHLIGHT]
* BUG: C/C++ syntax highlighting: A backslash at the end of the line continues preprocessor definitions.
* BUG: Fix a warning.
2018-05-28 03:16:53 +02:00
gambas
d797a545b6 [COMPILER]
* NEW: Work on JIT continues...
* NEW: Better panic errors.

[INTERPRETER]
* NEW: Remove the old JIT stuff.
* NEW: Calls gb.jit at runtime if needed. If a fast function has no jit implementation, the bytecode version is used.
* NEW: Start defining the JIT interface needed by the JIT functions.
* NEW: The common static character buffer is now twice the size of the maximum symbol length, to avoid possible overflows.

[GB.JIT]
* NEW: Compilation starts to work.
* NEW: Debugging messages.
2018-05-26 16:50:00 +02:00
gambas
3c8c722989 New component for compiling JIT code at runtime.
[GB.JIT]
* NEW: New component for compiling JIT code at runtime.
2018-05-25 21:03:48 +02:00
gambas
502b403728 TextEditor: Shortcuts work again.
[GB.FORM.EDITOR]
* BUG: TextEditor: Shortcuts work again.
2018-05-24 17:41:49 +02:00
Benoît Minisini
df6bf93820 Merge branch 'master' into 'master'
This commit contains bug fix for the Chart component.

See merge request gambas/gambas!18
2018-05-13 21:20:21 +00:00
gambas
85376261ea DateBox: The time popup works correctly again.
[GB.FORM]
* BUG: DateBox: The time popup works correctly again.
2018-05-07 22:20:01 +02:00
Davidmue
f61ff5e8b6 This commit contains bug fix for the Chart component.
[GB.CHART]
* BUG: Fixed a bug in Chart class.
  A more complex calculated id is now used. This let us use more than one chart.
* BUG: Fixed a bug in _CSerie class.
  A call to an unexisting property Labels has been changed.
2018-05-05 11:02:05 +02:00
gambas
7239cbe35e SmtpClient: Fix the sent date header.
[GB.NET.SMTP]
* BUG: SmtpClient: Fix the sent date header.
2018-05-02 17:05:16 +02:00
gambas
20f650aa59 Shortcut configuration dialog: Use the Shortcut class and display action icons correctly.
[GB.FORM.MDI]
* NEW: Shortcut configuration dialog: Use the Shortcut class.
* BUG: Shortcut configuration dialog: Display action icons correctly.
2018-04-28 15:54:33 +02:00
gambas
93fe4c8ae2 Shortcut: Write modifier keys with the first letter capitalized only.
[GB.GUI.BASE]
* BUG: Shortcut: Write modifier keys with the first letter capitalized only.
2018-04-28 15:53:17 +02:00
gambas
2b3cbd9217 TerminalView: Fix "EraseStartOfLine" VT-100 command and remove "Erase screen" optimization.
[GB.FORM.TERMINAL]
* BUG: TerminalView: Remove "Erase screen" optimization.
* BUG: TerminalView: Fix "EraseStartOfLine" VT-100 command.
2018-04-21 20:38:57 +02:00
gambas
9b52761613 DesktopFile: Properties should be correctly writable now.
[GB.DESKTOP]
* BUG: DesktopFile: Properties should be correctly writable now.
2018-04-21 15:31:09 +02:00
gambas
f0ad78cb1f Toolbar: Make the toolbar configuration dialog defaut size smaller.
[GB.FORM.MDI]
* NEW: Toolbar: Make the toolbar configuration dialog defaut size smaller.
2018-04-16 16:36:10 +02:00
gambas
aaeebacc2f DateBox: Clicking on a date automatically closes the date chooser popup.
[GB.FORM]
* NEW: DateChooser: Raise a Click event when a date is clicked in the inner calendar.
* NEW: DateBox: Clicking on a date automatically closes the date chooser popup.
2018-04-16 16:33:51 +02:00
gambas
cc96782eee Correctly quote field names everywhere and always display error balloons on the accurate cell.
[GB.DB.FORM]
* BUG: DataView: Always display the error balloon on the accurate cell.
* BUG: Correctly quote field names everywhere.
2018-04-16 16:31:44 +02:00
gambas
96a5230994 Redraw the 'database', 'security' and 'table' icons.
[GB.FORM.STOCK]
* NEW: Redraw the 'database', 'security' and 'table' icons.
2018-04-14 19:22:46 +02:00
gambas
c3d36e653b Toolbar: Correctly manage the disabled state of the item when dropping it on a toolbar.
[GB.FORM.MDI]
* BUG: Toolbar: Correctly manage the disabled state of the item when dropping it on a toolbar.
* NEW: Toolbar: Size is a new property that returns the toolbar icon size as a stock string size.
* NEW: Toolbar: Redesign the expander, separator and space items icons.
2018-04-14 18:44:09 +02:00
gambas
d4e2dfcce9 Paint.DrawRect() is a new method that draws a rectangle frame.
[GB.GUI.BASE]
* NEW: Paint.DrawRect() is a new method that draws a rectangle frame.
2018-04-14 18:43:25 +02:00
gambas
27af76092e Toolbar: Disabled controls are now correctly managed when the toolbar is in configuration mode.
[GB.FORM.MDI]
* BUG: Toolbar: Disabled controls are now correctly managed when the toolbar is in configuration mode.
2018-04-13 17:09:38 +02:00
gambas
de12caa1e7 Fix conversion between dates and their local string representation.
[INTERPRETER]
* BUG: Fix conversion between dates and their local string representation.
* OPT: Little optimization in conversion functions calls.

[GB.UTIL]
* BUG: Fix Date.ToUnixTime() and Date.FromUnixTime() according to the interpreter fix.
2018-04-09 18:58:11 +02:00
gambas
72384c0806 Fix Date.FromUnixTime() and Date.ToUnixTime().
[GB.UTIL]
* BUG: Fix Date.FromUnixTime() and Date.ToUnixTime().
2018-04-07 18:14:22 +02:00
gambas
3ffa6b48b7 Update control icons and remove unused variables.
[GB.DB.FORM]
* NEW: Update control icons.
* BUG: Remove unused variables.
2018-04-05 15:50:07 +02:00
gambas
9e6e254d31 Update "database" icons.
[GB.FORM.STOCK]
* NEW: Update "database" icons.
2018-04-05 15:49:32 +02:00
gambas
10013d286b [GB.DB.FORM]
* NEW: Add a project icon.

[GB.FORM.EDITOR]
* NEW: Add a project icon.

[GB.FORM.MDI]
* NEW: Add a project icon.
2018-04-05 14:01:37 +02:00
gambas
ceed651ab5 New stock icon "database".
[GB.FORM]
* NEW: New stock icon "database".

[GB.FORM.STOCK]
* NEW: New stock icon "database".
2018-04-05 13:57:44 +02:00
gambas
6136b8e840 TerminalView: Process output is sent to the terminal each 50 ms now, instead of 250 ms before.
[GB.FORM.TERMINAL]
* NEW: TerminalView: Process output is sent to the terminal each 50 ms now, instead of 250 ms before.
2018-04-05 00:45:16 +02:00
gambas
19609d3eb4 TextEditor: Fix a potential crash when some editor views are invalid.
[GB.FORM.EDITOR]
* BUG: TextEditor: Fix a potential crash when some editor views are invalid.
2018-04-05 00:39:03 +02:00
gambas
29b8b10c58 GridView: Use a lighter version of the SelectedBackground color instead of a light gray when the control loses the focus.
[GB.GUI.BASE]
* NEW: GridView: Use a lighter version of the SelectedBackground color instead of a light gray when the control loses the focus.
2018-04-03 23:45:43 +02:00
gambas
77392c328f DataSource: Better support of SQL queries in the Table property.
[GB.DB.FORM]
* BUG: DataSource: Better support of SQL queries in the Table property. Using a SQL query now make the DataSource automatically read-only.
2018-04-03 23:44:32 +02:00
gambas
b7ce316088 DataView: Long integers are now right aligned like other numbers.
[GB.DB.FORM]
* BUG: DataView: Long integers are now right aligned like other numbers.
2018-03-30 16:57:54 +02:00