[Gambas-user] Release of gambas 1.9.42

Benoit Minisini gambas at ...1...
Mon Sep 11 17:35:58 CEST 2006


Hi,

This release has many changes in the gb.qt component and gb.settings that will 
break your projects: 

* The Dialog.Filter syntax is now the same as the gb.form FileChooser control. 

* All Mode properties now uses the constants from the Select class. Other 
selection mode constants have been removed. The following classes are 
impacted: ListBox, ListView, GridView, TreeView, IconView, ColumnView. 
TableView will be modified too in the future.

* IconView GridX and GridY properties have been replaced by the GridWidth and 
GridHeight properties. 

* HBox, VBox, HPanel and VPanel have an AutoResize property now, which is not 
set by default, contrary to the old behaviour. The arrangement algorithm has 
changed a bit, so your forms may display differently.

* The Settings class now stores Window and SidePanel settings differently. 
This will mainly break the saved positions of IDE windows. 

You may have edit your form files by hand to fix the use of some properties. 
Or you can open them in the IDE, and fix the properties that have changed, 
and save them.

Otherwise, there are some enhancements in the IDE: 

* Optimizations in project loading: in the previous versions, the default 
value of a control property was calculated by creating an hidden control. Now 
no control is created, but the default value must be declared in the control 
hidden constant describing its properties (namely '_Properties'). I updated 
all _Properties everywhere, but if one has been forgotten, you may get false 
default values when inserting a control inside the form editor.

* Support for symbolic links. By using symbolic links, you can share forms, 
classes, modules or any file between two different projects. You cannot edit 
the file pointed by the symbolic link in the IDE.

* A better translation dialog, thanks to Charlie Reinl. You can now translate 
a project file by file. Charlie added some shortcuts: I just remove the 
description of the shortcuts from the tooltips. They should go in a help page 
on the wiki instead.

* The old file creation dialogs have been replaced by a new one.

There is a new DateChooser calendar control too. It replaces the DatePicker 
that was depending on KDE.

Here is the full ChangeLog:

-------------------------------------------------------------------------------

DEVELOPMENT ENVIRONMENT

* NEW: Support for default control dimensions.
* NEW: No control is created anymore to get default value of properties. 
  This is experimental, as this implies that all controls defines these
  default values in the '_Properties' constant.
* NEW: When you save a source file, a comment telling that it is a Gambas
  source file is automatically inserted at the beginning of the file.
* NEW: Old file creation dialogs have been removed, and replaced by a 
  unique one.
* NEW: You can insert symbolic links inside your project. Their support is
  experimental.
* NEW: The find list now is displayed in its own tool window, and not 
  inside the project tree anymore
* NEW: Project tree refresh has been optimized.
* NEW: The output console now handles the '\r' and '\t' control characters.
* NEW: The control property sheet has more support of properties kinds.
* NEW: The project version can be got from the output of an external 
  program.
* NEW: The quit dialog has been redesigned.
* NEW: The control toolbox has been redesigned around a TabStrip.
* NEW: The translation dialog has been enhanced, thanks to Charlie Reinl.
* NEW: IDE workspace now uses the same icon as the project tree.
* BUG: The IDE does not break anymore when the user component path does not
  exist.
* BUG: Search inside procedure has been fixed, and should not enter an
  endless loop anymore.
* BUG: The position of controls dropped on the form editor should be 
  correct now.
* BUG: You can specify that the stack size keeps its default value now.
* BUG: Needed features of a component are correctly saved now.
* BUG: Finding a Gambas subroutine in the help works now.

DATABASE MANAGER

* NEW: The interface now is based on the Workspace control.
* BUG: The use of ComboBox and ListBox List properties has been fixed.

INTERPRETER

* NEW: A new API, GB.RaiseLater(), that posts an event to an object. The
  event must not take any parameter.
* NEW: Component.UserPath is now located in '~/.local'.
* BUG: The _free() methods are now called again when the _new() methods 
  fail. It finally crashes less than the fix in the previous version.
  A real solution has to be found.

COMPILER

* BUG: Using expressions in optional parameters does not crash the compiler
  anymore.

GB.QT COMPONENT

* NEW: ToolButton.Radio property has been implemented.
* NEW: Color.LightBackground is lighter.
* NEW: Container.Find is a new method that finds a child control from a
  relative position.
* NEW: The Dialog.Filter syntax is now the same as the gb.form FileChooser
  control.
* NEW: Draw.Resolution returns the resolution of the device being drawn in
  digits per inches.
* NEW: All Mode properties now uses the constants from the Select class. 
  Other selection mode constants have been removed.
* NEW: IconView GridX and GridY properties have been replaced by the 
  GridWidth and GridHeight properties, those value is not in pixels 
  anymore, but in units of Desktop.Scale.
* NEW: HBox, VBox, HPanel and VPanel have an AutoResize property now, which
  is not set by default, contrary to the old behaviour.
* NEW: ScrollView.Width and ScrollView.Height are two new properties that
  return the dimension of the internal area.
* NEW: TreeView, ColumnView and ListView got a Cancel event, raised when
  a item renaming has been canceled.
* NEW: Watcher now raises an Insert event when a new child is inserted in a
  watched container.
* NEW: The default values of background and foreground colors are correctly
  managed now.
* BUG: Some fixes in the Design property management.
* BUG: Setting the background or foreground color has been correctly
  optimized.
* BUG: Some fixes in the arrangement algorithms.
* BUG: ScrollView arrangement is now correct when the ScrollView has a 
  border.
* BUG: TabStrip enables and disables tabs correctly now.

GB.QT.EXT COMPONENT

* NEW: Editor.Print is a new method that handles '\r' and '\t' control 
  characters.
* NEW: TableView now raises a Select event when the selection has changed.
  This event is deferred.
* BUG: Editor now undoes insertion in a more clever way.
* BUG: Editor now refreshes without flickering when the entire edited text
  is visible.

GB.QT.KDE COMPONENT

* NEW: The Dialog.Filter syntax is now the same as the gb.form FileChooser
  control.
* NEW: DatePicker has been removed.

GB.FORM COMPONENT

* NEW: The CustomListBox control has been replaced by the ListContainer 
  container.
* NEW: Chooser controls now have a Value property.
* NEW: DateChooser, a calendar control for selecting a date.
* NEW: FileView now hides backup files, unless the 'show hidden files'
  button is toggled.
* NEW: SidePanel.Settings is a new property that returns the SidePanel
  state in a string. This property can be set too.
* BUG: FileChooser raises the Change event when the user changes the 
  current directory.
  
GB.FORM.MDI COMPONENT

* NEW: The Workspace tabstrip follows the mouse wheel now.

GB.SETTINGS

* NEW: The Settings class now stores Window and SidePanel settings 
  differently.

GB.GTK COMPONENT

* Updated.

GB.PDF COMPONENT

* BUG: The component should compile with poppler 0.5 now.

-------------------------------------------------------------------------------

Enjoy it!

Regards,

-- 
Benoit Minisini





More information about the User mailing list