[Gambas-devel] Release of gambas 1.9.32

Benoit Minisini gambas at ...1...
Sun Jun 11 21:20:19 CEST 2006


Hi,

Here is the 1.9.32 release.

Warning! The following changes will break your code:

* An object cannot send or receive events inside its constructor anymore. You 
will have to move some code from the Form constructor to the Open event 
handler for example.

* The LostFocus event is now posted, as the GotFocus event, so that you always 
get the LostFocus event after its corresponding GotFocus event. This may 
break some code based on this event. 

* The Draw.Picture, Draw.Image and Draw.Drawing methods now take optional 
width & height scaling parameters. This breaks he old syntax:

For example, before was 'Draw.Image(Image, X, Y, SX, SY, SW, SH)'
And now is 'Draw.Image(Image, X, Y, DW, DH, SX, SY, SW, SH)'.

The image will be scaled so that it has the DW x DH dimension on the target 
drawing device.

The other main changes are:

* The Workspace control has been replaced by a new one. 
* The old help files have been replaced by a static version of the Gambas 
wiki. 
* The Draw class now support drawing transformation based on rotation, scaling 
and translation. 

Here is the full changelog:

--8<-----------------------------------------------------------------------

DEVELOPMENT ENVIRONMENT

* NEW: The old Workspace control has been replaced by the new one.
* NEW: Automatic completion of identifiers and keywords.
* NEW: The help window now uses a static version of the wiki.
* BUG: The find dialog should not crash anymore in replace mode.
* BUG: The project tree shortcuts now are disabled when not having
  the focus, so that they do not conflict with the editor shortcuts.
* NEW: The debug window is now docked on the bottom of the main window.
* NEW: The project tree now displays modules first.
* NEW: Making executable is faster now.

DATABASE MANAGER

* BUG: The CSV export was fixed.
* NEW: The CSV export now uses TAB as separator character.

EXAMPLES

* BUG: The Notepad example was fixed.

INTERPRETER

* NEW: The Gambas API has a new GB.Post2() function to call a function
  later with two parameters.
* BUG: All components are now forced to use string comparison functions
  that do not use localization settings. This is mqinly for Turkish
  people :-)
* BUG: The GPL version was incorrect in the message displayed by
  the --help option.
* NEW: An object cannot raise or receive events inside its contructor.
  This can break some code: for example, you may have to move code from
  the _new() method of a Form to the Form_Open event handler.
* NEW: A locked object cannot receive events anymore.
* BUG: Locked objects do not crash the interpreter anymore when trying to
  raise events.

COMPILER

* NEW: Events are not disabled anymore during the hidden method that
  creates the controls of a form.

GB.EVAL COMPONENT

* NEW: System.Keywords is a new property that returns the list of Gambas
  reserved keywords.

GB.QT COMPONENT

* NEW: Draw.Picture now can take optional width and height parameters that
  scales the Picture. This new syntax is incompatible with the old one!
* NEW: Draw.Image now can take optional width and height parameters that
  scales the Image. This new syntax is incompatible with the old one!
* NEW: Draw.Drawing now can take optional width and height parameters that
  scales the Drawing. This new syntax is incompatible with the old one!
* NEW: Drawing transformation has been implemented: Draw.Rotate rotates
  what is drawn, Draw.Translate translates it, and Draw.Scale scales it.
* NEW: Draw.Push saves the current transformation state.
* NEW: Draw.Pop restores the current transformation state.
* NEW: Draw.Reset resets the transformation state.
* NEW: Menu raises the Hide event just after being hidden.
* NEW: Setting Menu.Enabled to FALSE now disables all child menu shortcuts.
* NEW: TabStrip[i].Delete now removes the i-th tab, if it is empty.
* NEW: Watcher now raises the Title event when the watched control is a
  Window and its title changes.
* NEW: Watcher now raises the Icon event when the watched control is a
  Window and its icon changes.
* NEW: Watcher now raises the Close event when the watched control is a
  Window and it has been closed.
* NEW: Watcher.Control is a new property that returns the watched control.
* NEW: The LostFocus event is now posted, as the GotFocus event. This may
  break some code based on this event.

GB.QT.EXT COMPONENT

* NEW: The Workspace control, based on the QWorkspace widget, has been
  removed.
* BUG: The Editor.Undo and Editor.Redo methods now correctly move they
  cursor.
* BUG: The Editor automatic unindentation has been enhanced.

GB.GTK COMPONENT

* BUG: Some warning fixes sent by Stephan Binner from SuSE.

GB.LDAP COMPONENT

* BUG: Some warning fixes sent by Stephan Binner from SuSE.

GB.FORM COMPONENT

* NEW: DirChooser.Root is a new property to set the root of the directory
  list.
* NEW: FileChooser.Root is a new property to set the root of the directory
  list.

GB.FORM.MDI COMPONENT

* This new component implements the new version of the Workspace control.

GB.CRYPT COMPONENT

* BUG: The crypt.h header is now searched only in /usr/include.

--8<-----------------------------------------------------------------------

Enjoy it!

-- 
Benoit Minisini




More information about the Devel mailing list