Commit graph

1598 commits

Author SHA1 Message Date
Benoît Minisini
61acd2084d [DEVELOPMENT ENVIRONMENT]
* BUG: Update component dependencies correctly when converting a Gambas 2 
  project.
* BUG: Extern function declarations are now taken into account by the
  contextual help system.
* BUG: Clicking on a link to a project declaration in an help window works
  correctly now.

[GB.GTK]
* BUG: DrawingArea.NoBackground works in all cases now.
* BUG: Dialog.OpenFile() works correctly again now.


git-svn-id: svn://localhost/gambas/trunk@3428 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-01-02 13:14:21 +00:00
Benoît Minisini
2eb5d8b8ca [GB.GTK]
* NEW: Rect is a new class that represents a Rectangle. It has some useful
  methods like Contains, Union or Intersection.

[GB.QT4]
* NEW: Rect is a new class that represents a Rectangle. It has some useful
  methods like Contains, Union or Intersection.


git-svn-id: svn://localhost/gambas/trunk@3427 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-01-02 00:39:08 +00:00
Benoît Minisini
f8f707c81c [DEVELOPMENT ENVIRONMENT]
* BUG: Disable "Replace" and "Replace all" buttons in the search dialog 
  while the project is running.


git-svn-id: svn://localhost/gambas/trunk@3426 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-01-01 23:34:49 +00:00
Benoît Minisini
f5b97ba80f [GB.GTK]
* BUG: Reparenting a GridView directly or indirectly should work correctly 
  now.


git-svn-id: svn://localhost/gambas/trunk@3425 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-01-01 22:30:16 +00:00
Benoît Minisini
e4f5513ca0 [GB.SETTINGS]
* BUG: Settings.Read() on a Window tries to not put the titlebar outside of
  the available desktop geometry.


git-svn-id: svn://localhost/gambas/trunk@3424 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-01-01 20:53:06 +00:00
Benoît Minisini
8793112d29 [GB.QT4]
* BUG: The Move() method now correctly works on top-level windows.

[GB.SETTINGS]
* NEW: Support for multiple screens and desktop layout when saving or 
  loading window geometry in a setting file.


git-svn-id: svn://localhost/gambas/trunk@3423 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-01-01 20:49:21 +00:00
Benoît Minisini
caefe95103 [GB.GTK]
* BUG: Settings the text of a transparent Label or TextLabel having no text
  works correctly now.


git-svn-id: svn://localhost/gambas/trunk@3422 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-01-01 19:03:36 +00:00
Benoît Minisini
4a5908c37e [INTERPRETER]
* NEW: gb.Millisecond is a new date operation constant to deal with 
  milliseconds.
* NEW: Support for gb.Millisecond in DateDiff() and DateAdd().


git-svn-id: svn://localhost/gambas/trunk@3420 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-01-01 16:43:40 +00:00
Benoît Minisini
938209d793 [DEVELOPMENT ENVIRONMENT]
* OPT: Simplify the implementation of the component list in the project
  property dialog.

[GB.GTK]
* BUG: Try to fix the Label and TextLabel autoresize feature, as well as 
  the Adjust() method, so that gb.gtk and gb.qt4 behave the same.

[GB.QT4]
* BUG: Try to fix the Label and TextLabel autoresize feature, as well as 
  the Adjust() method, so that gb.gtk and gb.qt4 behave the same.
* NEW: Disable the glib main loop support only if we are using KDE.


git-svn-id: svn://localhost/gambas/trunk@3419 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-01-01 16:29:46 +00:00
Jordi Sayol
130724e07f [DEVELOPMENT ENVIRONMENT]
* NEW: Updated Catalan translation.

[MAKEWEBSITE]
* NEW: Updated Catalan translation.

[DOC.CGI]
* NEW: Updated Catalan translation.

[EXAMPLES]
* NEW: Updated Catalan translation of Lighttable.
* NEW: Updated Catalan translation of ServerSocket.




git-svn-id: svn://localhost/gambas/trunk@3418 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-01-01 02:17:14 +00:00
Benoît Minisini
ba3a22e532 [DEVELOPMENT ENVIRONMENT]
* NEW: Exchange the "environment" tab with the "components" tab in the 
  project property dialog.

[GB.GTK]
* BUG: Rework the management of focus and window activation so that gb.gtk 
  and gb.qt4 behave the same (or almost). Maybe it will fix the Ballon that
  disappears with the Gnome window manager.

[GB.QT4]
* BUG: Rework the management of focus and window activation so that gb.gtk 
  and gb.qt4 behave the same (or almost). Maybe it will fix the Ballon that
  disappears with the Gnome window manager.
* BUG: Do not disable the GLib support, it makes QT applications crash on
  Gnome. I think it should be disable on KDE only.


git-svn-id: svn://localhost/gambas/trunk@3416 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-31 02:57:16 +00:00
David Villalobos Cambronero
d0e7076617 [DEVELOPMENT ENVIROMENT]
* NEW: Spanish translation updated.

git-svn-id: svn://localhost/gambas/trunk@3415 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-30 17:01:10 +00:00
Benoît Minisini
ad19937a82 [INTERPRETER]
* NEW: Add a gb.ShortNumber format to Format$().
* NEW: Use that format for converting Single to String.
* BUG: Check the internal conversion special class method everywhere an 
  object is converted.

[GB.DEBUG]
* NEW: Use gb.ShortNumber to display Single values.


git-svn-id: svn://localhost/gambas/trunk@3414 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-30 03:17:37 +00:00
Benoît Minisini
e0e71dc4f5 [CONFIGURATION]
* NEW: Qt 4.5.0 is now required to compile the gb.qt4 components.

[INTERPRETER]
* NEW: You can now define a non-creatable but auto-creatable class. It 
  means that you cannot instanciate the class, but you can use it
  statically.

[GB.GTK]
* NEW: Screens is a new pseudo-array of all screens.
* NEW: Screen is a new class that represents the geometry of a screen. The
  X, Y, Width and Height properties return the full geometry. The 
  AvailableX, AvailableY, AvailableWidth and AvailableHeight properties 
  return the geometry available to the windows. The screen class can be 
  used statically to get the geometry of the default screen.
  BEWARE: The available geometry is not yet implemented on gb.gtk!
* NEW: Window.Screen is a new property that returns the screen where most 
  of the window is located.
* NEW: Desktop.{X,Y,Width,Height} are four new properties that return the
  available geometry of the default screen. It is an equivalent of
  Screen.{AvailableX,AvailableY,AvailableWidth,AvailableHeight}.

[GB.QT4]
* NEW: Screens is a new pseudo-array of all screens.
* NEW: Screen is a new class that represents the geometry of a screen. The
  X, Y, Width and Height properties return the full geometry. The 
  AvailableX, AvailableY, AvailableWidth and AvailableHeight properties 
  return the geometry available to the windows. The screen class can be 
  used statically to get the geometry of the default screen.
* NEW: Window.Screen is a new property that returns the screen where most 
  of the window is located.
* NEW: Desktop.{X,Y,Width,Height} are four new properties that return the
  available geometry of the default screen. It is an equivalent of
  Screen.{AvailableX,AvailableY,AvailableWidth,AvailableHeight}.


git-svn-id: svn://localhost/gambas/trunk@3413 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-30 01:52:40 +00:00
Benoît Minisini
cd788ff08a [GB.GTK]
* BUG: Keyboard events are now sent to windows the same way as in gb.qt4.


git-svn-id: svn://localhost/gambas/trunk@3412 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-29 18:25:16 +00:00
Benoît Minisini
6cf9de6805 [INTERPRETER]
* BUG: Correctly convert negative floating point numbers again.


git-svn-id: svn://localhost/gambas/trunk@3411 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-29 15:25:29 +00:00
Benoît Minisini
cef5a8056b [COMPILER]
* NEW: PRINT can ends with a comma. In that case, a tab is printed, but no 
  newline.


git-svn-id: svn://localhost/gambas/trunk@3410 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-29 09:12:56 +00:00
Benoît Minisini
a4056f9d53 [GB.GTK]
* BUG: Fix a memory leak that leads to a crash in the TextArea.Paste() 
  method.


git-svn-id: svn://localhost/gambas/trunk@3409 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-29 09:05:28 +00:00
Benoît Minisini
adf553d56b [INTERPRETER]
* NEW: Support for NOT LIKE, NOT BEGINS, NOT ENDS and NOT IS.

[COMPILER]
* NEW: New operators: NOT LIKE, NOT BEGINS, NOT ENDS and NOT IS.

[GB.EVAL]
* NEW: New operators: NOT LIKE, NOT BEGINS, NOT ENDS and NOT IS.


git-svn-id: svn://localhost/gambas/trunk@3407 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-29 08:21:51 +00:00
Benoît Minisini
27214867cf [GB.GTK]
* BUG: Fix how keys are sent to the window KeyPress and KeyRelease event
  handlers.


git-svn-id: svn://localhost/gambas/trunk@3406 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-29 00:50:11 +00:00
Benoît Minisini
781d26b8eb [GB.GTK]
* BUG: Hiding the active control now correctly gives the focus to the next
  control in the focus chain.


git-svn-id: svn://localhost/gambas/trunk@3405 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-29 00:12:06 +00:00
Benoît Minisini
c275829ddc [DEVELOPMENT ENVIRONMENT]
* BUG: The control rename algorithm should work better now.

[EXAMPLES]
* BUG: Fix ServerSocket and ClientSocket examples.

[INTERPRETER]
* BUG: WRITE and READ with a specified length of zero now does nothing.

[GB.NET]
* BUG: Closing a socket created by a ServerSocket does not crash anymore.

[GB.QT4]
* BUG: When a combo-box becomes read-only, the first item is automatically 
  selected if there was no current item.
* BUG: Window with no border can have focus now.



git-svn-id: svn://localhost/gambas/trunk@3404 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-28 21:58:42 +00:00
Benoît Minisini
b3e83433c6 [GB.NET]
* NEW: Socket.Server is a new property that returns the ServerSocket that
  eventually created the Socket with its Accept() method.


git-svn-id: svn://localhost/gambas/trunk@3403 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-28 15:37:34 +00:00
Benoît Minisini
47bec5f339 [DEVELOPMENT ENVIRONMENT]
* NEW: Enhance the import wizard. The list of conversions that are 
  automatically handled is in the wiki.

[WIKI CGI SCRIPT]
* BUG: Do allow '{' and '}' between '=='. But then allow lines to begin 
  with a slash, to escape those characters.
* BUG: Display correctly titles with a '#' inside.

[COMPILER]
* NEW: DownTo is a new keyword for decrementing For...Next loops. You can
  save some "Step -1" with it.

[GB.QT4]
* BUG: Fix a reference leak with DnD operations started outside of then
  application.


git-svn-id: svn://localhost/gambas/trunk@3402 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-28 02:24:20 +00:00
Benoît Minisini
326993f9b1 [COMPILER]
* BUG: False, True and Debug preprocessor constants work correctly now.


git-svn-id: svn://localhost/gambas/trunk@3401 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-27 14:35:06 +00:00
Benoît Minisini
3cf59d321a [DEVELOPMENT ENVIRONMENT]
* NEW: Files can be dropped from files managers to the project treeview.
  They are automatically inserted into the project then.

[WIKI CGI SCRIPT]
* BUG: '{' and '}' are not interpreted anymore between '=='.

[BENCHMARKS]
* NEW: Add Gambas/Perl/Python benchmarks to the repository.

[INTERPRETER]
* NEW: A Stop instruction encountered inside a component is not ignored
  anymore and stops the program.
* BUG: Fix the File.SetName, File.SetExt and File.SetBaseName methods.

[COMPILER]
* NEW: The preprocessor now undestands the False and True constants.

[GB.FORM]
* NEW: Clean up the Stock class icon loading algorithm.
* BUG: Fix the Gnome icon map.

[GB.FORM.STOCK]
* NEW: Support for svg stock icons.

[GB.QT4]
* BUG: Drag.Show() now works for DnD operations started outside of the 
  application.

[GB.GTK]
* BUG: Drag.Show() now works for DnD operations started outside of the 
  application.


git-svn-id: svn://localhost/gambas/trunk@3400 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-27 14:28:59 +00:00
Benoît Minisini
9bf6b10ec6 [GB.FORM.STOCK]
* NEW: Clear the icon stock.


git-svn-id: svn://localhost/gambas/trunk@3399 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-27 12:38:23 +00:00
Benoît Minisini
0b29db9459 [DEVELOPMENT ENVIRONMENT]
* BUG: Convert Gambas 2 projects using WebBrowser from gb.qt.kde.html.


git-svn-id: svn://localhost/gambas/trunk@3398 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-24 15:08:36 +00:00
Benoît Minisini
6a596a2aa6 [DEVELOPMENT ENVIRONMENT]
* NEW: Gambas2 to Gambas3 project converter. Only forms and project 
  structure are converted at the moment, as before.
* NEW: Update compiler error messages list.

[INTERPRETER]
* BUG: Activate the automatic instance just after its creation, but 
  before calling the constructors, so that they can reference it without
  trying to create it recursively again and again.


git-svn-id: svn://localhost/gambas/trunk@3397 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-24 12:20:11 +00:00
Benoît Minisini
1ab1e3f9b9 |GB.GTK]
* NEW: The Image.Picture and the Picture.Image property do not change the 
  internal type of the image (server or memory). That change is done only 
  if necessary. Instead, these properties return a deep copy of the object.


git-svn-id: svn://localhost/gambas/trunk@3396 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-23 14:42:16 +00:00
Benoît Minisini
9cdb62c865 [GB.QT4]
* BUG: Fix DrawingArea again.


git-svn-id: svn://localhost/gambas/trunk@3395 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-23 03:55:24 +00:00
Benoît Minisini
e5cac201f2 [GB.GTK]
* BUG: Draw.Picture() and Draw.Zoom() now have the same behaviour as 
  gb.qt4. The picture is not smoothed when it is enlarged by an integer
  ratio.

[GB.QT4]
* BUG: Cached DrawingArea refresh should work again.
* BUG: Resizing a cached DrawingArea should work correctly now.


git-svn-id: svn://localhost/gambas/trunk@3394 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-23 00:23:58 +00:00
Benoît Minisini
b86a35e903 [DEVELOPMENT ENVIRONMENT]
* BUG: The project property dialog does not crash anymore when there is an
  hidden component in the component list described in the '.project' file.

[INTERPRETER]
* BUG: -2147483648 is a valid integer.

[COMPILER]
* BUG: -2147483648 is a valid integer.

[GB.QT4]
* NEW: DrawingArea.NoBackground is a new property that prevent the 
  DrawingArea to automatically refresh its background when you know that 
  you will paint it fully yourself.

[GB.GTK]
* NEW: DrawingArea.NoBackground is a new property that prevent the 
  DrawingArea to automatically refresh its background when you know that 
  you will paint it fully yourself.


git-svn-id: svn://localhost/gambas/trunk@3393 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-22 18:31:44 +00:00
Kazutaka Harada
a2c4f4285a [DEVELOPMENT ENVIRONMENT]
* NEW: Japanese translation updated.


git-svn-id: svn://localhost/gambas/trunk@3392 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-22 14:05:00 +00:00
Benoît Minisini
0384fd1303 [GB.DB.FORM]
* BUG: Update DataControl and DataView to the new behaviour of IsXXX() and
  Val() functions.



git-svn-id: svn://localhost/gambas/trunk@3391 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-22 01:47:00 +00:00
Benoît Minisini
72aee6fbc1 [INTERPRETER]
* NEW: IsInteger(), IsLong(), IsFloat(), IsDate() and IsNumber() argument 
  now must be a string. There is no automatic conversion anymore.


git-svn-id: svn://localhost/gambas/trunk@3390 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-21 17:29:39 +00:00
Benoît Minisini
213c24ba42 [GB.GTK]
* BUG: Fix uninitialized control proxy variables.


git-svn-id: svn://localhost/gambas/trunk@3389 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-21 14:53:10 +00:00
Benoît Minisini
1bd45a5751 [INTERPRETER]
* NEW: Forgot to add two source files.


git-svn-id: svn://localhost/gambas/trunk@3388 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-21 14:35:39 +00:00
Benoît Minisini
cdcf6cdac9 [DEVELOPMENT ENVIRONMENT]
* BUG: Code indentation routine correctly handles structures now.

[INTERPRETER]
* NEW: Object.LastEventName has been deprecated, and replaced by 
  the Param.EventName property.
* BUG: IsFloat() is now a synonymous for IsNumber().
* BUG: Intrinsic functions description has been updated.

[COMPILER]
* NEW: "\e" is a new string escape sequence equivalent to "\x1B".

[GB.FORM]
* NEW: Use the new Control.Proxy property instead of internal observers
  inside compound controls (ValueBox, ButtonBox, MenuButton).

[GB.GTK]
* NEW: Control.Proxy is a new property that allows to define a control 
  proxy that will handle focus, key and mouse events in original control's 
  place.

[GB.QT4]
* NEW: Control.Proxy is a new property that allows to define a control 
  proxy that will handle focus, key and mouse events in original control's 
  place.


git-svn-id: svn://localhost/gambas/trunk@3387 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-21 14:05:42 +00:00
Laurent Carlier
aaf1f225d0 [GB.OPENGL]
* BUG: Fix glu.pickmatrix() method, with need an integer array instead of a simple integer.


git-svn-id: svn://localhost/gambas/trunk@3386 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-20 20:29:44 +00:00
Benoît Minisini
0188461fd0 [GB.QT4]
* BUG: MovieBox works correctly now.


git-svn-id: svn://localhost/gambas/trunk@3385 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-20 18:38:50 +00:00
Benoît Minisini
16cf4c045b [DEVELOPMENT ENVIRONMENT]
* BUG: Do not crash during structure declaration analyze, when the 
  structure name has been forgotten.


git-svn-id: svn://localhost/gambas/trunk@3384 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-20 12:32:19 +00:00
Benoît Minisini
776937cb72 [DEVELOPMENT ENVIRONMENT]
* NEW: Define preprocessor color for all highlighting themes.

[COMPILER]
* NEW: The maximum number of constants in a class is now 65536.

[INTERPRETER]
* NEW: The maximum number of constants in a class is now 65536.


git-svn-id: svn://localhost/gambas/trunk@3383 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-20 03:56:43 +00:00
Benoît Minisini
a79dead4f4 [INTERPRETER]
* BUG: The Val() and IsXXX() functions algorithm has been fixed. Now the 
  string is trimmed before being converted. Thousand separators are really 
  valid only to separate thousands. Extra non-space characters at the end
  of the string make the conversion fail.


git-svn-id: svn://localhost/gambas/trunk@3382 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-20 03:26:00 +00:00
Jordi Sayol
93646d4c1c [DEVELOPMENT ENVIRONMENT]
* NEW: Catalan translation updated.

[EXAMPLES]
* NEW: Lighttable Help Catalan translation added.
* NEW: GNUBoxWorld Catalan translation updated.



git-svn-id: svn://localhost/gambas/trunk@3381 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-20 02:37:02 +00:00
Benoît Minisini
3274c95dbb [GB.GTK]
* BUG: DrawingArea.Tracking property should work correctly now.


git-svn-id: svn://localhost/gambas/trunk@3380 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-19 18:18:26 +00:00
Matti
02739a761f [EXAMPLES]
*NEW: Lighttable: allow localized help files


git-svn-id: svn://localhost/gambas/trunk@3379 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-19 16:42:40 +00:00
Benoît Minisini
28ec164ea6 [INTERPRETER]
* NEW: Ceil() and Floor() functions.

[COMPILER]
* NEW: Ceil() and Floor() functions.


git-svn-id: svn://localhost/gambas/trunk@3378 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-19 13:56:34 +00:00
Benoît Minisini
291bf96ecc [COMPILER]
* BUG: Remove parser debugging messages.
* NEW: DEBUG is a new preprocessor symbol that returns if the compiler 
  generates debugging information.

[GB.QT4]
* BUG: Should compile with Qt 4.5.3 now.


git-svn-id: svn://localhost/gambas/trunk@3377 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-19 12:58:58 +00:00
Benoît Minisini
3b5cda0a80 [COMPILER]
* NEW: The preprocessor now understands three constants: SYSTEM, 
  ARCHITECTURE (or ARCH), and VERSION (or GAMBAS). The VERSION constants
  didn't change. The two others return a string that can be compare with
  equality or inequality operator. The comparison is not case sensitive.

[GB.EVAL]
* NEW: Comments are correctly highlighted in preprocessor lines.



git-svn-id: svn://localhost/gambas/trunk@3376 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-18 14:41:43 +00:00