Commit graph

5607 commits

Author SHA1 Message Date
Benoît Minisini
83f7f6677e [INTERPRETER]
* NEW: Stream.IsTerm is a new property that returns if a stream is a terminal.
* NEW: Stream.Term.Resize() is a new method that resizes a terminal.


git-svn-id: svn://localhost/gambas/trunk@7669 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-26 13:09:20 +00:00
Benoît Minisini
159f039e02 [GB.FORM.TERMINAL]
* NEW: Support for XTERM "set window title" sequence.
* NEW: Rename "Underline" attribute as "Underscore".
* NEW: Support for "set attribute" escape sequences.
* BUG: TerminalView: Fix selection behaviour.


git-svn-id: svn://localhost/gambas/trunk@7668 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-26 11:10:21 +00:00
Benoît Minisini
0e52f6d63b [GB.FORM.TERMINAL]
* NEW: A icon for TerminalView.
* NEW: Initial VT100 terminal filter.
* NEW: TerminalView: Exec() and Shell() are two new methods to run a process inside the virtual terminal. Process input management is not implemented, and process output support is rudimentary.


git-svn-id: svn://localhost/gambas/trunk@7667 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-26 10:08:12 +00:00
Benoît Minisini
5d0151fe32 [GB.FORM.TERMINAL]
* NEW: TerminalView: Automatic support of control characters. Only the ESC sequences have to be implemented in the terminal emulator.


git-svn-id: svn://localhost/gambas/trunk@7666 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-25 15:25:43 +00:00
Benoît Minisini
4a834861f0 [GB.QT4]
* BUG: Prevent Container.FindChild() from returning the container it applies to.

[GB.QT5]
* BUG: Prevent Container.FindChild() from returning the container it applies to.


git-svn-id: svn://localhost/gambas/trunk@7665 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-25 14:48:17 +00:00
Benoît Minisini
625888d44d [INTERPRETER]
* NEW: Timer: The constructor now takes the delay as optional parameter. And if that delay is specified, the timer is automatically started.

[GB.FORM.TERMINAL]
* NEW: TerminalView: internal control that only deals with displaying the terminal contents.


git-svn-id: svn://localhost/gambas/trunk@7664 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-25 13:06:09 +00:00
Benoît Minisini
31625057b2 [INTERPRETER]
* BUG: Fix declaration of CLASS_DESC_SYMBOL structure. The JIT compiler does not crash anymore.


git-svn-id: svn://localhost/gambas/trunk@7663 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-23 23:31:42 +00:00
Benoît Minisini
f42ffa0be6 [EXAMPLES]
* BUG: SmallWiki: Fix a deprecated link.

[GB.MARKDOWN]
* BUG: Fix generation of "[[ ... ]]" sections.

[GB.WEB.FORM]
* NEW: Add some help comments.


git-svn-id: svn://localhost/gambas/trunk@7662 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-23 21:37:35 +00:00
Benoît Minisini
beff47b6d8 [WIKI]
* NEW: Automatic conversion of old example syntax to the use of new highlighted code sections.


git-svn-id: svn://localhost/gambas/trunk@7661 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-23 21:35:03 +00:00
Benoît Minisini
d81c62050b [DEVELOPMENT ENVIRONMENT]
* BUG: Fix translation of compiler error messages.


git-svn-id: svn://localhost/gambas/trunk@7660 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-23 21:31:53 +00:00
Benoît Minisini
0761703d03 [GB.QT5]
* BUG: Fix a possible infinite loop in r7657 fix.


git-svn-id: svn://localhost/gambas/trunk@7659 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-23 21:30:04 +00:00
Benoît Minisini
bd22007651 [INTERPRETER]
* BUG: Ignore EINPROGRESS and EAGAIN error codes when closing a file descriptor.


git-svn-id: svn://localhost/gambas/trunk@7658 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-23 02:58:13 +00:00
Benoît Minisini
82a4b1f919 [GB.QT5]
* BUG: Leave events are now correctly sent after a popup menu has been closed. Workaround a QT5 bug.


git-svn-id: svn://localhost/gambas/trunk@7657 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-22 18:46:05 +00:00
Fabien Bodard
fe098f5964 [GB.FORM.TERMINAL]
* NEW: Rewriting the componant base. Initial commit.



git-svn-id: svn://localhost/gambas/trunk@7656 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-22 12:23:18 +00:00
Benoît Minisini
ba3fe3f1dd [GB.DB.MYSQL]
* BUG: Remove useless "set autocommit" at each transaction. Why that?


git-svn-id: svn://localhost/gambas/trunk@7655 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-21 14:35:41 +00:00
Fabien Bodard
7233dba468 [DEVELOPMENT ENVIRONMENT]
* NEW: Add an indentation level for .Begin/.End functions in the automatic code formater.


git-svn-id: svn://localhost/gambas/trunk@7654 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-21 08:22:40 +00:00
Benoît Minisini
3fbcee5fa6 [WIKI]
* BUG: A few style sheet fixes.
* NEW: Automatically convert examples to the "[[ code gambas ... ]] [[ result ... ]]" sequence.

[GB.EVAL.HIGHLIGHT]
* NEW: TextHighlighter.ToHTML() does not draw procedure separations anymore.

[GB.MARKDOWN]
* BUG: Fix simple table "[[ ... ]]" management.


git-svn-id: svn://localhost/gambas/trunk@7653 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-21 00:26:12 +00:00
Benoît Minisini
2c4aa9d851 [WIKI]
* NEW: Support for "[[ code ... ]]" and "[[ result ... ]]" sections.

[GB.EVAL.HIGHLIGHT]
* BUG: Remove dependencies on GUI components.

[GB.MARKDOWN]
* BUG: Fix support of "[[ code ... ]]" section.


git-svn-id: svn://localhost/gambas/trunk@7652 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-20 23:31:10 +00:00
Benoît Minisini
ab72d33833 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix a possible crash when starting a program without arguments.
* BUG: Fix compression of CSS files.

[GB.EVAL.HIGHLIGHT]
* NEW: CSS highlighter: Support for @media directive.
* NEW: Don't use the Color class.

[GB.FORM.EDITOR]
* BUG: TextEditor: Limits of collapsed procedures are correctly drawn now.

[GB.MARKDOWN]
* NEW: Support for code highlighting through the "[[ code <language> ... ]]" block.
* NEW: Markdown.Process() is new method that allows to process the contents of a specific "[[ ... ]]" block.

[GB.WEB.FORM]
* NEW: DateBox: Put that control in the "Chooser" group with the DateChooser.


git-svn-id: svn://localhost/gambas/trunk@7651 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-20 22:39:06 +00:00
Benoît Minisini
1db9d8df47 [INTERPRETER]
* NEW: Add a symbol table optimization that is disabled because it's not worth it.
* OPT: Force inlining of functions in symbol tables routines.
* OPT: A little optimization on routine string argument extraction.


git-svn-id: svn://localhost/gambas/trunk@7650 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-20 18:29:12 +00:00
Benoît Minisini
407d650817 [GB.FORM.EDITOR]
* NEW: TextEditor: Do not draw ending spaces on top of the indentation vertical lines.
* BUG: TextEditor: Correctly draw the first procedure limit.


git-svn-id: svn://localhost/gambas/trunk@7649 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-20 01:48:15 +00:00
Benoît Minisini
1673061eee [GB.DB.POSTGRESQL]
* BUG: Fix a warning message.


git-svn-id: svn://localhost/gambas/trunk@7648 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-20 01:28:16 +00:00
Benoît Minisini
4c3370908c [COMPILER]
* NEW: Work on internal expression datatype analyze has continued.
* OPT: Compiling syntax trees is faster now.

[INTERPRETER]
* OPT: Analyzing objects a method or a property applies to is faster now.
* NEW: Remove an unused method in table symbol implementation.


git-svn-id: svn://localhost/gambas/trunk@7647 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-20 01:27:31 +00:00
Benoît Minisini
bc3224d896 [GB.FORM.EDITOR]
* NEW: TextEditor: Don't use bold text for displaying cursor information.

[GB.GUI.BASE]
* BUG: ScrollArea: Fix some number roundings in EnsureVisible() method.

[GB.WEB]
* OPT: Session: Use buffered i/o when loading or saving session.

[GB.WEB.FORM]
* NEW: DateChooser is a new control that implements a date chooser.
* NEW: DateBox is a new control that implements a date box with a popup calendar.
* NEW: WebForm.ShowPopup() is a new method that allows to use a form as a popup.
* BUG: WebComboBox: Fix design.
* NEW: WebControl: Support for properties storing a WebControl.
* NEW: WebExpander: Use standard arrow.
* NEW: Internal support for web controls that need custom style sheets or javascript libraries.
* NEW: WebForm: Close is new event that is raised when a form is closed.
* NEW: WebForm: Popup is a new property that tells if the form is currently used as a popup.
* NEW: WebForm: PopupParent is a new property that returns the control using that form as a popup.


git-svn-id: svn://localhost/gambas/trunk@7646 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-20 01:23:01 +00:00
Fabien Bodard
a6dadb5a52 [DEVELOPMENT ENVIRONMENT]
* BUG: Forgot to modify the Option Dialog themes list.


git-svn-id: svn://localhost/gambas/trunk@7645 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-19 08:05:39 +00:00
Fabien Bodard
f90f89abba [DEVELOPMENT ENVIRONMENT]
* NEW: Add a new tea theme for the editor 'zen'.


git-svn-id: svn://localhost/gambas/trunk@7644 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-19 08:01:26 +00:00
Benoît Minisini
2cdc040066 [GB.QT5]
* BUG: Remove Mouse.ScreenX and Mouse.ScreenY optimization based on the contents of a mouse event. Apparently it works with QT4 but not with QT5.


git-svn-id: svn://localhost/gambas/trunk@7643 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-19 00:41:01 +00:00
Benoît Minisini
6e894e0df3 [DEVELOPMENT ENVIRONMENT]
* BUG: Editor: Completion popup now opens at the right position on wrapped lines.
* NEW: Text editor: Show compression message inside the editor.


git-svn-id: svn://localhost/gambas/trunk@7642 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-19 00:00:15 +00:00
Benoît Minisini
cf3ac47267 [GB.FORM.EDITOR]
* BUG: Never jump to the beginning of the line when clicking on the text.

git-svn-id: svn://localhost/gambas/trunk@7641 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-17 02:14:20 +00:00
Benoît Minisini
e83b8c2db8 [GB.FORM.EDITOR]
* BUG: TextEditor[].Limit correctly returns the real limit state, not the visible one.

git-svn-id: svn://localhost/gambas/trunk@7640 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-16 16:12:42 +00:00
Benoît Minisini
e258598187 [GB.FORM.EDITOR]
* NEW: TextEditor: Nicer indent vertical lines.


git-svn-id: svn://localhost/gambas/trunk@7639 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-16 03:00:35 +00:00
Benoît Minisini
c6f5e75c0e [GB.QT4]
* BUG: Paint.Dash correctly accepts an array with one single element.

[GB.QT5]
* BUG: Paint.Dash correctly accepts an array with one single element.


git-svn-id: svn://localhost/gambas/trunk@7638 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-16 02:59:52 +00:00
Tobias Boege
c866e8a8ee [GB.XML]
* BUG: Fix copy & paste error (?) which creates CDATA nodes as comment nodes.



git-svn-id: svn://localhost/gambas/trunk@7637 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-15 17:16:58 +00:00
Benoît Minisini
e9f03fe7de [DEVELOPMENT ENVIRONMENT]
* NEW: Option dialog: new option to toggle indent drawing in editors.


git-svn-id: svn://localhost/gambas/trunk@7636 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-15 14:56:45 +00:00
Benoît Minisini
66c1e5c69a [GB.EVAL.HIGHLIGHT]
* NEW: TextHighlighter: Comment is a new flag that tells if a ln highlighted line is only a comment.

[GB.FORM.EDITOR]
* NEW: TextEditor: Draw the procedure separator before its previous comments.
* NEW: TextEditor: ShowIndent is a new property that make the editor draw a thin vertical line to emphasize corresponding indentations.


git-svn-id: svn://localhost/gambas/trunk@7635 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-15 14:55:35 +00:00
Tobias Boege
c3d8fb5e7e [GB.MARKDOWN]
* NEW: Markdown.Reinterpret is a new property to say if the next return of Command() should be reinterpreted as markdown or not. It is True by default for backwards compatibility.



git-svn-id: svn://localhost/gambas/trunk@7634 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-14 12:36:03 +00:00
Benoît Minisini
a2752efe91 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix a bug in the CReportBrush class detected at compilation time now.


git-svn-id: svn://localhost/gambas/trunk@7633 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-14 01:41:27 +00:00
Benoît Minisini
5b75185c3a [COMPILER]
* OPT: Compile is now compiled with -O3 optimizations.
* OPT: Reserved words built-in symbol table is faster now.
* NEW: Initial support for expression datatype analyze. Some new errors are raised at compilation time, like using a string with the AND operator for example. The datatype analyzer is rougher than the IDE one because it is local to the compile class.
* OPT: Symbol table search is a bit faster.


git-svn-id: svn://localhost/gambas/trunk@7632 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-14 01:40:50 +00:00
Benoît Minisini
78ea8c345b [DEVELOPMENT ENVIRONMENT]
* BUG: Code editor: Fix a very old bug in automatic completion where hitting backspace sometimes deleted two characters.


git-svn-id: svn://localhost/gambas/trunk@7631 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-12 13:19:36 +00:00
Benoît Minisini
4910d9f20b [DEVELOPMENT ENVIRONMENT]
* NEW: Project property dialog: Better argument list tab.


git-svn-id: svn://localhost/gambas/trunk@7630 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-12 12:02:19 +00:00
Benoît Minisini
f458fd15be [GB.FORM]
* BUG: FileChooser: ShowHidden property is correctly restored in all cases now.
* NEW: ListEditor: Editor is a new property that returns the underlying text editor.
* NEW: ListEditor: Add keyboard arrows shortcuts to move across the list.
* NEW: ListEditor: The text editor is now the proxy of the control.


git-svn-id: svn://localhost/gambas/trunk@7629 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-12 12:01:25 +00:00
Benoît Minisini
55cd241ffe [DEVELOPMENT ENVIRONMENT]
* NEW: Debugger: When displaying the contents of a collection, the Key property is saved and restored so that the debugged program is not altered.


git-svn-id: svn://localhost/gambas/trunk@7628 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-11 23:46:22 +00:00
Benoît Minisini
214ce4f43e [INTERPRETER]
* BUG: Collection methods now always update the Key property, being called normally or from the debugger.
* BUG: The debugger now sends the current key when enumerating collection keys.


git-svn-id: svn://localhost/gambas/trunk@7627 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-11 23:44:26 +00:00
Fabien Bodard
0944141a51 [GB.REPORT2]
* BUG: ReportImage and ReportSvgImage was not able to use Autoresize.
* NEW: Begin to implement ReportGridView. Not available yet.



git-svn-id: svn://localhost/gambas/trunk@7626 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-08 20:41:17 +00:00
Benoît Minisini
cd9324c68e [INTERPRETER]
* BUG: Correctly detect error when closing a process stream.
* BUG: Ignore EBADF errors when closing a stream. It means that the underlying file descriptor has already been closed.


git-svn-id: svn://localhost/gambas/trunk@7624 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-08 20:24:24 +00:00
Benoît Minisini
a3ada1b09d [INTERPRETER]
* BUG: Undo r7620 change.


git-svn-id: svn://localhost/gambas/trunk@7623 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-08 20:05:45 +00:00
Benoît Minisini
6cee32287c [INTERPRETER]
* BUG: Now raise an error when a stream cannot be closed, instead of silently ignoring it.


git-svn-id: svn://localhost/gambas/trunk@7622 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-08 20:04:55 +00:00
Benoît Minisini
222a77cf16 [INTERPRETER]
* BUG: Close a buffered stream even if fclose() fails. Temporary fix.


git-svn-id: svn://localhost/gambas/trunk@7620 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-08 18:46:40 +00:00
Henrique
a0441159eb [DEVELOPMENT ENVIRONMENT]
* NEW: Updated the Brazilian Portuguese translations


git-svn-id: svn://localhost/gambas/trunk@7619 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-06 19:18:18 +00:00
Benoît Minisini
80938b850d [GB.DB.ODBC]
* NEW: Better way to get record count, by zxWarce.
* NEW: Display the error returned by ODBC, by zxWarce.


git-svn-id: svn://localhost/gambas/trunk@7618 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-02 20:39:05 +00:00