Commit graph

3460 commits

Author SHA1 Message Date
Fabien Bodard
a9900d211a [EXAMPLES]
* BUG: Adapt to the new map class


git-svn-id: svn://localhost/gambas/trunk@5419 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-12-08 21:03:09 +00:00
Fabien Bodard
e9d9ee46c2 [GB.MAP]
* NEW: Full rewriting of the tile layer. Now Tile layer
  have a preload system, and tiles manage internally 3 states
  Normal, Loading, Error.
  The Cache have been mixed in the layer class.
  The loading process is dissociated from the drawing one



git-svn-id: svn://localhost/gambas/trunk@5418 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-12-08 21:00:18 +00:00
Benoît Minisini
9f8dbc2f7d [GB.IMAGE]
* NEW: New API to return the image format as a string.

[GB.IMAGE.EFFECT]
* BUG: Fix the histogram inversion, and inversion in other effects with 
  GTK+ images.


git-svn-id: svn://localhost/gambas/trunk@5417 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-12-08 02:17:49 +00:00
Benoît Minisini
7236dad76a [GB.NET]
* BUG: The type of the socket returned by SocketServer.Accept() method has
  now the same type than the server socket. Consequently, the RemoteHost, 
  RemotePort, LocalHost and LocalPort properties return the expected 
  values.


git-svn-id: svn://localhost/gambas/trunk@5416 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-12-07 02:27:42 +00:00
Benoît Minisini
c6167e0785 [GB.FORM]
* BUG: LCDLabel drwas its border even if there is no text.

[GB.GUI.BASE]
* BUG: Fix Draw.Circle() and Draw.Ellipse() end angle argument.


git-svn-id: svn://localhost/gambas/trunk@5415 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-12-07 01:40:44 +00:00
Benoît Minisini
9274cabcc0 [GB.QT4]
* BUG: gb.qt4 now should compile again with Qt version < 4.8.


git-svn-id: svn://localhost/gambas/trunk@5414 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-12-06 00:42:37 +00:00
Benoît Minisini
5a547fbb10 [DEVELOPMENT ENVIRONMENT]
* NEW: Use a big font for displaying cursor position in editors.

[GB.DRAW]
* NEW: Paint.Arc() and Paint.Ellipse() take a new optional boolean argument
  that tells if a pie must be drawn instead of a chord.

[GB.FORM]
* NEW: LCDLabel now has an HighlightColor property that allows to define 
  the color of the glow. By default, no glow is drawn.

[GB.GTK]
* BUG: Fix control background drawing routine.
* NEW: Implement the new "Pie" argument of Paint.Arc() and Paint.Ellipse().

[GB.GUI.BASE]
* BUG: Draw.Ellipse() and Draw.Circle() now draw a pie instead of a chord.

[GB.QT4]
* NEW: Implement the new "Pie" argument of Paint.Arc() and Paint.Ellipse().


git-svn-id: svn://localhost/gambas/trunk@5413 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-12-06 00:21:16 +00:00
Benoît Minisini
2476e0a2a2 [DEVELOPMENT ENVIRONMENT]
* BUG: The project tree control now uses the same icons as the main project 
  tree view.
* NEW: Support for LCDLabel.

[EXAMPLES]
* BUG: MediaPlayer: Remove uses of the DrawingArea.Painted property.

[INTERPRETER]
* BUG: The GB.GetProperty() API has been fixed, and now use the datatype of 
  the property for the return value.
* OPT: Remove some useless table symbol class at class loading for native 
  classes that do not raise events.

[GB.DRAW]
* NEW: PaintMatrix is now creatable.

[GB.FORM]
* NEW: LCDLabel is a new control that displays its contents with sixteen 
  segments LCD digits.

[GB.MEDIA]
* BUG: Remove the useless MediaPlayer.Visualisation property.


git-svn-id: svn://localhost/gambas/trunk@5412 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-12-05 03:36:44 +00:00
Benoît Minisini
c613e84f7b [GB.GUI.BASE]
* BUG: ColumnView: Accessing the text of a specific column with a 
  non-existing index does not raise an error anymore, but returns a null 
  string instead.


git-svn-id: svn://localhost/gambas/trunk@5411 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-12-03 16:15:15 +00:00
Benoît Minisini
9fcc50b488 [DEVELOPMENT ENVIRONMENT]
* NEW: Update markup syntax with support for indexes.

[WIKI CGI SCRIPT]
* NEW: Support for component help written in *.info files.
* BUG: Automatic links work again.

[GB.DRAW]
* BUG: Fix Point and PointF InRect() method signature.

[GB.GUI.BASE]
* BUG: TreeView Click event correctly sets the Item property.
* BUG: Remove the useless GridView.Data.Draw property.
* BUG: Remove the GridView KeyPress event override.
* BUG: Fix the GridView Draw event signature.

[GB.QT4.WEBKIT]
* NEW: WebElement.Paint() now takes an optional clipping rectangle 
  argument.


git-svn-id: svn://localhost/gambas/trunk@5410 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-12-03 12:56:41 +00:00
Fabien Bodard
fd474740d7 [GB.REPORT]
* BUG: Remove the occurence to Painted


git-svn-id: svn://localhost/gambas/trunk@5409 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-12-01 20:15:43 +00:00
Fabien Bodard
319f8725f9 [GB.MAP]
* OPT: Reduce the copyright size


git-svn-id: svn://localhost/gambas/trunk@5408 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-30 23:41:00 +00:00
Fabien Bodard
0857ddcf71 [EXAMPLES]
* NEW: Add copyright on OpenStreetMap Layer.
* NEW: Add a "padding" on lens mapp


git-svn-id: svn://localhost/gambas/trunk@5407 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-30 23:34:21 +00:00
Fabien Bodard
054cd7dbb3 [GB.MAP]
* BUG: Don't try to load the same picture more than 4 time if it fail
* BUG: Padding calls are now working fine ... but i think padding is 
  not the good name for that property. If someone have an idea.
* NEW: Support for copyright sentence on layers



git-svn-id: svn://localhost/gambas/trunk@5406 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-30 23:24:08 +00:00
Benoît Minisini
3d2523dd08 [GB.QT4.WEBKIT]
* BUG: Forgot to add the new files... Sigh.


git-svn-id: svn://localhost/gambas/trunk@5405 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-30 22:31:58 +00:00
Benoît Minisini
021f8b2814 [GB.QT4.WEBKIT]
* NEW: WebElement is a new class that represents a DOM node. It allows to
  traverse, modify and search the entire document, and run any JavaScript 
  code on any document element.
* NEW: WebHitTest.XMLElement has been renamed as WebHitTest.HTML.
* NEW: WebHitTest.Element is a new property that returns the hit 
  WebElement.
* NEW: WebFrame.Document returns the top DOM element of a frame.
* NEW: WebView.Document returns the top DOM element of the view main frame.


git-svn-id: svn://localhost/gambas/trunk@5404 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-30 21:56:58 +00:00
Tobias Boege
24386639bf [GB.DATA]
* NEW: Finish the List class
* NEW: Add List.Clear(). How could I go without since now?
* OPT: FYI, Current and enumerators remain relative to the _beginning_ of
  the list if they're removed in order to can access all elements in an
  enumeration.
* NEW: Return NULL for an invalid List.Current instead of raising an error.
  However, the attempt to remove an invalid Current still results in that
  error.



git-svn-id: svn://localhost/gambas/trunk@5403 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-30 20:34:11 +00:00
Benoît Minisini
98371e31fd [GB.GTK]
* NEW: Go on replacing the old GDK drawing API by Cairo.
* BUG: Fix a memory leak with Cairo in the border drawing routine.
* BUG: Fix a memory leak with Cairo in the image drawing routine.


git-svn-id: svn://localhost/gambas/trunk@5402 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-30 17:07:18 +00:00
Benoît Minisini
76f1faa577 [EXAMPLES]
* NEW: Rename 'Maps' example as 'MapView'.


git-svn-id: svn://localhost/gambas/trunk@5401 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-30 13:55:26 +00:00
Benoît Minisini
c31fdffc32 [CONFIGURATION]
* NEW: Redraw some control icons again.

[GB.GTK]
* NEW: Go on replacing the old GDK drawing API by Cairo.


git-svn-id: svn://localhost/gambas/trunk@5400 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-30 13:20:57 +00:00
Bruce Bruen
57cb8494e9 nomsg
git-svn-id: svn://localhost/gambas/trunk@5399 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-30 11:23:25 +00:00
Benoît Minisini
c409668bfb [CONFIGURATION]
* NEW: Redraw most of the control icons.

[DEVELOPMENT ENVIRONMENT]
* BUG: A few fixes in the Gambas fixed font.

[GB.GTK]
* NEW: Replace some uses of the deprecated Gdk drawing API by cairo.



git-svn-id: svn://localhost/gambas/trunk@5398 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-29 23:10:16 +00:00
Fabien Bodard
9a4149cdc7 [GB.MAP]
* NEW: Padding is a new property of Map class that define a trigger zone in pixel
* NEW: if Copyright is set it is shown in the map view.


git-svn-id: svn://localhost/gambas/trunk@5397 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-29 22:25:54 +00:00
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