Commit graph

1120 commits

Author SHA1 Message Date
Benoît Minisini
c40fabf1b8 [EXAMPLES]
* BUG: IDE .settings file should not be put in subversion. Remove it from 
  Painting example.


git-svn-id: svn://localhost/gambas/trunk@2591 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-02 13:38:34 +00:00
Benoît Minisini
62ddf76303 [EXAMPLES]
* NEW: SVG drawing in Painting example has been enhanced.

[GB.GTK]
* BUG: Correctly detect file copy errors in the SvgImage.Save() method.

[GB.QT4]
* NEW: SvgImage.Load() has been implemented, and painting on a SvgImage 
  loaded from disk is now possible.
* BUG: Paint.TextExtents has been fixed to take into account negative top 
  and left extents.


git-svn-id: svn://localhost/gambas/trunk@2590 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-02 03:59:02 +00:00
Benoît Minisini
58577a9c0a [CONFIGURATION]
* NEW: Remove the gb.gtk.svg component.


git-svn-id: svn://localhost/gambas/trunk@2589 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-02 02:01:34 +00:00
Benoît Minisini
870f511e1c [GB.GTK]
* NEW: Painting on a SvgImage loaded from a SVG file is now possible.


git-svn-id: svn://localhost/gambas/trunk@2588 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-02 01:55:03 +00:00
Benoît Minisini
330a46fbed [EXAMPLES]
* NEW: Add a SVG drawing to the Painting example.

[GB.GTK]
* NEW: Use librsvg to implement SVG file loading and rendering.
* NEW: SvgImage.Load is a new method to load a SVG file from disk.
* NEW: SvgImage.Paint is a new method for painting the SvgImage to the 
  current painted device.
* BUG: Paint.TextExtents works correctly by taken into account negative 
  top and left extents.


git-svn-id: svn://localhost/gambas/trunk@2587 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-01 23:20:25 +00:00
Fabien Bodard
f543f61634 [GB.GTK]
* BUG: Now there is no segmentation fault on running.


git-svn-id: svn://localhost/gambas/trunk@2586 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-01 23:13:56 +00:00
Fabien Bodard
5a319b4eb5 [GB.GTK]
* NEW: implement Paint.TextExtents

[GB.QT4]
* NEW: implement Paint.TextExtents



git-svn-id: svn://localhost/gambas/trunk@2585 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-01 22:19:11 +00:00
Benoît Minisini
a2fa1cc408 [GB.GTK]
* NEW: SvgImage.Width and SvgImage.Height are now Float properties.

[GB.QT4]
* NEW: The SvgImage class has been implemented.


git-svn-id: svn://localhost/gambas/trunk@2584 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-01 21:32:45 +00:00
Benoît Minisini
05fe8d8446 [INTERPRETER]
* NEW: A new interpreter API to get temporary file names.
* NEW: A new interpreter API to copy a file.
* NEW: Rename the GB.GetTempDir() function to GB.TempDir(), and fix all 
  components using it.

[GB.GTK]
* NEW: SvgImage is a new class that allows to generate SVG files by 
  painting on it. But it cannot render them.


git-svn-id: svn://localhost/gambas/trunk@2583 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-01 18:45:35 +00:00
Benoît Minisini
d81bda1c5b [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly save ListBox having exactly 31 items defined from the IDE.

[INTERPRETER]
* BUG: Now when a method call fails when checking arguments, the arguments
  are correctly released.

[GB.QT4]
* NEW: The Window background picture is now drawn differently, and not 
  propagated anymore.


git-svn-id: svn://localhost/gambas/trunk@2582 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-01 14:55:13 +00:00
Benoît Minisini
dab9c93bbe [WIKI CGI SCRIPT]
* BUG: Fix a HTML markup mistake.

[GB.GTK]
* BUG: The Printer.Page property starts from 1 and not 0 anymore.

[GB.GUI]
* BUG: Add Printer control to the *.component file.

[GB.QT4]
* BUG: The Printer.Page property starts from 1 and not 0 anymore.
* BUG: Add Printer control to the *.component file.


git-svn-id: svn://localhost/gambas/trunk@2580 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-01 11:54:16 +00:00
Benoît Minisini
32d0b2e12c [GB.GTK]
* NEW: Printer implementation was completed.

[GB.FORM]
* NEW: Some control icons were updated.

[GB.QT4]
* NEW: Printer class implementation.

[GB.QT4.EXT]
* NEw: The Printer class was removed.


git-svn-id: svn://localhost/gambas/trunk@2579 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-01 02:12:35 +00:00
Laurent Carlier
6128fa8d9f [GB.GTK]
* NEW: Add the ability to init gb.gtk component through another component.

[GB.GTK.OPENGL]
* NEW: New component to manage an OpenGL through gb.gtk component

This component is pre-alpha, and doesn't work yet, but the structure is in place.


git-svn-id: svn://localhost/gambas/trunk@2576 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-31 12:57:51 +00:00
Fabien Bodard
a7c69e8357 [DEVELOPMENT ENVIRONMENT]
* NEW: Finish de project class help
  but there is a problem on inherited class info


git-svn-id: svn://localhost/gambas/trunk@2575 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-31 10:42:48 +00:00
Benoît Minisini
8e281f3181 [DEVELOPMENT ENVIRONMENT]
* NEW: Change some control icons.
* NEW: An icon for the Printer control.

[GB.GTK]
* NEW: The Printer control has been implemented.


git-svn-id: svn://localhost/gambas/trunk@2574 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-31 02:51:59 +00:00
Benoît Minisini
25df6dde6a [GB.GTK]
* BUG: Rotations must be counter-clockwise when the angle is positive.

[GB.QT4]
* BUG: Rotations must be counter-clockwise when the angle is positive.


git-svn-id: svn://localhost/gambas/trunk@2573 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 22:48:43 +00:00
Fabien Bodard
99f9df5340 [DEVELOPMENT ENVIRONMENT]
* NEW: Now the project classes symbols are correctly showed
       i just need to add constant and creatable infos


git-svn-id: svn://localhost/gambas/trunk@2572 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 22:16:57 +00:00
Benoît Minisini
b1381b8956 [EXAMPLES]
* NEW: Fix the text extend example in Painting example.

git-svn-id: svn://localhost/gambas/trunk@2571 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 22:11:45 +00:00
Benoît Minisini
e565884447 [EXAMPLES]
* NEW: Fix the radio button of the example #17 in Painting example.

git-svn-id: svn://localhost/gambas/trunk@2570 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 21:59:31 +00:00
Benoît Minisini
e5107e258e [EXAMPLES]
* NEW: Add a module that includes a function that generates all example
  source text files directly from the Gambas source file in the Painting
  example.
* NEw: Some fixes in the source code of the Painting example.

[GB.GTK]
* BUG: Paint.Text() now aligns the text to the base line when no bounding
  rectangle is specified.

[GB.QT4]
* BUG: Paint.Text() now aligns the text to the base line when no bounding
  rectangle is specified.


git-svn-id: svn://localhost/gambas/trunk@2569 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 21:55:35 +00:00
Laurent Carlier
41a6cb07b4 [GB.OPENGL]
* NEW: Remove extra parameter "size" for Gl.GetIntegerv, Gl.GetBooleanv, Gl.GetFloatv. All parameters size
  are managed internaly (at least for OpenGL 2.1). It's preferable to get an error message instead of failling silently.


git-svn-id: svn://localhost/gambas/trunk@2568 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 21:08:31 +00:00
Benoît Minisini
c188e5e00c [GB.GTK]
* BUG: Fix splitter arrangement again.
* OPT: gFont::height() has been cached.


git-svn-id: svn://localhost/gambas/trunk@2567 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 20:59:27 +00:00
Fabien Bodard
69ca2092f3 [EXAMPLES]
* NEW: New text example


git-svn-id: svn://localhost/gambas/trunk@2566 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 18:18:48 +00:00
Benoît Minisini
8a990c36d3 [EXAMPLES]
* NEW: Cosmetic changes in Painting example.

[GB.GTK]
* BUG: Remove some apparently useless arrangement hacks, to fix an 
  infinite recursion when mixing splitter and other containers.


git-svn-id: svn://localhost/gambas/trunk@2565 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 18:09:00 +00:00
Fabien Bodard
0a8c10141a [EXAMPLES]
* NEW: Painting, a text example


git-svn-id: svn://localhost/gambas/trunk@2564 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 17:38:15 +00:00
Fabien Bodard
ad03e31635 [EXAMPLES]
* NEW: Painting, more examples


git-svn-id: svn://localhost/gambas/trunk@2563 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 17:14:47 +00:00
Benoît Minisini
d8219ca649 [EXAMPLES]
* NEW: Some little cosmetic changes in Painting example.

git-svn-id: svn://localhost/gambas/trunk@2562 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 17:06:51 +00:00
Benoît Minisini
5b3d4132d2 [EXAMPLES]
* NEW: Another image in the Painting example.
* OPT: The old image was converted to JPEG.

git-svn-id: svn://localhost/gambas/trunk@2561 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 16:52:58 +00:00
Benoît Minisini
d01028cc99 [GB.DRAW]
* BUG: Fix the Brush.Matrix property management.


git-svn-id: svn://localhost/gambas/trunk@2560 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 16:33:46 +00:00
Fabien Bodard
767de86c25 [EXAMPLES]
Bug


git-svn-id: svn://localhost/gambas/trunk@2559 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 16:15:55 +00:00
Benoît Minisini
aaad5d823d [GB.QT4]
* NEW: Found a workaround to the non-antialiased clipping on X11 devices!


git-svn-id: svn://localhost/gambas/trunk@2558 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 16:13:23 +00:00
Laurent Carlier
50bb203598 [GB.OPENGL.GLSL]
* BUG: Remove Gl.GetShaders, it's an unexistant openGL function !

yes it's a mistake, MY mistake :-)


git-svn-id: svn://localhost/gambas/trunk@2557 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 16:00:42 +00:00
Fabien Bodard
36e6351a4c [EXAMPLES]
* NEW:  Painting example: Image and Image Pattern


git-svn-id: svn://localhost/gambas/trunk@2556 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 15:59:53 +00:00
Benoît Minisini
6b0fd51325 [EXAMPLES]
* NEW: Cosmetic changes again in the Painting example.

[GB.DRAW]
* NEW: Paint.RelLineTo() is implemented by using Paint.LineTo().

[GB.GTK]
* NEW: Remove the implementation of Paint.RelLineTo().

[GB.QT4]
* NEW: Remove the implementation of Paint.RelLineTo().


git-svn-id: svn://localhost/gambas/trunk@2555 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 15:23:44 +00:00
Benoît Minisini
77f8beef33 [EXAMPLES]
* NEW: Some little cosmetic changes in the Painting example.

git-svn-id: svn://localhost/gambas/trunk@2554 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 15:05:54 +00:00
Fabien Bodard
e0f1ea7dca [EXAMPLES]
* NEW:  Painting example: Fill Style Example


git-svn-id: svn://localhost/gambas/trunk@2553 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 15:00:26 +00:00
Fabien Bodard
e3127a80fe [EXAMPLES]
* NEW: Painting example: Gradient Example


git-svn-id: svn://localhost/gambas/trunk@2552 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 14:41:17 +00:00
Benoît Minisini
26e37e4a53 [EXAMPLES]
* NEW: Enhance the Painting example with a rotate and a scale sliders.

git-svn-id: svn://localhost/gambas/trunk@2551 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 14:04:25 +00:00
Fabien Bodard
1528d689fc [GB.DRAW]
* NEW: Paint.RelMoveTo and Paint.RelCurveTo have been added.


git-svn-id: svn://localhost/gambas/trunk@2550 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 13:40:13 +00:00
Laurent Carlier
5ebcb50a84 [GB.OPENGL.GLSL]
* BUG: Fix typos; GetAttachedShader() -> GetAttachedShaders(), and CreateShader signature is now "ShaderType" instead of "Type".


git-svn-id: svn://localhost/gambas/trunk@2549 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 13:33:30 +00:00
Benoît Minisini
4e47ae1785 [EXAMPLES]
* NEW: Painting example now uses a splitter.

[GB.GTK]
* BUG: Try to correctly initialize the splitter layout. Do not work yet!


git-svn-id: svn://localhost/gambas/trunk@2548 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 13:19:34 +00:00
Benoît Minisini
d036103823 [EXAMPLES]
* NEW: Add an example that shows how to use the new Paint class.


git-svn-id: svn://localhost/gambas/trunk@2547 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 12:12:09 +00:00
Fabien Bodard
e183563213 [GB.GTK]
* NEW: New function Paint.RelLineTo to draw line to positions
  relative to the current drawing position

[GB.QT4]
* NEW: New function Paint.RelLineTo to draw line to positions
  relative to the current drawing position



git-svn-id: svn://localhost/gambas/trunk@2546 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 11:09:25 +00:00
Benoît Minisini
8bd9372f83 [GB.GTK]
* BUG: Fix the Paint.LineWidth, Paint.Dash and Paint.DashOffset properties.
  Now the dash positions and the dash offset are in line width units.

[GB.QT4]
* BUG: Paint.Begin correctly initializes the default line join style.
* BUG: Draw.Begin now fails if the device is being painted somewhere else.


git-svn-id: svn://localhost/gambas/trunk@2545 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 02:15:00 +00:00
Benoît Minisini
be7b2620de [GB.GTK]
* BUG: Paint.Arc() has been fixed.

[GB.QT4]
* BUG: Paint.Begin() now starts with a solid black brush.


git-svn-id: svn://localhost/gambas/trunk@2544 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 00:12:09 +00:00
Benoît Minisini
79e76072d1 [WIKI CGI SCRIPT]
* NEW: Pages under "/comp" whose name begins with "~" are normal pages.

[GB.DRAW]
* NEW: Paint.TextExtents has been removed. Use Paint.PathExtents just after 
  having done a Paint.Text.
* BUG: Paint.RadialGradient now takes a center, a radius, and a focal 
  point, like in SVG standard.

[GB.GTK]
* BUG: Paint.RadialGradient() should have been correctly implemented.

[GB.QT4]
* NEW: Link with the QtSvg module.
* BUG: Paint.RadialGradient() has been correctly implemented.


git-svn-id: svn://localhost/gambas/trunk@2543 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 23:18:43 +00:00
Benoît Minisini
8e7661d2c6 [GB.DRAW]
* BUG: Paint.RichText() has been removed.

[GB.GTK]
* BUG: Paint.Arc() draws in the same direction as in gb.qt4.
* BUG: Paint.RichText() has been removed.
* BUG: PaintBrush.Matrix now behaves the same as in gb.qt4.

[GB.QT4]
* NEW: Paint.Text() has been implemented.
* BUG: Paint.Begin() now initializes the underlying pen the same way as in 
  gb.gtk.


git-svn-id: svn://localhost/gambas/trunk@2542 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 21:42:40 +00:00
Benoît Minisini
d752c36ade [GB.IMAGE]
* BUG: Fix the macro that splits a Gambas color into its components and 
  revert the alpha value.


git-svn-id: svn://localhost/gambas/trunk@2541 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 18:19:33 +00:00
Benoît Minisini
71af715f2a [GB.GTK]
* BUG: Fix the Draw.Text() and Draw.RichText() functions when the alignment 
  argument is used.
* NEW: Paint.Text() and Paint.RichText() were implemented.
* NEW: Paint.LinearGradient() and Paint.RadialGradient() were implemented.

[GB.QT4]
* BUG: Paint.ArcTo() should take angles in radian now.


git-svn-id: svn://localhost/gambas/trunk@2540 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 18:08:06 +00:00
Benoît Minisini
da664d19ff [GB.IMAGE]
* NEW: Image.Mask is new method that mask the colors of an image with 
  another color, and that enhance the alpha channel with the alpha channel 
  of that another color.


git-svn-id: svn://localhost/gambas/trunk@2539 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 11:56:43 +00:00