Commit graph

392 commits

Author SHA1 Message Date
Benoît Minisini
114d4b3211 [GB.IMAGE]
* NEW: Image.Colorize() is a new method for colorizing an image.


git-svn-id: svn://localhost/gambas/trunk@1869 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-13 00:12:07 +00:00
Benoît Minisini
e2c952c375 [DEVELOPMENT ENVIRONMENT]
* BUG: UTF-8 characters are allowed in project data file names now.

[INTEPRETER]
* NEW: Allocation debugging messages can be redirected to a log file.

[GB.DB.FORM]
* BUG: DataBrowser FBrowser form does not incorrectly override Form.Panel 
  anymore.

[GB.GTK]
* BUG: TabStrip.Font now behaves as expected.
* BUG: GridView Row and Column properties can be set independently.
* BUG: Fix the container arrangement and the ClientX / ClientY properties.

[GB.FORM]
* OPT: FileView redraws were delayed so that they are optimized.
* BUG: Balloon tried to not take the focus.

[GB.QT]
* BUG: Fix the GridView last column stretching.

[GB.QT4]
* NEW: The AutoResize property of Button, ToolButton and ToggleButton 
  controls were implemented.
* BUG: Button, ToolButton and ToggleButton now behave correctly when their
  font change.
* OPT: Arrangement was optimized.
* BUG: TabStrip ClientX, ClientY, ClientWidth and ClientHeight properties 
  now return accurate values.

[GB.QT4.EXT]
* BUG: Editor now draws non-highlighted lines correctly.


git-svn-id: svn://localhost/gambas/trunk@1868 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-12 16:43:25 +00:00
Benoît Minisini
a9788faff4 [GB.CAIRO]
* BUG: Cairo.Restore really restores.


git-svn-id: svn://localhost/gambas/trunk@1867 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-12 16:23:37 +00:00
Benoît Minisini
30c9618d6b [INTERPRETER]
* BUG: Fix a string memory leak.


git-svn-id: svn://localhost/gambas/trunk@1863 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-06 17:40:15 +00:00
Benoît Minisini
264a4f1cbd [INTERPRETER]
* BUG: Remove stderr redirection.


git-svn-id: svn://localhost/gambas/trunk@1862 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-06 12:07:52 +00:00
Benoît Minisini
d6b1f777da [INTERPRETER]
* NEW: Temporarily disable memory leak warning message.


git-svn-id: svn://localhost/gambas/trunk@1861 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-06 12:05:39 +00:00
Benoît Minisini
1fa019cd45 [INTERPRETER]
* BUG: Correctly close streams i.e. ignore only standard streams.


git-svn-id: svn://localhost/gambas/trunk@1860 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-05 14:53:16 +00:00
Benoît Minisini
c2e1eb9778 [INTERPRETER]
* BUG: Buffered streams now correctly handle interrupted system calls.

[GB.CAIRO]
* BUG: Cairo.Scale() now scales.


git-svn-id: svn://localhost/gambas/trunk@1859 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-05 13:52:52 +00:00
Benoît Minisini
3207ea9c1f [INTERPRETER]
* BUG: Fix a backtrace memory leak in error management.
* BUG: Fix a memory leak in process streams.

[GB.FORM]
* BUG: Some bug fixes in DatePicker. It does not work correctly with 
  gb.gtk yet!

[GB.GTK]
* BUG: Fix the container arrangement and the ClientX / ClientY properties.
* BUG: A form is not its own event observer if one was specified at 
  instanciation time.

[GB.QT]
* OPT: The container arrangement is now triggered the same way as in 
  gb.gtk. No Qt event filter is used anymore.

[GB.QT4]
* OPT: The container arrangement optimization from gb.qt has been partially
  applied to gb.qt4.


git-svn-id: svn://localhost/gambas/trunk@1858 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-04 22:51:20 +00:00
Benoît Minisini
d58606d016 [GB.CAIRO]
* BUG: Try to compile with cairo 1.6.

git-svn-id: svn://localhost/gambas/trunk@1857 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-04 18:24:32 +00:00
Benoît Minisini
8432ccbbdf [GB.CAIRO]
* NEW: Require cairo 1.6 instead of 1.8.


git-svn-id: svn://localhost/gambas/trunk@1856 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-04 18:16:56 +00:00
David Villalobos Cambronero
c37caeb4dd [DEVELOPMENT ENVIRONMENT]
* NEW: Spanish translation updated.

git-svn-id: svn://localhost/gambas/trunk@1855 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-03 15:56:14 +00:00
Benoît Minisini
e0f0faa091 [GB.QT]
* BUG: Make change in border management source code compile without X11.


git-svn-id: svn://localhost/gambas/trunk@1854 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-03 15:27:14 +00:00
Benoît Minisini
acf6809ac7 [GB.QT]
* BUG: Try to fix the borderless windows that have a border with Metacity.


git-svn-id: svn://localhost/gambas/trunk@1852 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-03 15:11:28 +00:00
Benoît Minisini
8a671a8b07 [DEVELOPMENT ENVIRONMENT]
* NEW: Disable main toolbar buttons instead of hiding them. This is more 
  practical to use.
* BUG: Fix a warning message when displaying auto-completion.

[GB.FORM.MDI]
* NEW: Toolbar.Configure is a new method that is a synonymous of like 
  Action.ConfigureToolbar.
* BUG: Toolbar buttons are always correctly initialized the first time a 
  toolbar is shown now.
* BUG: Toolbars do not flicker anymore when their configuration dialog is 
  shown.


git-svn-id: svn://localhost/gambas/trunk@1851 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-03 02:07:44 +00:00
Benoît Minisini
bea17ca87c [GB.CAIRO]
* NEW: CairoExtents.Merge is a new method to merge extents.
* NEW: Cairo.ColorPattern is like Cairo.SolidPattern, but takes an integer 
  Gambas color instead of Cairo color components.
* BUG: All extents properties are correctly declared as returning a 
  CairoExtents object.

[GB.IMAGE]
* NEW: Image.Copy() is now part of gb.image.


git-svn-id: svn://localhost/gambas/trunk@1850 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-02 23:46:01 +00:00
Benoît Minisini
d3ea790600 [EXAMPLES]
* BUG: Fix PdfViewer example as the PdfDocument.Picture property does not 
  exist anymore.

[INTERPRETER]
* BUG: MOD works again with Long values.

[GB.CAIRO]
* BUG: Fix CairoMatrix.Translate() declaration.
* BUG: Correctly release device and pattern at Cairo.End().
* BUG: Automatically call Cairo.End() as many time as needed at program 
  exit.


git-svn-id: svn://localhost/gambas/trunk@1849 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-02 21:16:58 +00:00
Benoît Minisini
52525b957a [INTERPRETER]
* BUG: Fix symbol overriding validation on 64 bits OS.


git-svn-id: svn://localhost/gambas/trunk@1847 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-02 14:53:45 +00:00
Benoît Minisini
7b8d19516e [INTERPRETER]
* BUG: Do not close standard file descriptor during exit.


git-svn-id: svn://localhost/gambas/trunk@1846 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-02 13:04:04 +00:00
Benoît Minisini
4d91620b03 [INTERPRETER]
* BUG: Some 64 bits fixes.

[COMPILER]
* BUG: Fix how two error messages are printed.


git-svn-id: svn://localhost/gambas/trunk@1845 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-02-02 11:34:23 +00:00
Benoît Minisini
d9b01cf9f1 [INTERPRETER]
* BUG: Add a debugging message when there is a symbol override error.


git-svn-id: svn://localhost/gambas/trunk@1839 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-31 15:54:28 +00:00
Benoît Minisini
741cd010cd [COMPILER]
* NEW: Add the '^=' assignment operator.


git-svn-id: svn://localhost/gambas/trunk@1837 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-30 01:28:35 +00:00
Benoît Minisini
084f682161 [INTERPRETER]
* BUG: Fix the arithmetic operations on Boolean, Byte and Short, so that 
  everything is correctly truncated.


git-svn-id: svn://localhost/gambas/trunk@1836 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-30 01:16:03 +00:00
Oddjobz
8012b4f362 [GB.V4L]
* NEW: renamed _Max properties, added *Default properties, included 'Features' in main class



git-svn-id: svn://localhost/gambas/trunk@1834 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-29 18:57:11 +00:00
Oddjobz
44dfa05649 [EXAMPLES]
* NEW: New example in Video section called "WebCam" to demo V4L2



git-svn-id: svn://localhost/gambas/trunk@1833 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-29 18:55:40 +00:00
Benoît Minisini
98dfd94c5a [DEVELOPMENT ENVIRONMENT]
* BUG: Replace "Image provider" feature by "Image loading and saving" 
  feature in the project property dialog.

[INTERPRETER]
* NEW: Collection[""] does not raise a "void key" error anymore. It just 
  returns NULL.
* BUG: The Collection array accessor error management is not disturbed by 
  the debugger anymore. This fix a possible interpreter crash.


git-svn-id: svn://localhost/gambas/trunk@1832 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-29 16:11:30 +00:00
Oddjobz
a751dbb16f [GB.V4l]
* NEW: Include kernel header (videodevice2.h) directly as some older kernels
  seem to be out of date. This should be backwards compatible and not affect
  older machines, and *should* allow the code to compile on older machines
  without losing the desired tracking features.



git-svn-id: svn://localhost/gambas/trunk@1831 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-29 10:15:44 +00:00
Benoît Minisini
a652b6a92c [GB.DESKTOP]
* BUG: Remove useless dependencies, and fix the *.component file.


git-svn-id: svn://localhost/gambas/trunk@1830 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-28 23:04:59 +00:00
Benoît Minisini
aacd7c0a69 [GB.IMAGE]
* BUG: Forgot to add two source files.


git-svn-id: svn://localhost/gambas/trunk@1827 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-28 17:13:14 +00:00
Benoît Minisini
ff36174d95 [DEVELOPMENT ENVIRONMENT]
* BUG: A badly named environmental variable does not freeze the IDE anymore.

[GB.DEBUG]
* NEW: Do not block anymore when opening the debug fifo for writing. Try a
  few times during 0.1 second.


git-svn-id: svn://localhost/gambas/trunk@1826 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-28 00:22:26 +00:00
Benoît Minisini
e2d119d449 [GB.DB.MYSQL]
* BUG: 'Quote' can not be used as an identifier anymore. Fix that.


git-svn-id: svn://localhost/gambas/trunk@1824 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-27 17:07:47 +00:00
Benoît Minisini
e22c1b2059 [GB.IMAGE]
* BUG: Remove debugging messages.


git-svn-id: svn://localhost/gambas/trunk@1823 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-27 14:25:59 +00:00
Benoît Minisini
272b14759e [INFORMER]
* BUG: Do not print included component information files.

[GB.CAIRO]
* NEW: The CairoMatrix class was completed.
* NEW: The CairoPattern class got its Matrix and Filter properties.

[GB.IMAGE]
* BUG: When a component takes ownership of an image, the image format is 
  correctly set now.
* NEW: Most of the Color class was moved to this component.

[GB.IMAGE.IO]
* BUG: Use the right RGBA image format when loading images.

[GB.V4L]
* BUG: Fix the *.component file.


git-svn-id: svn://localhost/gambas/trunk@1822 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-27 13:39:38 +00:00
Benoît Minisini
7035914034 [CONFIGURATION]
* NEW: Update requirements in many *.component files.

[DEVELOPMENT ENVIRONMENT]
* NEW: Update component names and component features.


git-svn-id: svn://localhost/gambas/trunk@1821 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-27 01:29:38 +00:00
Benoît Minisini
b458334f0b [GB.CAIRO]
* NEW: Transformation and matrix functions were implemented.

[GB.IMAGE]
* NEW: The format conversion function comes back in the gb.image API.

[GB.IMAGE.IO]
* NEW: New component for loading and saving images.


git-svn-id: svn://localhost/gambas/trunk@1820 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-27 01:24:19 +00:00
Benoît Minisini
f22644997e [GB.GTK]
* BUG: Define the default image format when the gb.gtk component is used.
* BUG: Image.Load() does not crash anymore.

[GB.IMAGE]
* BUG: Sometimes the conversion between formats was not done. That was 
  fixed.


git-svn-id: svn://localhost/gambas/trunk@1819 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-26 17:42:53 +00:00
Benoît Minisini
3769319e5a [GB.CAIRO]
* NEW: New Cairo functions has been implemented. Transformation and text 
  functions are missing yet.


git-svn-id: svn://localhost/gambas/trunk@1818 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-26 14:22:52 +00:00
Benoît Minisini
4f131896d8 [CONFIGURATION]
* NEW: Support for gb.cairo.

[GB.CAIRO]
* NEW: This component allows to use the Cairo library to draw on images.
  Many functions are not implemented yet. Text and Font functions for 
  example.


git-svn-id: svn://localhost/gambas/trunk@1817 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-26 12:25:35 +00:00
Benoît Minisini
14d30cdaa7 [EXAMPLES]
* NEW: Use a DrawingArea to display video frames in the MyWebCam example. 
  Use the VideoDevice.Image property too, as the Picture property has been 
  removed.


git-svn-id: svn://localhost/gambas/trunk@1816 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-25 22:29:21 +00:00
Benoît Minisini
7d00d8e105 [GB.DRAW]
* BUG: Draw.Zoom() is back, and use the gb.image component interface.

[GB.IMAGE]
* NEW: A new function in the interface for retrieving the color of a pixel.


git-svn-id: svn://localhost/gambas/trunk@1815 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-25 22:23:04 +00:00
Benoît Minisini
3a5c1d1308 [GB.IMAGE]
* BUG: Fix image data allocation in the image conversion routine.


git-svn-id: svn://localhost/gambas/trunk@1814 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-25 13:17:02 +00:00
Oddjobz
f1ee924a55 [GB.IMAGE]
* BUG: Comment out line to enable compilation - work still to do on "Convert" !
* BUG: Fix memory allocation bug that was causing all the crashes ..
  Turns out the conversion code was calculating the size of width * height * sizeof(uint)
  and IMAGE_size was using width * height * (3 or 4 depending on image format)
  which caused a lack of memory in the image conversion routines ...



git-svn-id: svn://localhost/gambas/trunk@1813 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-23 11:54:26 +00:00
Benoît Minisini
9a524f2abc [GB.IMAGE]
* BUG: Fix image conversion process. But now Draw.Zoom only works with 
  gb.qt at the moment.


git-svn-id: svn://localhost/gambas/trunk@1812 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-23 08:22:03 +00:00
Benoît Minisini
d4b3628df3 [GB.IMAGE]
* NEW: Simplify the job of components that can take ownership of images.


git-svn-id: svn://localhost/gambas/trunk@1811 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-22 00:47:14 +00:00
Benoît Minisini
111ad81271 [DEVELOPMENT ENVIRONMENT]
* BUG: Use the new Image constructor syntax.


git-svn-id: svn://localhost/gambas/trunk@1810 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-21 19:58:28 +00:00
Benoît Minisini
dd5be3f66b [GB.IMAGE]
* BUG: The third argument of Image constructor is now ignored if it is -1, 
  so that the old syntax does not create an image with premultiplied alpha.


git-svn-id: svn://localhost/gambas/trunk@1809 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-21 19:57:53 +00:00
David Villalobos Cambronero
d3ebdea0d6 [DEVELOPMENT ENVIROMENT]
* NEW: Spanish translation updated.

git-svn-id: svn://localhost/gambas/trunk@1808 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-21 19:48:30 +00:00
Benoît Minisini
b6b2e0425e [CONFIGURATION]
* BUG: Compiles qt4 directory recursively.

[GB.QT]
* NEW: The default image format of gb.qt is BGRA.

[GB.QT4]
* BUG: Fix GridView last column automatic stretching.
* NEW: The default image format of gb.qt4 is BGRA.


git-svn-id: svn://localhost/gambas/trunk@1807 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-21 01:29:08 +00:00
Benoît Minisini
abf033e85a [DEVELOPMENT ENVIRONMENT]
* BUG: Fix the welcome dialog as the Image constructor has changed.

[WIKI CGI SCRIPT]
* NEW: New look for the path and language header.

[INFORMER]
* NEW: The components are analyzed in alphabetical order now.
* NEW: A component can include more than one other component information 
  file.

[GB.IMAGE]
* BUG: Fix two memory leaks.
* NEW: A component can define a default format for new images. This avoid
  unnecessary format conversions. The "default default format" is RGBA.
* BUG: RGBx formats are correctly supported by image methods.

[GB.QT]
* BUG: Fix GridView last column automatic stretching.


git-svn-id: svn://localhost/gambas/trunk@1806 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-21 01:25:13 +00:00
Oddjobz
492bd2a0c8 [GB.V4L]
* NEW: Initial support for V4L2 devices using the V4L2 interface
* NEW: Support for devices with YUYV and YUV420[p] outputs
* BUG: V4L2 streams not yet implemented
* BUG: V4L2 tuner not yet implemented
* OPT: V4L driver auto-selects V1/V2 depending on device capabilities
  Version 2 will be used if possible, but V1 can be forced in VideoDevice()



git-svn-id: svn://localhost/gambas/trunk@1805 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-20 15:38:08 +00:00