Commit graph

3437 commits

Author SHA1 Message Date
Benoît Minisini
3507637a45 [DEVELOPMENT ENVIRONMENT]
* BUG: Get rid of the last use of the deprecated DrawingArea.Painted 
  property.

[INTERPRETER]
* NEW: The deprecated API message now displays the current code position.

[GB.FORM]
* NEW: The FileChooser and DirChooser label that displays the current 
  directory now "ellipsized" it if there is not enough room.

[GB.GTK]
* BUG: All style drawing methods now draw at the correct position.
* NEW: Start replacing old GDK drawing methods by Cairo methods.

[GB.MAP]
* NEW: Rename the MapViewer control as MapView.
* BUG: Don't redefine standard events. Use a proxy instead.


git-svn-id: svn://localhost/gambas/trunk@5396 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-29 12:43:29 +00:00
Benoît Minisini
6d6977f6e1 [DEVELOPMENT ENVIRONMENT]
* BUG: Don't loop endlessly if a class inherits itself.


git-svn-id: svn://localhost/gambas/trunk@5395 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-29 11:42:35 +00:00
Benoît Minisini
f131eb6060 [COMPILER]
* BUG: Prevent self-inheritance.


git-svn-id: svn://localhost/gambas/trunk@5394 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-29 11:41:42 +00:00
Benoît Minisini
fcaaff08dd [DEVELOPMENT ENVIRONMENT]
* OPT: Saving a form now refreshes the stack window only once.

[GB.FORM]
* NEW: IconPanel now is flat.


git-svn-id: svn://localhost/gambas/trunk@5393 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-28 23:38:19 +00:00
Benoît Minisini
4512fa0c1d [GB.NET.CURL]
* BUG: Fix memory leaks when asynchronous clients are pending when quitting
  the program.


git-svn-id: svn://localhost/gambas/trunk@5392 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-28 22:55:23 +00:00
Benoît Minisini
76709ee739 [GB.MAP]
* NEW: Use four Http clients by default.
* BUG: Use all available clients when the timer is triggered, otherwise 
  only one is used.
* BUG: Do not call Trigger several times, it is useless.


git-svn-id: svn://localhost/gambas/trunk@5391 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-28 22:55:13 +00:00
Fabien Bodard
cb2de0a2f9 [GB.MAP]
* OPT: Some changes on the map cache like using timer trigger.


git-svn-id: svn://localhost/gambas/trunk@5390 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-28 19:32:57 +00:00
Fabien Bodard
0fd26e97c6 git-svn-id: svn://localhost/gambas/trunk@5389 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2012-11-28 17:43:18 +00:00
Fabien Bodard
a919821ec3 [GB.MAP]
* OPT: Rewrite a cache class more clean.
* NEW: New type MapBounds that represent a rect with lat lon limits.


git-svn-id: svn://localhost/gambas/trunk@5388 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-28 17:42:28 +00:00
Benoît Minisini
e04e38e170 [GB.DRAW]
* BUG: Fix the '_call_ special methods of Rect, RectF, Point and PointF, 
  that must be static.

[GB.GUI.BASE]
* BUG: Fix Rect symbol clash in Draw.Zoom.
* NEW: ScrollArea.Painted property is now deprecated.


git-svn-id: svn://localhost/gambas/trunk@5387 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-28 03:32:55 +00:00
Benoît Minisini
2f4d1b7d2e [GB.DRAW]
* BUG: Fix Paint.ZoomImage() method.

[GB.GTK]
* BUG: Paint.Begin() correctly initializes the line width to 1.0.

[GB.GUI.BASE]
* NEW: Draw.Polygon now uses Paint.Polygon.


[GB.QT4]
* BUG: Clipboard.Type correctly returns Clipboard.Image after an image has 
  been copied to the clipboard.


git-svn-id: svn://localhost/gambas/trunk@5386 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-27 23:40:28 +00:00
Benoît Minisini
a612052f95 [EXAMPLES]
* NEW: Paiting example: add an example for rounded rectangles.

[GB.DRAW]
* NEW: Paint.Polygon() is a new method that paints a closed polygon.
* NEW: Paint.Rectangle() now takes an optional radius argument. If its is
  specified with a value greater than zero, then a rounded rectangle is 
  painted.


git-svn-id: svn://localhost/gambas/trunk@5385 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-27 22:27:40 +00:00
Benoît Minisini
8bbe87a6d3 [DEVELOPMENT ENVIRONMENT]
* BUG: Remove uses of DrawingArea.Painted.

[GB.FORM]
* BUG: Remove uses of DrawingArea.Painted.

[GB.GUI.BASE]
* BUG: Fix Draw.Style.Box() method.

[GB.MAP]
* NEW: MapPoint.Distance() is a new method that returns the geodesic 
  distance between two points.
* NEW: Map.From() is a new method that returns the position of a point from
  an initial point, a direction and a distance.
* NEW: Map.Bearing() is a new method that returns the direction from an 
  initial point to a destination point.


git-svn-id: svn://localhost/gambas/trunk@5384 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-27 20:10:39 +00:00
Sebastian Kulesz
94dcc2d56a [GB.MEMCACHED]
* OPT: Hide protocol specific symbols


git-svn-id: svn://localhost/gambas/trunk@5383 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-27 19:34:49 +00:00
Benoît Minisini
520e978feb [DEVELOPMENT ENVIRONMENT]
* NEW: Update error messages.

[GB.DRAW]
* NEW: The Draw class has been removed.
* NEW: Paint.Ellipse() is a new method that paints an ellipse.
* NEW: Paint.TextSize() returns the bounding box of a text like 
  Draw.TextWidth() and Draw.TextHeight() did, which is not the same thing 
  as Paint.TextExtents().
* NEW: Paint.RichTextSize() returns the bounding box of a rich text like 
  Draw.RichTextWidth() and Draw.RichTextHeight() did, which is not the same 
  thing as Paint.RichTextExtents().
* NEW: Paint.FillRect() fills a rectangle with a specific color.
* NEW: Paint.DrawImage() takes an extra 'Source' argument which is a 
  rectangle describing a piece of the source image.
* NEW: Paint.DrawPicture() now replaces the old Draw.Picture() method.
* NEW: Paint.ZoomImage() now replaces the old Draw.Zoom() method.
* NEW: The default line width after a Paint.Begin() is one pixel now.

[GB.GTK]
* NEW: DrawingArea.Painted has been deprecated.
* BUG: Don't use the 'cairo_set_device_offset' method to draw on a 
  DrawingArea, but a matrix translation.
* NEW: Support for the new Paint methods.
* NEW: The old Draw.Style methods have been moved to the Style class.
* NEW: You cannot draw on a Window anymore.

[GB.GUI.BASE]
* NEW: Do not highlight the sorted column in GridView, TreeView, ListBox... 
  if there is only one column.
* NEW: Implement a new Draw class that simulates the old one by using the
  Paint class.

[GB.JIT]
* BUG: Fix the argument order of E_NSYMBOL error message.

[GB.QT4]
* NEW: DrawingArea.Painted has been deprecated.
* NEW: Support for the new Paint methods.
* NEW: The old Draw.Style methods have been moved to the Style class.
* NEW: You cannot draw on a Window anymore.


git-svn-id: svn://localhost/gambas/trunk@5382 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-27 18:42:24 +00:00
Benoît Minisini
bc484c31ca [EXAMPLES]
* NEW: Maps example: fix a few typo and clean up the window design.


git-svn-id: svn://localhost/gambas/trunk@5381 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-27 17:24:04 +00:00
Sebastian Kulesz
d2f042111f [GB.MEMCACHED]
* BUG: Hide the Disconnect function from the user.



git-svn-id: svn://localhost/gambas/trunk@5380 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-27 02:12:25 +00:00
Sebastian Kulesz
6d4a5e9762 [DEVELOPMENT ENVIRONMENT]
* NEW: Updated Spanish translation


git-svn-id: svn://localhost/gambas/trunk@5379 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-27 00:59:15 +00:00
Benoît Minisini
803de2fe89 [DEVELOPMENT ENVIRONMENT]
* NEW: Publish the Gambas font under the SIL Open Font License, like the
  Terminus font it is based on. Update the welcome screen and the license
  message accordingly.
* NEW: Put the translation dialog button into a menu, and add two new 
  actions to export only the untranslated strings, only the translated 
  strings, or all strings like before.


git-svn-id: svn://localhost/gambas/trunk@5378 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-26 13:35:49 +00:00
Benoît Minisini
9938807f14 [GB.GTK]
* BUG: Make gb.gtk compile with cairo version < 1.10.


git-svn-id: svn://localhost/gambas/trunk@5377 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-26 08:27:27 +00:00
Benoît Minisini
7326cc894b [GB.DRAW]
* NEW: Paint.DrawImage() now takes a source rectangle.
* NEW: Paint.DrawPicture() is a replacement for Draw.Picture().
* NEW: Paint.ZoomImage() is a replacement for Draw.Zoom().

[GB.GTK]
* NEW: Start implementing new Paint methods.

[GB.QT4]
* NEW: Start implementing new Paint methods.


git-svn-id: svn://localhost/gambas/trunk@5376 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-26 06:33:49 +00:00
Tobias Boege
285cf7a578 [GB.DATA]
* BUG: Fix division by zero when read/write pointer is set on 0-length
  Circular (useless but legal).



git-svn-id: svn://localhost/gambas/trunk@5375 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-25 19:09:21 +00:00
Fabien Bodard
3aa8ced520 [GB.MAP]
* BUG: Truely rename LatLon into MapPoint


git-svn-id: svn://localhost/gambas/trunk@5374 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-25 18:27:14 +00:00
Fabien Bodard
cfd1b9641c [GB.MAP]
* OPT: More optimizations


git-svn-id: svn://localhost/gambas/trunk@5373 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-25 17:45:30 +00:00
Fabien Bodard
ee118e95f5 [EXAMPLES]
* BUG: Make change on the map example to take new gb.map API into account


git-svn-id: svn://localhost/gambas/trunk@5372 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-25 17:38:57 +00:00
Fabien Bodard
2902e63546 [GB.MAP]
* OPT: Rename MTile in Geo


git-svn-id: svn://localhost/gambas/trunk@5371 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-25 17:32:51 +00:00
Fabien Bodard
18fb03e718 [GB.MAP]
* BUG: Export MTiles


git-svn-id: svn://localhost/gambas/trunk@5370 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-25 17:28:42 +00:00
Fabien Bodard
04367baefa [GB.MAP]
* OPT: Remove Unneeded modules


git-svn-id: svn://localhost/gambas/trunk@5369 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-25 17:26:47 +00:00
Fabien Bodard
65065c6a26 [GB.MAP]
* New: The tiles are loaded from the center to the outside
* New: A new Module centralise the projections transformations.
* New: LatLon is now renamed MapPoint.
* OPT: The classes FRect and FPoint have been removed. Now PointF and RectF
  standart draw types are used(and as well Point and rect)



git-svn-id: svn://localhost/gambas/trunk@5368 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-25 16:31:47 +00:00
Laurent Carlier
0f42c71746 [GB.OPENGL.GLU]
* BUG: Fix typos in Glu.Project and associated methods.


git-svn-id: svn://localhost/gambas/trunk@5367 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-25 10:46:15 +00:00
Benoît Minisini
7af5ee2344 [GB.DRAW]
* NEW: Paint.BrushOrigin is a new property that allows to define the origin 
  of the brush.
* NEW: Paint.FillRect is a new property equivalent to Draw.FillRect.

[GB.GTK]
* NEW: Support for the new Paint methods.

[GB.GUI.BASE]
* NEW: Start to implement a Draw static class based on the Paint class.
  That class aims at replacing the current Draw class. As it will be based 
  on the Paint class, it will be able to act on Image and Printer, making
  the old Gambas 2 printing code works with Gambas 3 directly.

[GB.QT4]
* NEW: Support for the new Paint methods.


git-svn-id: svn://localhost/gambas/trunk@5365 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-25 01:39:49 +00:00
Fabien Bodard
9de93d510e git-svn-id: svn://localhost/gambas/trunk@5364 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2012-11-24 23:26:59 +00:00
Benoît Minisini
1d7db62a60 [GB.DRAW]
* BUG: Guess what: fix compilation of gb.draw (IV).


git-svn-id: svn://localhost/gambas/trunk@5363 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-24 22:39:13 +00:00
Benoît Minisini
46880072e4 [GB.DRAW]
* BUG: Fix compilation of gb.draw (third episode).


git-svn-id: svn://localhost/gambas/trunk@5362 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-24 22:26:07 +00:00
Benoît Minisini
221c207082 [GB.DRAW]
* BUG: Fix compilation of gb.draw (again!).


git-svn-id: svn://localhost/gambas/trunk@5361 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-24 22:20:39 +00:00
Benoît Minisini
a02623b6eb [GB.DRAW]
* BUG: Fix compilation of gb.draw.


git-svn-id: svn://localhost/gambas/trunk@5360 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-24 21:41:28 +00:00
Benoît Minisini
e51fc2d951 [INTERPRETER]
* NEW: The RAISE instruction now can raise events defined in a parent 
  class.
* NEW: Timer: The Trigger method now does nothing if there is an already
  pending trigger. This behaviour is not backward-compatible, so it may be
  removed if problems arise.

[COMPILER]
* NEW: The RAISE instruction now can raise events defined in a parent 
  class.

[GB.DRAW]
* NEW: Implement standard operators in Point and PointF classes.
* NEW: Automatic conversion between Point and PointF.
* NEW: 'CDraw.c' and 'CDraw.h' source files have been renamed as 'cdraw.c' 
  and 'cdraw.h'.
* NEW: Rect.Center() and RectF.Center() are two new methods that return the 
  center of the rectangle.

[GB.FORM]
* NEW: FileChooser: tar archives now can be uncompressed. 


git-svn-id: svn://localhost/gambas/trunk@5359 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-24 18:52:11 +00:00
Fabien Bodard
f1e9becd90 [GB.MAP]
* BUG: Remove files that have defect


git-svn-id: svn://localhost/gambas/trunk@5358 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-24 18:36:52 +00:00
Fabien Bodard
14e7854100 [GB.MAP]
* OPT: Make map loading more faster. Use multiple httpclient (2 by default)



git-svn-id: svn://localhost/gambas/trunk@5357 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-24 18:22:18 +00:00
Fabien Bodard
f675ee75fc [GB.MAP]
* BUG: Don't try to download negative tiles
* BUG: Dont try to load image not finished



git-svn-id: svn://localhost/gambas/trunk@5356 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-24 16:52:23 +00:00
Laurent Carlier
cfc4f1242b [GB.OPENGL.GLU]
* NEW: Add Glu.Project, Glu.UnProject and Glu.UnProject4 methods.

These methods are returning a Float array as the result. This Float[]
can be NULL in case of failure or if the Arrays passed as parameter are
not of the proper size; Modelview and Projection are 16 values Arrays,
Viewport is a 4 values Array.
 


git-svn-id: svn://localhost/gambas/trunk@5355 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-24 11:02:51 +00:00
Benoît Minisini
225c6e0b40 [DEVELOPMENT ENVIRONMENT]
* NEW: Use DesltopMime.FromFile() method to handle project data files.
* BUG: Installing the Gambas fonts override the old ones that could be
  already installed.
* NEW: Update the Gambas fonts.

[GB.DESKTOP]
* BUG: DesktopFile.Run() now handle programs that does not specify any
  argument pattern (%u, %f, and so on) in its command description.

[GB.DRAW]
* NEW: Add a RectF class, that is a rectangle with Float coordinates.
* NEW: Add a Point class, that is just a point with two Integer 
  coordinates.
* NEW: Add a PointF class, that is just a point with two Float
  coordinates.

[GB.GUI.BASE]
* BUG: GridView and TreeView controls should not lose any MouseDown event
  anymore.
* BUG: Fix previous TreeView optimizations.

[GB.MAP]
* BUG: Rename the "map" class as "Map".


git-svn-id: svn://localhost/gambas/trunk@5354 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-24 01:16:40 +00:00
Benoît Minisini
5bdcf019af [GB.MAP]
* BUG: Remove .settings file from subversion.


git-svn-id: svn://localhost/gambas/trunk@5353 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-23 13:18:10 +00:00
Fabien Bodard
43f6307eba [GB.MAP]
* Bug: Remove occurence to CShape



git-svn-id: svn://localhost/gambas/trunk@5352 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-23 13:13:51 +00:00
Fabien Bodard
73e7a56b4e [GB.MAP]
* New: Remove uneeded files


git-svn-id: svn://localhost/gambas/trunk@5351 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-22 19:31:17 +00:00
Fabien Bodard
4d72da03f3 [EXAMPLES]
* New: Add an icon to the map example


git-svn-id: svn://localhost/gambas/trunk@5350 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-22 17:34:11 +00:00
Fabien Bodard
af1f967243 [GB.MAP]
* BUG: Unactivate Proj classe


git-svn-id: svn://localhost/gambas/trunk@5349 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-22 16:54:27 +00:00
Fabien Bodard
855911aa57 [GB.MAP]
* New: First commit for this new component that allow to display tiled maps.

[EXAMPLES]
* New: A new example on how to use gb.map component.



git-svn-id: svn://localhost/gambas/trunk@5348 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-22 16:29:03 +00:00
Adrien Prokopowicz
7b1043df8b [GB.XML]
* BUG: Fix compilation problem when disabling GCC optimizations.

git-svn-id: svn://localhost/gambas/trunk@5347 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-22 11:40:57 +00:00
Benoît Minisini
9a79fbede4 [DEVELOPMENT ENVIRONMENT]
* NEW: Use a smaller font for help viewer embeeded in automatic completion
  or signature popups.
* NEW: Revamp the option dialog.
* NEW: Add an option to install the Gambas font to the user font folder
  (~/.fonts). That font is a custom version of the Terminus 6x12 bitmap 
  font, with a bold version and more unicode characters.

[GB.GUI.BASE]
* OPT: Start optimizing the TreeView.Add() method which is too slow if a 
  single item has many children.


git-svn-id: svn://localhost/gambas/trunk@5346 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-21 00:20:00 +00:00