Commit graph

1603 commits

Author SHA1 Message Date
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
Benoît Minisini
4707adbf45 [GB.QT4]
* BUG: The component should compile correctly with Qt <= 4.5.2 now.


git-svn-id: svn://localhost/gambas/trunk@3375 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-18 14:26:34 +00:00
Benoît Minisini
b38df04095 [DEVELOPMENT ENVIRONMENT]
* NEW: In icon editor, the width of the selection frame now follows the 
  zoom level.
* NEW: Support for preprocessor highlighting.

[COMPILER]
* NEW: Integrated preprocessor. The following commands are supported:
  #If <expr>, #Else If <expr>, #Else and #Endif. <expr> can be a 
  combination of constants (OS_LINUX, OS_FREEBSD, ARCH_X86, ARCH_X86...),
  parenthesis, 'And' & 'Or' operators, version test (VERSION >= "3.0").
  This is work in progress.

[GB.EVAL]
* NEW: A new highlighting color for the preprocessor.

[GB.QT4.EXT]
* NEW: A new highlighting color for the preprocessor in Editor control.


git-svn-id: svn://localhost/gambas/trunk@3374 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-18 04:27:59 +00:00
Jordi Sayol
50e9e81c5f [DEVELOPMENT ENVIRONMENT]
* NEW: Catalan translation updated.

[WIKI CGI SCRIPT]
* NEW: Catalan translation updated.

[GB.FORM.MDI]
* NEW: Catalan translation updated.

[GB.FORM.DIALOG]
* NEW: Catalan translation updated.

[GB.FORM]
* NEW: Catalan translation updated.

[GB.DB.FORM]
* NEW: Catalan translation updated.

[EXAMPLES]
* NEW: Catalan translation of all examples updated.



git-svn-id: svn://localhost/gambas/trunk@3373 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-17 00:24:35 +00:00
Jordi Sayol
585cc90819 [EXAMPLES]
* NEW: Added Catalan translation of Lighttable.
* NEW: Added Catalan translation of Puzzle1To8.
* NEW: Added Catalan translation of GNUBoxWorld.



git-svn-id: svn://localhost/gambas/trunk@3372 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-16 17:40:25 +00:00
Jordi Sayol
c5e8667fdf [DEVELOPMENT ENVIRONMENT]
* NEW: Catalan translation updated.

[WIKI CGI SCRIPT]
* NEW: Catalan translation updated.

[GB.FORM.MDI]
* NEW: Catalan translation updated.

[GB.FORM.DIALOG]
* NEW: Catalan translation updated.

[GB.FORM]
* NEW: Catalan translation updated.

[GB.DB.FORM]
* NEW: Catalan translation updated.

[EXAMPLES]
* NEW: Catalan translation of all examples updated.



git-svn-id: svn://localhost/gambas/trunk@3371 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-16 01:58:02 +00:00
Benoît Minisini
a311ec02ef [GB.GTK]
* BUG: Fix the Printer.OutputFile property for space and non-ascii 
  characters.
* BUG: Don't show the configuration dialog briefly when calling 
  Printer.Print().


git-svn-id: svn://localhost/gambas/trunk@3370 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-16 00:18:08 +00:00
Benoît Minisini
4f383c7a1d [GB.QT4]
* BUG: Initialize correctly the painter when drawing on a DrawingArea.


git-svn-id: svn://localhost/gambas/trunk@3369 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-15 21:12:05 +00:00
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