Commit graph

2782 commits

Author SHA1 Message Date
Benoît Minisini
6bd3a8a3a8 [COMPILER]
* BUG: GOTO works again.


git-svn-id: svn://localhost/gambas/trunk@4533 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-04 17:40:50 +00:00
Benoît Minisini
2f84e243e9 [COMPILER]
* BUG: Forgot to commit a file...


git-svn-id: svn://localhost/gambas/trunk@4532 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-04 17:39:08 +00:00
Benoît Minisini
e94477d0e1 [COMPILER]
* BUG: Use a dedicated control stack slot for each GOSUB subroutine.
* BUG: GOSUB labels now must be at top-level, and must be declared *after*
  the GOSUB call. Consequently, recursion is not possible anymore.


git-svn-id: svn://localhost/gambas/trunk@4531 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-04 09:13:59 +00:00
Benoît Minisini
1fc5a474de [INTERPRETER]
* NEW: New GOSUB instruction. You return from a GOSUB with the RETURN 
  instruction alone. Consequently, you cannot exit from a 'SUB' with it if
  there is a pending GOSUB. The GOSUB stack is only limited by the
  available memory.

[COMPILER]
* NEW: New GOSUB instruction.


git-svn-id: svn://localhost/gambas/trunk@4530 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-03 23:57:36 +00:00
Benoît Minisini
7de65428de [GB.FORM]
* NEW: Implement Title properties as synonymous of Text for row and column 
  headers.
* BUG: GridView.Rows[].Selected now works correctly when multiple selection 
  is enabled.


git-svn-id: svn://localhost/gambas/trunk@4529 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-03 12:18:30 +00:00
Benoît Minisini
fb26ef792f [DEVELOPMENT ENVIRONMENT]
* NEW: A new panel in the option dialog that allows to define which files
  must be ignored when creating a source package or an installation 
  package.

[INTERPRETER]
* BUG: Fix String.Mid$() when the third argument goes after the string 
  length.

[GB.FORM]
* NEW: IconPanel now uses a GridView and not an IconView anymore.
* BUG: GridView.Mouse property now works as expected.


git-svn-id: svn://localhost/gambas/trunk@4528 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-03 02:17:24 +00:00
Randall Morgan
7dcd32d1b6 [GB.GSL]
* NEW: Added Test Suite Gambas Project to GSL Component.

git-svn-id: svn://localhost/gambas/trunk@4527 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-03 00:21:36 +00:00
Benoît Minisini
a786448db0 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix error when inserting a new form with dialog management option 
  checked.


git-svn-id: svn://localhost/gambas/trunk@4526 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-02 22:59:50 +00:00
Benoît Minisini
df53de0b28 [DEVELOPMENT ENVIRONMENT]
* BUG: Make error message tooltips always visible.
* NEW: Update logos.

[GB.FORM]
* NEW: GridView: The Shift key is taken into account when selecting rows 
  with the mouse.


git-svn-id: svn://localhost/gambas/trunk@4525 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-02 22:57:57 +00:00
Benoît Minisini
03965a418c [COMPILER]
* BUG: Don't print a line number greater than the number of lines in the 
  compiled file when displaying an error message.



git-svn-id: svn://localhost/gambas/trunk@4524 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-02 22:38:50 +00:00
Benoît Minisini
092b3abfa3 [COMPILER]
* NEW: Raise an error now when using TRY with GOTO, BREAK, CONTINUE or 
  STOP.


git-svn-id: svn://localhost/gambas/trunk@4523 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-02 22:05:55 +00:00
Benoît Minisini
f3a762060f [GB.FORM]
* BUG: Setting GridView.Rows.Height correctly update the GridView viewport 
  size.


git-svn-id: svn://localhost/gambas/trunk@4522 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-02 02:25:52 +00:00
Benoît Minisini
1735a652a2 [GB.FORM]
* BUG: Fix ToolPanel Index value when decreasing the Count property.
* NEW: Less space around GridView row headers text.

[GB.QT4]
* BUG: Do not crash when UserControl or UserContainer container is deleted.
* BUG: Delete the Qt4 application class in component exit routine, 
  otherwise Qt 4.8 seems to crash sometimes.


git-svn-id: svn://localhost/gambas/trunk@4521 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-02 01:21:33 +00:00
Radek Fryšták
e23fbfe985 [DEVELOPMENT ENVIRONMENT]
* NEW: update czech translation


git-svn-id: svn://localhost/gambas/trunk@4520 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-01 13:35:16 +00:00
Benoît Minisini
518868e61a [DEVELOPMENT ENVIRONMENT]
* BUG: Try to fix the spurious error that is raised sometimes when clicking
  on a control in the form editor.

[GB.FORM]
* NEW: GridView.Columns.Width property has been implemented.


git-svn-id: svn://localhost/gambas/trunk@4519 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-01 11:42:28 +00:00
Benoît Minisini
acf987283e [GB.QT4]
* BUG: Fix Draw.RichTextWidth() by rounding the internal floating point 
  width up.


git-svn-id: svn://localhost/gambas/trunk@4518 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-29 14:02:21 +00:00
Benoît Minisini
f841a413e7 [INTERPRETER]
* BUG: Fix structure field padding.


git-svn-id: svn://localhost/gambas/trunk@4517 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-29 13:43:18 +00:00
Benoît Minisini
71d85e8a84 [GB.NET.CURL]
* BUG: Fix allocation of initial FtpClient URL.


git-svn-id: svn://localhost/gambas/trunk@4516 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-29 01:52:54 +00:00
Benoît Minisini
dd8f6fa227 [INTERPRETER]
* BUG: Adding years with DateAdd() to 29 Feb now switch to 28 Feb not to 
  create invalid dates if the result is not in a leap year.


git-svn-id: svn://localhost/gambas/trunk@4515 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-28 23:39:29 +00:00
Benoît Minisini
b5fd8b4b05 [DEVELOPMENT ENVIRONMENT]
* BUG: Set the focus back to the editor after a paste operation.
* NEW: Less flickering when displaying project items.

[GB.FORM]
* NEW: GridView.Rows.Insert() and GridView.Rows.Remove() methods were
  implemented.

[GB.GTK]
* NEW: Remove the old GridView source code.

[GB.QT4]
* NEW: Remove the old GridView source code.


git-svn-id: svn://localhost/gambas/trunk@4514 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-28 01:43:40 +00:00
Benoît Minisini
b85b4dfc7b [INTERPRETER]
* BUG: Really fix CATCH / FINALLY management.


git-svn-id: svn://localhost/gambas/trunk@4513 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-27 22:15:10 +00:00
Benoît Minisini
61d1e832bb [INTERPRETER]
* BUG: Correctly release the stack when dealing with a CATCH / FINALLY 
  instruction.


git-svn-id: svn://localhost/gambas/trunk@4512 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-27 19:03:57 +00:00
Benoît Minisini
560ab68481 [GB.FORM]
* NEW: The GridView.Rows.Width property is writable now.
* NEW: Setting the text of a row header now automatically enlarge it.


git-svn-id: svn://localhost/gambas/trunk@4511 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-27 00:33:51 +00:00
Benoît Minisini
1a9e66c4b6 [GB.FORM]
* BUG: Fix ListContainer control.


git-svn-id: svn://localhost/gambas/trunk@4510 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-27 00:22:54 +00:00
Benoît Minisini
09f700e22b [INTERPRETER]
* BUG: LINE INPUT does not try to incorrectly release its stream argument
  anymore when there is no stream argument.
* OPT: A little optimization in Space$(), Upper$() and Lower$().
* OPT: EXEC / SHELL ... TO does not return the process output through a 
  temporary string that will be freed later. If the string is big, then
  the memory is retained longer than necessary.


git-svn-id: svn://localhost/gambas/trunk@4509 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-26 23:07:14 +00:00
Benoît Minisini
0fcd5bbd44 [GB.DB.FORM]
* BUG: Fix a crash in DataView when it has no current row.


git-svn-id: svn://localhost/gambas/trunk@4508 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-26 18:31:54 +00:00
Benoît Minisini
fad8dc7581 [INTERPRETER]
* NEW: 't' and 'tt' are two new date formatting patterns that display the
  timezone.


git-svn-id: svn://localhost/gambas/trunk@4507 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-25 15:16:10 +00:00
Benoît Minisini
e9f7c91cd5 [INTERPRETER]
* BUG: Destructors now can safely raise errors. If these errors are 
  ignored, the object is released anyway.


git-svn-id: svn://localhost/gambas/trunk@4506 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-25 03:16:08 +00:00
Benoît Minisini
a2a5f45bb8 [GB.FORM]
* BUG: Take the GridView cell RichText property into account.
* BUG: Take the GridView.Enabled property into account.
* BUG: The minimum column width and minimum row height are one pixel now.

[GB.GTK]
* NEW: Align.IsTop(), Align.IsBottom(), Align.IsMiddle(), Align.IsLeft(),
  Align.IsRight() and Align.Center() are new methods that allow to know the
  direction of an alignment according to the current language direction.

[GB.QT4]
* NEW: Align.IsTop(), Align.IsBottom(), Align.IsMiddle(), Align.IsLeft(),
  Align.IsRight() and Align.Center() are new methods that allow to know the
  direction of an alignment according to the current language direction.


git-svn-id: svn://localhost/gambas/trunk@4505 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-25 02:59:39 +00:00
Benoît Minisini
b776ca3ea3 [GB.GTK]
* BUG: If the DrawingArea Draw event handler raises an error, then the 
  interpreter should not crash anymore.
* BUG: Mouse events are now cancelable, like in gb.qt4, so that proxies cancelable
  prevent their propagation.


git-svn-id: svn://localhost/gambas/trunk@4504 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-25 01:48:14 +00:00
Benoît Minisini
0309f98b60 [DEVELOPMENT ENVIRONMENT]
* NEW: Take property synonymous into account.
* BUG: Pasting text as comments correctly converts tabulations into spaces.

[INTERPRETER]
* NEW: GB.RaiseBegin() and GB.RaiseEnd() are two new intepreter APIs that 
  allow to define a callback that will be called if an exception is raised
  during a call to GB.Raise().
* BUG: CATCH and FINALLY correctly restore the stack pointer. Without that,
  it is possible to use more stack than possible and to crash the 
  interpreter.

[COMPILER]
* NEW: A property now can has up to four different names. The syntax is:
  "Property Name [ , Synonymous1, ..., Synonymous3 ] As Datatype".

[GB.DB]
* BUG: Table.Type property now correctly handle null table types.

[GB.DB.FORM]
* NEW: DataBrowser.Grid is a new property to define the grid visibility.
* BUG: The DataBrowser and DataView controls have been fixed. There is only 
  one problem to fix that depends on a gb.gtk bug.

[GB.DRAW]
* BUG: Setting Draw.Font to NULL does not crash anymore, and raise an error
  instead.

[GB.FORM]
* NEW: The new GridView is finished and replaces the old one now.
* NEW: GridView.ShowCursor is a new property that displays a light cursor 
  around the current cell when set.

[GB.GTK]
* NEW: Font.Copy() is a new method to copy a font object.
* NEW: GTK+ GridView has been disabled.
* NEW: The Container Insert event has been renamed as NewChild.

[GB.QT4]
* NEW: Font.Copy() is a new method to copy a font object.
* NEW: Qt4 GridView has been disabled.
* NEW: The Container Insert event has been renamed as NewChild.
* BUG: If the DrawingArea Draw event handler raises an error, then the 
  interpreter should not crash anymore.

[GB.QT4.EXT]
* BUG: Fix an uninitialized field in Editor internal GLine class.


git-svn-id: svn://localhost/gambas/trunk@4503 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-25 01:35:55 +00:00
Randall Morgan
98f3d19663 [GB.GSL]
* NEW: Change CPolynomial_SolveQuadratic and CPolynomial_SolveCubic to use
   values from internal data array. Also added Out of bounds error if the number of
   coefficients is incorrect for the called method.

git-svn-id: svn://localhost/gambas/trunk@4502 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-23 22:47:36 +00:00
Benoît Minisini
1614dc978d [GB.FORM]
* NEW: Work continues on the new GridView.


git-svn-id: svn://localhost/gambas/trunk@4501 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-23 03:59:39 +00:00
Randall Morgan
7a7544fa69 [GB.GSL]
* BUG: Commented out bad line of code that cause the component to fail to compile.

git-svn-id: svn://localhost/gambas/trunk@4500 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-22 10:59:08 +00:00
Randall Morgan
b87e4f1983 [GB.GSL]
* BUG: Fixed issue with incorrect return type in CPolynomial_SolveCudic and
   CPolynomial_SolveQuadratic methods.

git-svn-id: svn://localhost/gambas/trunk@4499 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-22 10:29:26 +00:00
Benoît Minisini
6d6a2cb0f4 [GB.FORM]
* NEW: Start to make a GridView control entirely in Gambas. Contrary to 
  its native implementations, it will be able to handle millions of lines
  without eating all memory.


git-svn-id: svn://localhost/gambas/trunk@4498 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-22 03:24:48 +00:00
Benoît Minisini
da3a564c43 [GB.DRAW]
* BUG: Rect class can be used as a fonction correctly now.


git-svn-id: svn://localhost/gambas/trunk@4497 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-22 01:43:17 +00:00
Benoît Minisini
65e1200b53 [INTERPRETER]
* BUG: Constructors that receive too many arguments now correctly raise an 
  error.

[GB.DRAW]
* BUG: Accessing a temporarily closed drawing device now raises an error
  instead of crashing.


git-svn-id: svn://localhost/gambas/trunk@4496 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-22 01:42:40 +00:00
Randall Morgan
48097fc1e4 [GB.GSL]
* BUG: Fixed error in GslComplex_Pow method declaration.

git-svn-id: svn://localhost/gambas/trunk@4495 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-21 07:50:48 +00:00
Randall Morgan
9319247693 [GB.GSL]
* NEW: Added Hypot3 function to GSL class.
   Added initial methods to CPolynomial class.

git-svn-id: svn://localhost/gambas/trunk@4494 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-21 03:36:40 +00:00
Randall Morgan
4fe9db6123 [GB.GSL]
* NEW: Added Arg, Abs, Abs2, and LogAbs methods to Complex class.

git-svn-id: svn://localhost/gambas/trunk@4493 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-20 11:05:11 +00:00
Benoît Minisini
8468c9d503 [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly handle libraries that depends on more than one component.


git-svn-id: svn://localhost/gambas/trunk@4492 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-20 00:16:53 +00:00
Benoît Minisini
8b11d16ec3 [DEVELOPMENT ENVIRONMENT]
* NEW: Make project creation dialog and project save as dialog less 
  difficult to understand.

[GB.FORM]
* NEW: Wizard: Remove padding around contents when the wizard has no 
  border.


git-svn-id: svn://localhost/gambas/trunk@4491 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-20 00:02:11 +00:00
Benoît Minisini
834ca97b78 [GB.DBUS]
* BUG: Fix DBusObserver matching rules handling.

[GB.GTK]
* NEW: Control.NoTabFocus is a new property that prevents a control from 
  being in the TAB key focus chain.

[GB.QT4]
* NEW: Control.NoTabFocus is a new property that prevents a control from 
  being in the TAB key focus chain.
* OPT: Make part of the internal widget structure optional to save a bit of
  memory when rarely used properties are not set.


git-svn-id: svn://localhost/gambas/trunk@4490 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-19 21:13:50 +00:00
Benoît Minisini
a668911d1e [INTERPRETER]
* BUG: Convert the return value of a native function to a variant 
  automatically only if the function call is done by a "CALL" bytecode.
  Consequently the gb.signal component works again.



git-svn-id: svn://localhost/gambas/trunk@4489 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-19 16:13:38 +00:00
Randall Morgan
e9a68b8af2 [GB.GSL]
* BUG: Fixed filenames in file headers. 
   Renamed static *create_complex() in the complex class
   to GSLComplex_create() so that it could be used in other
   compenent files.

git-svn-id: svn://localhost/gambas/trunk@4488 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-18 22:56:08 +00:00
Randall Morgan
a919a08cf0 [GB.GSL]
* BUG: Changed function prototypes in all files to use upper case variable names (xf) to (X)f.
   Moved frexp to c_gsl where it belongs.

git-svn-id: svn://localhost/gambas/trunk@4487 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-18 22:06:10 +00:00
Randall Morgan
e575e091cf [GB.GSL]
* DEV: Experimenting with memory allocation for polynomial
   coefficients.

git-svn-id: svn://localhost/gambas/trunk@4486 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-17 19:29:08 +00:00
Randall Morgan
281b7de7c3 [GB.GSL]
* NEW: Added ComplexPolynomial and NewtonPolynomial class files.

git-svn-id: svn://localhost/gambas/trunk@4485 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-17 07:30:59 +00:00
Randall Morgan
1e80fe0d30 [GB.GSL]
* NEW: Testing Array data handling methods for Polynomial class.

git-svn-id: svn://localhost/gambas/trunk@4484 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-17 07:29:55 +00:00