[Gambas-user] Release of gambas 1.9.42

Benoit Minisini gambas at ...1...
Thu Sep 14 19:24:10 CEST 2006


On Wednesday 13 September 2006 13:21, Timothy Marshal-Nichols wrote:
> > 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.
>
> The new file filter syntax appears to be a right mess:
>
> 1. For the gb.qt dialog you need to use the following syntax to get
> multiple file types from the Dialog:
>
> 		Dialog.Filter = ["*.jpeg *.jpg", "Joint Photographic Experts Group"]
> Note the space.
>
> 2. For the gb.form dialog and control you need to use the following syntax
> to get multiple file types:
>
> 		Dialog.Filter = ["*.jpeg;*.jpg", "Joint Photographic Experts Group"]
> Note the ;
>
> 3. For the gb.qt.kde dialog you need to use the following syntax to get
> multiple file types from the Dialog:
>
> 		Dialog.Filter = ["Joint Photographic Experts Group (*.jpeg *.jpg)"]
> Note the space.
>
> 4. For the gb.gtk dialog you need to use the following syntax to get
> multiple file types from the Dialog:
> 		Dialog.Filter = ["Joint Photographic Experts Group (*.jpeg;*.jpg)"]
> Note the ;
>
> That's ***FOUR*** different formats for the file filter!!!!!!!
>
> I have spent some time going through my projects updating the file filter.
> For you this change might be just change some array type. But I have quite
> a few projects that open files. So the change involves quite a lot of work.
> Not only that I gain nothing from these changes, just extra work. And it
> looks like I going to have to go through it all again when this mess is
> fixed.
>
> Also none of dialogs/control have valid help for the file format.
>
> Thanks
>
> 8-{)} Timothy Marshal-Nichols
> <mailto: timothy.marshal-nichols at ...247...>
>

Yes, it is a bunch of crap. I will fix that in the next release, except in the 
gb.gtk component. But I'm sure Daniel will do that.

I chose the following syntax for the filters:

[ "*.XXX;*.YYY", "First filter", "*.AAA", "Second filter", ... ]

Regards,

-- 
Benoit Minisini





More information about the User mailing list