Commit graph

44 commits

Author SHA1 Message Date
Benoît Minisini
3054690743 [CONFIGURATION]
* NEW: Print a summary of warning messages after each component 
  compilation.

[INTERPRETER]
* BUG: StrPtr() with a length argument now works correctly.
* NEW: Support for callbacks: when converting a function to a Pointer, an 
  internal closure is created with the libffi library. The pointer then can 
  be sent to any extern function as function pointer argument.
* BUG: Opening memory stream should work in all cases now.


git-svn-id: svn://localhost/gambas/trunk@3038 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-14 01:50:18 +00:00
Benoît Minisini
6059d4dcb7 [GB.IMAGE]
* NEW: New API for marking an image as modified, and for synchronizing it 
  before reading it, when the temporary image owner needs it.


git-svn-id: svn://localhost/gambas/trunk@3016 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-06-19 12:38:28 +00:00
Laurent Carlier
3db06386b0 [GB.SDL]
* BUG: More work on system fonts, now system is correctly displayed.


git-svn-id: svn://localhost/gambas/trunk@3014 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-06-18 15:45:25 +00:00
Laurent Carlier
102dd5720b [GB.SDL]
* NEW: Remove libsdl_image dependency, now Image class relies completly on the 
  gb.image.io component to load images.

Less dependencies is always better.


git-svn-id: svn://localhost/gambas/trunk@3011 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-06-16 13:05:35 +00:00
Laurent Carlier
0b2beb5985 [GB.IMAGE]
* NEW: Add locking/unlocking internal api hooks, allowing Image class to be sure image is synced/locked
  to get correct access to image datas, and tag if image is altered.


git-svn-id: svn://localhost/gambas/trunk@3010 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-06-16 12:48:11 +00:00
Laurent Carlier
b87e25b5ba [GB.SDL]
* BUG: Remove buggy code, now interlacing line and image drawing work.


git-svn-id: svn://localhost/gambas/trunk@2994 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-06-05 20:39:57 +00:00
Laurent Carlier
3e92aaf056 [GB.SDL]
* NEW: New methods Font.Width() and Font.Height(), to retreive respectivly
       widht and height of text.

Now a default font (system font) is opened with New method,
but nothing is rendered yet.


git-svn-id: svn://localhost/gambas/trunk@2993 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-06-05 14:56:17 +00:00
Laurent Carlier
1334cfc928 [GB.SDL]
* BUG: Disable line smoothing, as there is problem with intel driver.

A line of width equal to 1.0 isn't displayed with smoothing enabled.



git-svn-id: svn://localhost/gambas/trunk@2985 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-30 16:23:52 +00:00
Laurent Carlier
bbddf37dca [GB.SDL]
* BUG: Fix Line/Points/... drawing with Image/Text drawing.



git-svn-id: svn://localhost/gambas/trunk@2983 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-30 12:55:15 +00:00
Laurent Carlier
cb2e6d7bd5 [GB.SDL]
* OPT: Code cleanup, use glew instead of internal functions.


git-svn-id: svn://localhost/gambas/trunk@2967 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-26 07:09:11 +00:00
Laurent Carlier
0bee2e02dd [GB.SDL]
* BUG: Properly free allocations.


git-svn-id: svn://localhost/gambas/trunk@2962 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-24 09:56:14 +00:00
Laurent Carlier
e4836e99d6 [GB.SDL]
* BUG: Do not forget to ref/unref the font.



git-svn-id: svn://localhost/gambas/trunk@2961 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-24 09:01:25 +00:00
Laurent Carlier
9510ec8d21 [GB.SDL]
* NEW: Loading font through Font.Load() method and displaying it
       with Draw.Text() method
* NEW: Draw.Rotate() and Draw.Scale() to respectivly rotate and scale
       images and fonts when displaying them.
* NEW: Draw.ForeColor() affect image displayed too.
* OPT: Some optimizations. 


git-svn-id: svn://localhost/gambas/trunk@2958 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-23 15:27:56 +00:00
Benoît Minisini
61997e8921 [DEVELOPMENT ENVIRONMENT]
* NEW: Use the new mascot to draw project directory icon.

[EXAMPLES]
* NEW: Some little changes in the Painting example.

[INTERPRETER]
* NEW: The component GB_INIT function now returns an integer that gives an 
  unloading order. The higher the returned number, the later the component 
  is unloaded. If GB_INIT returns -1, then the component shared library 
  will not be unloaded.
* NEW: Update GB_INIT functions in all components.

[GB.DRAW]
* BUG: Paint.Image() optional translation arguments are not inverted 
  anymore.

[GB.QT4]
* BUG: If Paint.LineWidth is zero, then nothing is stroked, as in gb.gtk.
* BUG: TabStrip is now correctly arranged when it has only one tab.


git-svn-id: svn://localhost/gambas/trunk@2605 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-10 13:40:48 +00:00
Laurent Carlier
9c40bbac3f [CONFIGURATION]
* BUG: Add --install glag to autoreconf, that fix creation of config files,
  also add build-dist script to create a lighter tar.bz2 archive of the
  repository.



git-svn-id: svn://localhost/gambas/trunk@2519 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-26 21:30:35 +00:00
Laurent Carlier
a05c17d9cc [GB.SDL]
* BUG: Remove running SDL events in a separate thread, as it give instability.


git-svn-id: svn://localhost/gambas/trunk@2512 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-24 12:36:05 +00:00
Laurent Carlier
aaeaf5e5bc [GB.SDL]
* NEW: Add dependency to libglew, needed for gb.opengl component.

libglew : http://glew.sourceforge.net/



git-svn-id: svn://localhost/gambas/trunk@2507 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-24 09:23:24 +00:00
Laurent Carlier
91f3527a2c [GB.SDL]
* BUG: Fix potential problem in storage with the window title.



git-svn-id: svn://localhost/gambas/trunk@2382 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-10-04 14:11:41 +00:00
Laurent Carlier
32e50b7436 [GB.SDL]
* BUG: Fix Window.Fill() method, filled color was wrong.


git-svn-id: svn://localhost/gambas/trunk@2291 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-31 15:15:56 +00:00
Laurent Carlier
cbdd7035e1 [GB.SDL]
* New: Add dependency to gb.image.io, so images can be saved through Image.Save() method.


git-svn-id: svn://localhost/gambas/trunk@2290 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-31 14:45:50 +00:00
Benoît Minisini
2b6b5ff417 [GB.SDL]
* BUG: Remove the Image.Resize method that cannot work. Let use the resize
  method from the gb.image component.


git-svn-id: svn://localhost/gambas/trunk@2272 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-25 23:34:19 +00:00
Laurent Carlier
13234bbff7 [GB.SDL]
* NEW: remove color management from gb.sdl component, as now it follow gb.image component color sheme.

It save some memory bytes, and do less code to maintain.


git-svn-id: svn://localhost/gambas/trunk@2250 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-19 16:15:43 +00:00
Benoît Minisini
a5b5e01aa7 [DEVELOPMENT ENVIRONMENT]
* BUG: In the menu editor, shortcuts are now correctly saved in all cases.

[GB.FORM.MDI]
* NEW: Ctrl+PgUp and Ctrl+PgDown are two new shortcuts to move to the 
  previous or next tab in the Workspace control.


git-svn-id: svn://localhost/gambas/trunk@2246 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-18 09:10:49 +00:00
Laurent Carlier
1187559a53 [GB.SDL]
* NEW: Add support for loaded font via SDLttf library (drawing not yet enabled)
* NEW: Add some debugging infos via environment var  DEBUG_GB_SDL
* BUG: Custom cursor (from an image) is currently disabled as it doesn't work yet

Lot of internal clean up and optimisations, not yet finished but things start to take places.



git-svn-id: svn://localhost/gambas/trunk@2243 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-17 18:08:56 +00:00
Benoît Minisini
f65184802d [CONFIGURATION]
* NEW: Update copyright and license string in all source files.


git-svn-id: svn://localhost/gambas/trunk@2241 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-17 10:41:51 +00:00
Benoît Minisini
03ecde2caa [GB.SDL]
* NEW: Replace the old specific "m4" directory by a symbolic link to the 
  common one.


git-svn-id: svn://localhost/gambas/trunk@2240 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-17 07:49:35 +00:00
Benoît Minisini
e3c447b438 [GB.SDL]
* NEW: Remove the old "m4" directory.


git-svn-id: svn://localhost/gambas/trunk@2239 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-17 07:44:53 +00:00
Benoît Minisini
96550473f7 [CONFIGURATION]
* NEW: Put custom autoconf macros in the "m4" directory.
* NEW: Drop libltdl.

[GB.IMAGE]
* NEW: Image.Resize() and Image.Mirror() has been put in common there.
* NEW: Image.Flip() has been removed.
* NEW: Image.Copy() and Image.Resize() now supports 24-bits images.

[GB.OPENGL]
* NEW: Depends on gb.image now.
* NEW: Texture images can have any format now.


git-svn-id: svn://localhost/gambas/trunk@2236 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-16 22:07:48 +00:00
Benoît Minisini
5e79f7228e [CONFIGURATION]
* BUG: Fix the GB_COMPONENT() macro so that it defines XXX_LDFLAGS and 
  XXX_LIB variables as in the GB_COMPONENT_PKG_CONFIG() macro. The 
  Makefile.am files of components were fixed accordingly.

[GB.DB.FIREBIRD]
* NEW: Switch to ibpp 2.5.3.1.
* BUG: Link the driver to the fbclient library.

[GB.GTK]
* NEW: TreeView.Item.ParentKey and ColumnView.Item.ParentKey were 
  implemented.

[GB.QT]
* NEW: TreeView.Item.ParentKey and ColumnView.Item.ParentKey were 
  implemented.

[GB.QT4]
* NEW: TreeView.Item.ParentKey and ColumnView.Item.ParentKey were 
  implemented. The previous change incorrectly talked about 
  TreeView.ParentKey and ColumnView.ParentKey.


git-svn-id: svn://localhost/gambas/trunk@2066 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-07-03 23:41:55 +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
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
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
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
e945a9faa6 [INTERPRETER]
* NEW: Requesting a component interface automatically loads the component 
  now.
* NEW: The Image and Picture functions in the interpreter API were removed.

[GB.DRAW]
* NEW: A new function in the Draw interface to get the size of a picture.
  This function replaces the removed Picture interpreter API.

[GB.IMAGE]
* NEW: This is a new component that manages images in memory. It implements 
  the Image class, can create images of many formats (RGB, RGBA, BGRA...) 
  and convert image data between different formats. This component replaces
  the previous interpreter Image API. All components were ported to this
  new image management system by loading this component automatically.
  Beware that the Image constructor has changed! The transparent property
  has been removed, and there is an optional color argument that is used
  for initializing the image data. Moreover, many classes (Webcam, 
  PdfDocument...) that have an Image property lost their Picture property.
  Now to get a Picture, you must use the Image property and then convert
  the Image to a Picture.

[GB.QT]
* BUG: As now the Image class overrides the one located in gb.image, it 
  must be declared early, at least earlier than the Picture class.


git-svn-id: svn://localhost/gambas/trunk@1803 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-01-16 23:12:10 +00:00
Benoît Minisini
7323ee03a3 [CONFIGURATION]
* BUG: Fix the configuration of gb.image.info.

[INTERPRETER]
* NEW: The GB.LoadFile() and GB.ReleaseFile() API have changed. Now they 
  always use memory mapping instead of loading the file in memory.

[GB.IMAGE.INFO]
* BUG: Now ImageStat() works with the "~" shortcut in path names.


git-svn-id: svn://localhost/gambas/trunk@1748 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-12-28 22:41:55 +00:00
Laurent Carlier
27af745e5f More code cleanups
git-svn-id: svn://localhost/gambas/trunk@1544 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-09-06 21:49:46 +00:00
Laurent Carlier
85c3a1013b small cleanup and first test of git-svn !
git-svn-id: svn://localhost/gambas/trunk@1540 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-09-04 21:49:22 +00:00
Laurent Carlier
b44fe1941d [GB.SDL]
* NEW: Add Tracking property in Window class, if Tracking is set, MouseMove is raised without any button pressed.
  


git-svn-id: svn://localhost/gambas/trunk@1490 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-08-08 12:40:54 +00:00
Laurent Carlier
71d887bd05 [GB.SDL]
* BUG: Removed linking against libGL, as libSDL is already linked with 
it. This fixed gbi segfault on my box. 



git-svn-id: svn://localhost/gambas/trunk@1448 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-07-14 14:18:18 +00:00
Benoît Minisini
f9aee465a3 [CONFIGURATION]
* BUG: config.h.in files were removed from repository.

[DEVELOPMENT ENVIRONMENT]
* BUG: The initial stack backtrace list width is correct now.


git-svn-id: svn://localhost/gambas/trunk@1233 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-23 01:07:33 +00:00
Benoît Minisini
e4d7400aa3 [CONFIGURATION]
* NEW: Removed the out-of-date README.FEDORA and README.REDHAT files.

[EXAMPLES]
* BUG: Fixed the MoviePlayer example.
* BUG: Fixed the Clock example.

[WIKI CGI SCRIPT]
* NEW: More titles and less borders.

[INTERPRETER]
* BUG: Uses the accurate method prototypes for Byte, Short and Single array
  classes.
* BUG: Many fixes in the error management.

[GB.DB]
* BUG: Fixed many warnings and some 64 bits stuff in all database drivers.

[GB.DEBUG]
* NEW: More explicit error messages when the creation of debugger fifos 
  fails.

[GB.COMPRESS.ZLIB]
* BUG: Fixed the compilation on 64 bits OS.

[GB.CORBA]
* NEW: Fixed some warnings.

[GB.GTK]
* NEW: Fixed some warnings.

[GB.IMAGE]
* NEW: Fixed some warnings.

[GB.NET.SMTP]
* NEW: Fixed some warnings.

[GB.PDF]
* NEW: Fixed some warnings.

[GB.QT.KDE]
* NEW: Fixed some warnings.

[GB.SDL]
* NEW: Fixed some warnings.

[GB.SDL.SOUND]
* NEW: Fixed some warnings.

[GB.XML]
* NEW: Fixed some warnings.

[GB.XML.XLST]
* NEW: Fixed some warnings.



git-svn-id: svn://localhost/gambas/trunk@1055 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-02 10:54:13 +00:00
Benoît Minisini
72aabf1920 [CONFIGURATION]
* BUG: Try to detect correctly all X11 linking paramters.

[64 BITS]
* NEW: Start to remove all ambiguous datatypes.

[DEVELOPMENT ENVIRONMENT]
* NEW: The gambas2 project was renamed to gambas3.
* BUG: The completion and signature font sizes are now the default one.
* NEW: Add support for Basque language.

[WIKI CGI SCRIPT]
* BUG: The symbol pages work again, and inheritance between class belonging
  to different components now is taken into account correctly.

[SCRIPTER]
* NEW: The gbs2 project was renamed to gbs3.


git-svn-id: svn://localhost/gambas/trunk@914 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-05 14:07:21 +00:00
Laurent Carlier
8503ca8d38 [GB.SDL]
* BUG: Add local macro for libsdl check. Should fix problems when sdl development files are not installed.



git-svn-id: svn://localhost/gambas/trunk@898 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-31 15:06:15 +00:00
Benoît Minisini
ba19f3c1dd * Copy https://gambas.svn.sourceforge.net/svnroot/gambas/2.0 to https://gambas.svn.sourceforge.net/svnroot/gambas/gambas
git-svn-id: svn://localhost/gambas/trunk@893 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-30 16:41:49 +00:00