Commit graph

7979 commits

Author SHA1 Message Date
gambas
22b4431314 Support for poppler 0.86, trial 4.
[GB.PDF]
* BUG: Support for poppler 0.86, trial 4.
2020-03-10 02:37:57 +01:00
gambas
4a39bd40fa Support for poppler 0.86, trial 3.
[GB.PDF]
* BUG: Support for poppler 0.86, trial 3.
2020-03-10 02:12:54 +01:00
gambas
7f549758f8 Support for poppler 0.86, trial 2.
[GB.PDF]
* BUG: Support for poppler 0.86, trial 2.
2020-03-10 01:45:55 +01:00
gambas
bdb5801687 Support for Poppler 0.86.
[GB.PDF]
* BUG: Support for Poppler 0.86.
2020-03-10 01:40:24 +01:00
gambas
b83205f539 Correctly handle unary minus operator.
[GB.JIT]
* BUG: Correctly handle unary minus operator.
2020-03-10 00:41:05 +01:00
gambas
1a08090954 Debug.Fifo is a new property that returns the name of the FIFO used for communication with the IDE.
[GB.DEBUG]
* NEW: Debug.Fifo is a new property that returns the name of the FIFO used for communication with the IDE.
2020-03-09 02:23:41 +01:00
gambas
7933e4ed4a Support for debugger.
[GB.WEB.FORM2]
* BUG: Use SIGUSR2 for synchronizing session process with CGI process, as SIGUSR1 is used by the debugger.
* NEW: Support for debugger.
* NEW: THe HTML body now uses sans-serif font by default.
2020-03-09 02:23:09 +01:00
Bastian Germann
f0cf49ada7 Compile with MySQL version >= 8.0.1
The my_bool type was removed with MySQL 8.0.1:
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html#mysqld-8-0-1-compiling

Replace my_bool with char which was the typedef in older MySQL versions
and still is in MariaDB.

[GB.DB.MYSQL]
* BUG: Compile with MySQL version >= 8.0.1.
2020-03-08 22:26:02 +01:00
gambas
30cde24a5a Version control dialog: Hide the modification tab if there is no changes.
[DEVELOPMENT ENVIRONMENT]
* NEW: Add 'gb.test.tap' to the list of components.
* NEW: Version control dialog: Hide the modification tab if there is no changes.
2020-03-07 23:23:16 +01:00
gambas
42a3da7510 Use version stored in VERSION file.
[GB.TEST.TAP]
* NEW: Use version stored in VERSION file.
2020-03-07 23:18:37 +01:00
gambas
2e02a644c2 Support for switching the main form.
[GB.WEB.FORM2]
* NEW: WebForm: Current is a new static property that return or set the main form.
* NEW: WebForm: Goto() is a new static method that switch the Current property.
* NEW: WebForm: Reload() is a new method that reload the form if it is the main one. Otherwise it calls Refresh().
2020-03-07 14:40:26 +01:00
gambas
550900d8f2 Fix compatibility with replaced Session class.
[GB.WEB.FORM2]
* NEW: Session: Fix compatibility with replaced Session class, with support for array accessor, Exist method and Prefix property.
* NEW: Session: Remove Dir property. Session.Path was done for that.
* BUG: Calling Session.Abandon now quits the session process immediately.
* BUG: WebTimer: The Refresh() method now does nothing.
2020-03-07 13:25:44 +01:00
gambas
bfc455070e Support for the Session class, and add WebForm.Current property to allow to change the application main form.
[GB.WEB.FORM2]
* NEW: DateBox: Open calendar popup on mouse down.
* NEW: Override the Session class, so that its methods that do not have any sense with 'gb.web.form2' do nothing anymore.
* NEW: WebForm.Current is a new property that allows to define the main form of the application that fills its HTML page.
* NEW: Session.Dir is a new property that returns the session directory. It is now '/tmp/gambas.<userid>/session/gb.web.form2'.
* NEW: Session.Timeout is taken into account by session processes.
* BUG: Window titles do not wrap anymore.
2020-03-07 01:30:44 +01:00
Benoît Minisini
d0650b8de2 Merge branch 'gb.test.tap' into 'master'
gb.test.tap

See merge request gambas/gambas!137
2020-03-06 01:10:48 +00:00
gambas
aa61963236 Version control: Fix command cancelling and command error dialog.
[DEVELOPMENT ENVIRONMENT]
* BUG: Version control: Correctly cancel commands when password dialogs are cancelled.
* BUG: Version control: The command error dialog now works correctly.
2020-03-06 00:30:29 +01:00
gambas
7cc8a1d41f Forgot the moved XTerm files.
[GB.FORM.TERMINAL]
* BUG: Forgot the moved XTerm files.
2020-03-06 00:27:59 +01:00
gambas
1e4b387a2a TerminalView: Terminal output processing is now delayed until the control is visible and has been arranged, so that the terminal width is accurate.
[GB.FORM.TERMINAL]
* BUG: TerminalView: Terminal output processing is now delayed until the control is visible and has been arranged, so that the terminal width is accurate.
* BUG: Move XTerm files to the hidden project directory.
* NEW: TerminalView: Automatic scrolling is disabled when the last terminal line is hidden.
* OPT: TerminalView: Automatic scrolling is not smooth anymore.
2020-03-06 00:26:53 +01:00
gambas
b7c933227c Date.ToISO8601() is a new function that converts a date to ISO-8601 format.
[GB.UTIL]
* NEW: Date.ToISO8601() is a new function that converts a date to ISO-8601 format.
2020-03-06 00:21:33 +01:00
gambas
829fc971c7 The output of the command run after executable has been generated is now put in the IDE console.
[DEVELOPMENT ENVIRONMENT]
* NEW: The output of the command run after executable has been generated is now put in the IDE console.
* BUG: The first opening of the console waits a bit so that the arrangement of its container is made.
2020-03-04 02:02:40 +01:00
gambas
0d720dc608 Add 'gb.signal' as component dependency.
[GB.WEB.FORM2]
* BUG: Add 'gb.signal' as component dependency.
2020-03-04 01:39:07 +01:00
gambas
bc7d0fc7df Do not crash anymore by looking for help comments in form files when controls are public.
[COMPILER]
* BUG: Do not crash anymore by looking for help comments in form files when controls are public.
2020-03-04 01:37:29 +01:00
gambas
066f919a04 Add WebSlider control.
[GB.WEB.FORM2]
* NEW: Add WebSlider control.
2020-03-03 23:54:52 +01:00
gambas
c4db969cb6 Redraw the coloured 'halt' icon.
[GB.FORM.STOCK]
* NEW: Redraw the coloured 'halt' icon.
2020-03-03 23:34:37 +01:00
gambas
9c8a47ba0f Add 'gb.web.form2' to the component list.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update Gambas 16 font.
* NEW: Add 'gb.web.form2' to the component list.
* BUG: Ignore untranslated title and description when displaying project information.
2020-03-03 23:34:17 +01:00
gambas
58046bcfad TerminalView: Add the ReadOnly property, and add a 2 pixels margin around the terminal contents.
[GB.FORM.TERMINAL]
* NEW: TerminalView: Add a new popup menu entry to select all the text.
* NEW: TerminalView: Add a 2 pixels margin around the terminal contents.
* NEW: TerminalView: ReadOnly is a new property that makes the TerminalView ignore keyboard input.
2020-03-03 23:29:12 +01:00
gambas
1f9364d131 Update project titles.
[GB.WEB.FORM]
* NEW: Update project title.

[GB.WEB.FORM2]
* NEW: Update project title.
2020-03-03 23:28:10 +01:00
gambas
766b327e61 Relative paths on command-line are now assumed to be relative to the current working directory.
[DEVELOPMENT ENVIRONMENT]
* BUG: Relative paths on command-line are now assumed to be relative to the current working directory.
2020-03-03 01:41:46 +01:00
gambas
1d549ea2f6 Merge branch 'master' of gitlab.com:gambas/gambas 2020-03-02 14:21:52 +01:00
gambas
fd2794612b Call the event loop just after the JIT compiler has aborted, so that its processes are correctly freed.
[INTERPRETER]
* BUG: Call the event loop just after the JIT compiler has aborted, so that its processes are correctly freed.
2020-03-02 14:20:49 +01:00
Christof Thalhofer
3c09d70986 gb.test: Mv Flowchart into projects .hidden folder
[GB.TEST]
* BUG: Mv Flowchart into the projects hidden folder, alter flowchart a bit
2020-03-01 22:26:14 +01:00
gambas
401b04f5fc String.LeftPad() and String.RightPad() now align the padding pattern respectively to the left and to the right.
[GB.UTIL]
* NEW: String.LeftPad() and String.RightPad() now align the padding pattern respectively to the left and to the right.
2020-03-01 00:49:17 +01:00
gambas
7a377ebabc TextEditor: Add F3 and SHIFT+F3 shortcuts for searching forward and backward in the text search popup.
[GB.FORM.EDITOR]
* NEW: TextEditor: Add F3 and SHIFT+F3 shortcuts for searching forward and backward in the text search popup.
2020-03-01 00:05:59 +01:00
gambas
e1fbc01f12 ScrollArea: Do not show the shadows in some cases when they should not be visible.
[GB.GUI.BASE]
* BUG: ScrollArea: Do not show the shadows in some cases when they should not be visible.
2020-03-01 00:04:46 +01:00
Brian G
64e5abbc64 [Scripter]
* NEW removed Lib directive
* NEW Added support for -w warnings
* NEW Added to only check last reply from compiler for ok
* NEW Added support for libraries using new Lib directive
2020-02-29 13:32:20 -08:00
gambas
342096ae0a Merge branch 'master' of gitlab.com:gambas/gambas 2020-02-29 20:23:20 +01:00
gambas
48e1929831 FileProperties: Adding a tab does not raise the Click event anymore.
[GB.FORM]
* BUG: FileProperties: Adding a tab does not raise the Click event anymore.
2020-02-29 20:22:50 +01:00
gambas
cf11f9213a File properties dialog: Undoing changes correctly refresh the changes tab again.
[DEVELOPMENT ENVIRONMENT]
* BUG: File properties dialog: Undoing changes correctly refresh the changes tab again.
2020-02-29 20:21:08 +01:00
gambas
71d9c85887 String.PadLeft() and String.PadRight() are not inverted anymore when padding with one byte strings.
[GB.UTIL]
* BUG: String.PadLeft() and String.PadRight() are not inverted anymore when padding with one byte strings.
2020-02-29 20:16:56 +01:00
gambas
b66607099d Add version control history tab in file properties dialog and version control dialog.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update some translations.
* NEW: File properties dialog: Add a version control history tab.
* NEW: Version control dialog: Add a version control history tab.
* NEW: Version control dialog: Always open the dialog, even if there is nothing to commit.
2020-02-29 20:16:29 +01:00
gambas
622c25101a Redraw some icons.
[GB.FORM.STOCK]
* NEW: Redraw some icons.
* NEW: Add a 128 pixels version of the colored 'directory' icon.
2020-02-29 20:07:12 +01:00
gambas
639ca4833c TextEditor: CTRL+F opens a simple text search field inside the editor.
[GB.FORM.EDITOR]
* NEW: TextEditor: CTRL+F opens a simple text search field inside the editor.
2020-02-29 20:06:27 +01:00
gambas
b865fa737f Reserve one pixel less between characters for bold text.
[GB.FORM.TERMINAL]
* BUG: Reserve one pixel less between characters for bold text.
2020-02-29 20:05:16 +01:00
gambas
a703c7f2ea Add String.PadLeft() and String.PadRight() methods.
[GB.UTIL]
* NEW: String.PadLeft() is a new method that pad a string to the left up to a specified length using a string pattern.
* NEW: String.PadRight() is a new method that pad a string to the right up to a specified length using a string pattern.
2020-02-29 19:39:40 +01:00
Christof Thalhofer
583a0c872d gb.test: Flowchart
[GB.TEST]
* NEW: Flowchart made by libre office draw and exported as svg

This is a first try to show the interplay between gbt3, gb.test and
gb.test.tap.
2020-02-29 13:15:55 +01:00
gambas
9e33023518 FileProperties: Add Click event and Index property so that tab changes can be handled.
[GB.FORM]
* NEW: FileProperties: Add() now returns the index of the added tab.
* NEW: FileProperties: Index is a new property that returns or sets the current tab index.
* NEW: FileProperties: Click is a new event that is raised when a tab is selected.
2020-02-28 18:38:16 +01:00
gambas
cc70ae4f83 Redraw many icons.
[GB.FORM.STOCK]
* NEW: Redraw many icons.
2020-02-28 18:37:31 +01:00
gambas
e57c7616f0 File properties dialog: Display file history if version control is enabled.
[DEVELOPMENT ENVIRONMENT]
* NEW: File properties dialog: Display file history if version control is enabled.
* NEW: Use bold text instead of shadows to display project titles.
2020-02-28 18:33:32 +01:00
Tobias Boege
548d7da1cb gb.test: Remove ITest, ITestCase leftovers
[GB.TEST]
* OPT: Remove the inheritance hierarchy of ITest and ITestCase.

They are no longer needed to identify tests.
2020-02-27 20:58:27 +01:00
Tobias Boege
350d61cd85 gb.test: Restore BailOut on uncaught errors
[GB.TEST.TAP]
* NEW: Assert.SubtestLevel is a new property that returns the number of nested subtests.
* NEW: Assert.BailOut always unwinds the subtest stack and bails out of the entire TAP session.
* BUG: Tests can bail out even if Finished was called.

[GB.TEST]
* NEW: Bail out again if errors from test methods are caught.
* BUG: Don't call Finish on a subtest when it was already finished.

After the Bail out message, we Quit with non-zero exit status to signal
an abnormal termination to the harness.
2020-02-27 20:38:55 +01:00
Tobias Boege
c9c99c0050 gb.test: Use gb.test.tap
[GB.TEST]
* NEW: Use gb.test.

This removes the Assert and Track classes and uses gb.test.tap instead.
Test methods are now executed inside subtests, plan lines are auto-
matically emitted by the harness.

Differences between gb.tests's and gb.test.tap's Assert module:

  - Instead of Assert.True and Assert.False, use Assert.Ok.
  - Instead of Assert.Equals* for every type, there is a generic
    Assert.Equals for Variants and a specific Assert.StringEquals
    for strings which prints diagnostics when the test fails.
  - Assert.BailOut does not terminate the entire program, just
    the TAP stream.
  - Assert.ErrorWithCode is called Assert.ErrorCode.

All TAP printing is done through Assert now. Errors happening in the
test code are not caught and spoofed in the TAP stream anymore, they
cause a test failure. The system would be more robust if the testee
would be in a different process from the tester.
2020-02-27 20:38:55 +01:00