Commit graph

1691 commits

Author SHA1 Message Date
Benoît Minisini
6f440dc030 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix the icon editor.

[INTERPRETER]
* NEW: If Stop Event is used during the Timer event, the timer is stopped.

[INFORMER]
* BUG: Fix a file descriptor leak.

[GB.DRAW]
* NEW: Draw.Zoom() now does not draw cell borders unless zoom is greater or 
  equal than 6.

[GB.DESKTOP]
* BUG: Fix a forgotten "break" in a switch statement when setting a window
  property with a string array.

[GB.QT4]
* BUG: Fix image leak in Clipboard.Copy() and Drag().
* BUG: Fix incorrect copy of image data when taking ownership of an image 
  object.
* NEW: Draw.Image() does not do a smooth transformation the image is 
  enlarged in both dimensions, and if the new size is a multiple of the old
  size.
* OPT: DrawingArea with the default background color now does not repaint
  its background before calling the Draw event.

[GB.QT4.EXT]
* BUG: Fix a bad test in GDocument::getLineFlag().


git-svn-id: svn://localhost/gambas/trunk@3368 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-15 15:55:16 +00:00
Benoît Minisini
a45e7bc86d [DEVELOPMENT ENVIRONMENT]
* NEW: Allow to add additional lines to the *.desktop configuration file in
  the packager.


git-svn-id: svn://localhost/gambas/trunk@3367 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-14 14:29:23 +00:00
Benoît Minisini
8af22eafce [DEVELOPMENT ENVIRONMENT]
* NEW: Fix the packager mimetypes label and update the french translation.


git-svn-id: svn://localhost/gambas/trunk@3366 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-14 10:58:54 +00:00
Benoît Minisini
c25cee0bd2 [DEVELOPMENT ENVIRONMENT]
* NEW: Mimetypes handled by the application can be specified in the 
  packager now.


git-svn-id: svn://localhost/gambas/trunk@3365 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-14 10:46:52 +00:00
Benoît Minisini
7334fb87a0 [DEVELOPMENT ENVIRONMENT]
* NEW: Draw the class name into the icon of project exported controls.
* NEW: A search box in the hierarchy tree.
* BUG: Deleting project files works correctly again.

[GB.FORM]
* NEW: ButtonBox.Editor is a new property that returns the internal TextBox
  used by the control.


git-svn-id: svn://localhost/gambas/trunk@3364 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-14 10:12:49 +00:00
Benoît Minisini
725dca7623 [INTERPRETER]
* NEW: Collection.Copy() is a new method that returns a copy of a 
  collection.


git-svn-id: svn://localhost/gambas/trunk@3363 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-14 01:18:41 +00:00
Benoît Minisini
c5a29da470 [COMPILER]
* NEW: '%' is a new operator that is a synonymous for 'MOD'. It has its
  assignment operator shortcut '%=' too.


git-svn-id: svn://localhost/gambas/trunk@3362 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-13 23:46:01 +00:00
Benoît Minisini
09c9f29ce0 [INTERPRETER]
* BUG: Fix a possible compilation problem.


git-svn-id: svn://localhost/gambas/trunk@3361 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-13 14:38:58 +00:00
Benoît Minisini
9595b58109 [DEVELOPMENT ENVIRONMENT]
* BUG: Do not use the deprecated DrawingArea.Merge property anymore.

[GB.QT4]
* BUG: The component should compile correctly now.


git-svn-id: svn://localhost/gambas/trunk@3360 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-13 14:00:28 +00:00
Benoît Minisini
bfe0686c00 [GB.GTK]
* BUG: Stop Event now works during the Close event of a modal form.


git-svn-id: svn://localhost/gambas/trunk@3358 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-13 05:38:11 +00:00
Benoît Minisini
6109389b14 [GB.QT4]
* BUG: Drawing.Merge has been deprecated. Display a warning only when the 
  property is set to TRUE.


git-svn-id: svn://localhost/gambas/trunk@3357 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-13 05:13:35 +00:00
Benoît Minisini
085559cf4d [GB.QT4]
* BUG: Try to make gb.qt4 compile correctly without X11.


git-svn-id: svn://localhost/gambas/trunk@3356 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-13 04:27:11 +00:00
Benoît Minisini
b15fea4e1b [DEVELOPMENT ENVIRONMENT]
* BUG: Do not display the internal self-component in the project property 
  component list.

[GB.FORM]
* NEW: Bookmarks are editable now.


git-svn-id: svn://localhost/gambas/trunk@3355 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-11 01:55:35 +00:00
Benoît Minisini
98628b539d [DEVELOPMENT ENVIRONMENT]
* BUG: Clicking with the right mouse button on a toolbox control now 
  correctly raises the help on that control.


git-svn-id: svn://localhost/gambas/trunk@3354 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-10 01:57:34 +00:00
Benoît Minisini
22d3945361 [GB.NET]
* BUG: Fix duplicate declaration of SerialStream structure.


git-svn-id: svn://localhost/gambas/trunk@3353 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-10 00:44:04 +00:00
Benoît Minisini
278b393018 [DEVELOPMENT ENVIRONMENT]
* NEW: Exported project classes that are controls are now automatically 
  visible in the control toolbar.
* NEW: Compiling the project now automatically refreshes the control 
  toolbar when needed.

[INTERPRETER]
* BUG: File.SetExt() now works correctly with files whose name begins with
  a dot.

[GB.QT4]
* BUG: The frame width of raised or sunken borders used by some Container 
  classes now should correctly follow the style.


git-svn-id: svn://localhost/gambas/trunk@3352 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-09 03:15:42 +00:00
Benoît Minisini
634b584ae3 [GB.NET]
* BUG: Make gb.net compile correctly on FreeBSD.


git-svn-id: svn://localhost/gambas/trunk@3351 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-08 17:21:36 +00:00
Benoît Minisini
a1c697eb93 [GB.SIGNAL]
* BUG: That component should be compiled correctly on FreeBSD now.


git-svn-id: svn://localhost/gambas/trunk@3350 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-08 17:15:18 +00:00
Benoît Minisini
34bb499ae7 [DEVELOPMENT ENVIRONMENT]
* BUG: Hide the menu entry "add a project link".

[GB.GTK]
* NEW: ScrollBar.DefaultSize is a new property that returns the preferred 
  default size of a scrollbar.

[GB.QT4]
* NEW: ScrollBar.DefaultSize is a new property that returns the preferred 
  default size of a scrollbar.


git-svn-id: svn://localhost/gambas/trunk@3349 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-07 22:13:02 +00:00
Benoît Minisini
6d26022111 [GB.QT4]
* BUG: Apply the patch to the previous Qt bug only to PDF and PS paint 
  engines.


git-svn-id: svn://localhost/gambas/trunk@3348 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-07 01:26:05 +00:00
Benoît Minisini
1354ca2af7 [GB.DB.ODBC]
* BUG: Table existence should be checked correctly now.

[GB.DRAW]
* NEW: Paint.DrawImage() is a new utility function to paint an image 
  easily.

[GB.QT4]
* BUG: Printer.Count is now 1 by default.
* BUG: Found a workaround to the Qt bug #5114. Now the brush matrix is 
  taken into account when painting on a Printer object.


git-svn-id: svn://localhost/gambas/trunk@3347 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-07 01:20:40 +00:00
Benoît Minisini
26b363c96f [WIKI CGI SCRIPT]
* NEW: Button to "flattr" Gambas.

[INTERPRETER]
* BUG: Fix some possible uses of unitialized values.

[COMPILER]
* BUG: Fix a possible crash when having 63 arguments passed by reference 
  to a function.

[GB.DB.SQLITE3]
* BUG: Detect integer primary key whatever the case used to write 
  "integer".

[GB.GTK]
* BUG: Page setup is enabled in printer configuration dialog now.

[GB.QT4]
* BUG: The font size of printed texts is now correct.


git-svn-id: svn://localhost/gambas/trunk@3344 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-05 20:17:24 +00:00
Benoît Minisini
cf16f17a91 [INTERPRETER]
* BUG: Use isfinite() instead of deprecated finitef() functions.
* BUG: Replace "Static array" error message by "Embedded array".


git-svn-id: svn://localhost/gambas/trunk@3343 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-05 11:33:22 +00:00
Benoît Minisini
ac01b8fc64 [GB.GTK]
* BUG: Fix a bad code path in event management, which leads to warnings 
  from the GTK+ library when displaying the printer configuration dialog.


git-svn-id: svn://localhost/gambas/trunk@3342 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-04 16:07:53 +00:00
Benoît Minisini
018ea0ebb1 [EXAMPLES]
* NEW: Remove the Printing example that works on Gambas 2 only.


git-svn-id: svn://localhost/gambas/trunk@3341 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-04 15:39:48 +00:00
Laurent Carlier
3821669aab [GB.SDL]
* BUG: Removed support for system font, as it'snt really stable and working well.
* NEW: Now Font class use a default TTF font, DejaVuSans.ttf



git-svn-id: svn://localhost/gambas/trunk@3340 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-30 20:02:42 +00:00
Laurent Carlier
ccfa32566a [CONFIGURATION]
* BUG: Fix installation of extra datas files



git-svn-id: svn://localhost/gambas/trunk@3339 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-30 15:48:26 +00:00
Benoît Minisini
0f031c5741 [COMPILER]
* BUG: Define LLONG_MAX constant when it is not defined.


git-svn-id: svn://localhost/gambas/trunk@3338 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-30 15:03:47 +00:00
Laurent Carlier
2555d51dfc [CONFIGURATION]
* NEW: Add the possibility for a component in C/C++ to install custom data files.

These files must be provided into a "data" folder created in the component source directory.
Also this line must be added in the Makefile.am file:
EXTRA_DIST = data

Datas are installed in the $(DESTDIR)$(gbdatadir)/$(COMPONENT) dir
eg : /usr/local/share/gambas3/gb.sdl



git-svn-id: svn://localhost/gambas/trunk@3337 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-30 14:16:43 +00:00
Benoît Minisini
b61b72ca10 [DEVELOPMENT ENVIRONMENT]
* BUG: Project files that are symbolic links are always read-only now.


git-svn-id: svn://localhost/gambas/trunk@3336 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-30 14:04:39 +00:00
David Villalobos Cambronero
e0fdfd2fdc [DEVELOPMENT ENVIRONMENT]
* NEW: Spanish translation updated.

git-svn-id: svn://localhost/gambas/trunk@3335 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-29 16:11:25 +00:00
Benoît Minisini
2a252a9d4e [DEVELOPMENT ENVIRONMENT]
* BUG: Replace IsBoolean(x) by TypeOf(x) = gb.Boolean.


git-svn-id: svn://localhost/gambas/trunk@3334 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-29 10:50:46 +00:00
Benoît Minisini
76208aea23 [WIKI CGI SCRIPT]
* NEW: Version support for all wiki pages.
* NEW: Adding "#X" behind a title page make indexes ignore that page when 
  version X is requested.
* NEW: Version 2 is blue and version 3 is red.

[GB.DB.FORM]
* BUG: IsObject() has been removed, so do differently now.

[GB.GTK]
* BUG: Cursor is correctly updated with the value of Application.Busy now.


git-svn-id: svn://localhost/gambas/trunk@3333 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-28 19:08:51 +00:00
Benoît Minisini
088aa594b2 [DEVELOPMENT ENVIRONMENT]
* NEW: In a red mood...


git-svn-id: svn://localhost/gambas/trunk@3332 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-28 10:31:10 +00:00
Benoît Minisini
521b2c933c [COMPILER]
* NEW: Remove the MkPtr$() synonymous.


git-svn-id: svn://localhost/gambas/trunk@3331 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-28 10:05:50 +00:00
Benoît Minisini
ebc7714e3f [DEVELOPMENT ENVIRONMENT]
* BUG: Search hihghlighting is correctly refreshed now when a new project
  is opened.


git-svn-id: svn://localhost/gambas/trunk@3330 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-28 09:55:48 +00:00
Benoît Minisini
6a15492e9c [INTERPRETER]
* NEW: The scaring change. IsByte(), IsShort(), IsSingle(), IsString(), 
  IsPointer(), IsObject() and IsVariant() have been removed. IsNull() has
  been kept unchanged.
* NEW: IsInteger() now returns if a string can be converted to an Integer
  number.
* NEW: IsLong() now returns if a string can be converted to an Integer or a
  Long number.
* NEW: IsFloat() now returns if a string can be converted to a Float, but
  not an Integer or a Long.
* NEW: IsNumber() now returns if a string can be converted to an Integer, a
  Long or a Float.
* NEW: IsDate() now returns if a string can be converted to a Date.
* NEW: Str(True) and Str(False) now use the translation of the "True" and
  "False" string, if they exist in the current project.
* NEW: Val() now uses the translation of the "True" and "False" string, if 
  they exist in the current project.


git-svn-id: svn://localhost/gambas/trunk@3329 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-27 23:00:08 +00:00
Benoît Minisini
9d11c85ef4 [COMPILER]
* BUG: Correctly read long constants whose value is the lower possible Long 
  value.


git-svn-id: svn://localhost/gambas/trunk@3327 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-27 14:46:25 +00:00
Benoît Minisini
122e8ee9c9 [INTERPRETER]
* BUG: Fix the array conversion routine.


git-svn-id: svn://localhost/gambas/trunk@3326 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-27 01:40:19 +00:00
Benoît Minisini
d997caf779 [INTERPRETER]
* NEW: Automatic conversion between all array classes.


git-svn-id: svn://localhost/gambas/trunk@3325 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-27 01:27:23 +00:00
Benoît Minisini
0c1e5e1dbf [DEVELOPMENT ENVIRONMENT]
* BUG: Do not display control name inside virtual control.
* BUG: Do not display control name inside buttons having a picture and no 
  text.


git-svn-id: svn://localhost/gambas/trunk@3324 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-27 00:48:43 +00:00
Benoît Minisini
697a40a046 [INTERPRETER]
* NEW: WRITE writes structures in one shot, by using an internal buffer. 
  This is useful for UDP socket, when the message size is the size of the 
  data sent in one shot.


git-svn-id: svn://localhost/gambas/trunk@3323 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-27 00:06:43 +00:00
Benoît Minisini
662e4282bf [INTERPRETER]
* NEW: The argument of Byte@(), Short@()... functions now can be a string.
  Then the address of the string in memory is used.
* BUG: Structures allocated with the NEW operator are correctly freed now.
* NEW: READ and WRITE now can deal with structures and embedded arrays.
* NEW: Dir?() synonymous has been removed.


git-svn-id: svn://localhost/gambas/trunk@3322 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-26 20:30:58 +00:00
Benoît Minisini
ab38b98a1c [COMPILER]
* NEW: Remove MkPtr$() and Ptr@().


git-svn-id: svn://localhost/gambas/trunk@3321 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-24 16:03:18 +00:00
Benoît Minisini
f7a157204b [INTERPRETER]
* NEW: Mem$() was replaced by MkBool$(), MkByte$(), and so on.

[COMPILER]
* NEW: Mem$() was replaced by MkBool$(), MkByte$(), and so on.
* NEW: CLng(), CSng(), CVar(), CPtr() abbreviations were removed.
* NEW: CBoolean() was added.


git-svn-id: svn://localhost/gambas/trunk@3320 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-24 16:00:39 +00:00
Benoît Minisini
8aacf23491 [COMPILER]
* BUG: Use the right symbol table.


git-svn-id: svn://localhost/gambas/trunk@3319 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-24 02:22:50 +00:00
Benoît Minisini
030523326f [INTERPRETER]
* NEW: Mem$() is a new function that returns a string from the internal 
  memory representation of a value.
* NEW: BoolPtr() has been replaced by Bool@(), BytePtr() has been replaced 
  by Byte@(), and so on...
* NEW: StrPtr() has been replaced by String@().

[EXAMPLES]
* NEW: Search support in the WebBrowser example.


git-svn-id: svn://localhost/gambas/trunk@3318 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-24 01:30:36 +00:00
Benoît Minisini
45edd9fcdd [CONFIGURATION]
* NEw: Remove the now useless database manager project.


git-svn-id: svn://localhost/gambas/trunk@3317 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-23 23:24:35 +00:00
Benoît Minisini
6535acd5c7 [GB.QT4.WEBKIT]
* NEW: Remove WebView.FindText() highlight argument. It is not supported 
  on older version of Qt4.


git-svn-id: svn://localhost/gambas/trunk@3316 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-23 22:10:09 +00:00
Benoît Minisini
a631ecf0e2 [DEVELOPMENT ENVIRONMENT]
* BUG: Help browser does not skip taskbar anymore when not being an utility 
  window.


git-svn-id: svn://localhost/gambas/trunk@3311 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-23 17:56:47 +00:00