Commit graph

2635 commits

Author SHA1 Message Date
gambas
a53acf81c7 TextEditor: Do not use Application.Busy in Load() and Save() methods and fix TextEditor[].Purge() method.
[GB.FORM.EDITOR]
* NEW: TextEditor: Do not use Application.Busy in Load() and Save() methods.
* BUG: TextEditor: TextEditor[].Purge() works as expected now.
2020-04-21 07:32:52 +02:00
gambas
fae4d5df83 Spinner: Add a Padding property.
[GB.FORM]
* NEW: Spinner: Add a Padding property.
2020-04-21 07:32:27 +02:00
gambas
b77de38fdf Stock: Analyze icon directories in alphabetic order, so that numeric directory names are always identified first.
[GB.FORM]
* BUG: Stock: Analyze icon directories in alphabetic order, so that numeric directory names are always identified first.
2020-04-16 09:49:21 +02:00
gambas
d6cf0e8fb4 Fix the tab order of the control toolbox.
[DEVELOPMENT ENVIRONMENT]
* BUG: Fix the tab order of the control toolbox.

[GB.WEB.GUI]
* NEW: WebListBox is a new listbox control.
2020-04-09 10:53:31 +02:00
gambas
171c11c523 Update some project versions and icons. 2020-04-08 14:03:59 +02:00
gambas
8a9e30e1be Redraw 'upload' and 'download' stock icons.
[GB.FORM.STOCK]
* NEW: Redraw 'upload' and 'download' stock icons.
2020-04-08 14:01:53 +02:00
gambas
2c3d7c069f WebFileButton is a new control that provides a button that can upload file to the server.
[GB.WEB.GUI]
* NEW: WebFileButton is a new control that provides a button that can upload file to the server.
2020-04-08 13:58:35 +02:00
gambas
a00862b681 CGI.All is a new property that returns a collection of all CGI environment variables.
[GB.WEB]
* NEW: CGI.All is a new property that returns a collection of all CGI environment variables.
2020-04-08 13:57:37 +02:00
gambas
3891af0d62 Take anchors into account correctly when generating links and fix a crash when parsing lines starting with a '#'.
[GB.MARKDOWN]
* BUG: Take anchors into account correctly when generating links.
* BUG: Lines beginning with '#' without a space after do not make the parser crash anymore.
2020-04-07 14:51:01 +02:00
gambas
2165ececd5 JIT optimization of '&=' has been implemented.
[INTERPRETER]
* NEW: Support for JIT '&=' optimization.
* BUG: Fix '&=' optimization on argument variables.
* OPT: Strings greater than 4096 bytes are allocated by 4096 bytes steps.

[GB.JIT]
* NEW: JIT optimization of '&=' has been implemented.
2020-04-06 04:43:12 +02:00
gambas
c2794f536c Add and update some stock icons.
[GB.FORM]
* NEW: Add 'layout', 'new-tag' and 'tag' stock icons.

[GB.FORM.STOCK]
* NEW: Add 'layout', 'new-tag' and 'tag' stock icons.
* NEW: Update 'jump', 'make' and 'make-all' icons.
2020-03-27 02:20:30 +01:00
gambas
fb1ee7d923 Fix a typo in WebMenu properties declaration.
[GB.WEB.FORM]
* BUG: Fix a typo in WebMenu properties declaration.
2020-03-21 04:36:49 +01:00
gambas
66f2b07c1f Response.SendFile() now correctly deals with relative paths.
[GB.WEB]
* NEW: Response.SendFile() now correctly deals with relative paths.
2020-03-21 04:29:46 +01:00
gambas
37db818d3d The 'gb.web.form2' component has been renamed as 'gb.web.gui'. Support for popup menus and stock icons were added.
[GB.WEB.GUI]
* NEW: This is the new name of 'gb.web.form2'.
* NEW: Support for popup menus.
* NEW: Support for stock icons.

[GB.WEB.FORM2]
* NEW: Rename the component as 'gb.web.gui'.
2020-03-21 04:27:05 +01:00
gambas
a59dfb169c CSVFile: Charset now can be specified.
[GB.UTIL]
* NEW: CSVFile: Charset now can be specified. If not specified, the first line of the files is used to guess if it could be WINDOWS-1252, or otherwise UTF-8.
2020-03-13 21:36:11 +01:00
gambas
8e241d9888 Fix WebTabPanel.Count and add WebTabPanel.Remove().
[GB.WEB.FORM2]
* BUG: WebTabPanel: Count property can be made smaller.
* NEW: WebTabPanel: Remove() is a new method that removes a tab from its index.
2020-03-10 15:22:21 +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
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
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
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
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
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
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
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
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
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
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
Tobias Boege
679cb64554 gb.test.tap: Add more diagnostics
[GB.TEST.TAP]
* NEW: Add more diagnostics when Assert methods fail.
2020-02-27 20:38:55 +01:00
Tobias Boege
6c82b48abc gb.test.tap: Add SkipAll and don't lose stderr
[GB.TEST.TAP]
* NEW: Support skipping all tests.
* BUG: DO intercept a test process' stderr but forward it verbatim to the TAP stream.
2020-02-27 20:38:55 +01:00
Tobias Boege
27cc0504ac gb.test.tap: Fix subtest summary
[GB.TEST.TAP]
* BUG: Correctly summarize subtest. In particular empty tests fail.
2020-02-27 20:38:55 +01:00