Commit graph

4035 commits

Author SHA1 Message Date
Benoît Minisini
eeec97396c [DEVELOPMENT ENVIRONMENT]
* NEW: When the 'gb.web' component is selected, a new option is available 
  in the project property dialog: "Run in an embedded HTTP server".

(INTERPRETER]
* NEW: GB.System.Debug() is a new API that allows to know if the 
  interpreter is run in debugging mode.

[GB.DEBUG]
* NEW: The debugger tells the IDE when its prompt is the first one.

[GB.HTTPD]
* NEW: Reset locale to "C" before running the http server.
* BUG: The CGI "SCRIPT_NAME" variable is set to "/".
* NEW: The default CGI timeout is now 10 minutes.
* NEW: Behave accurately when run in debugging mode : only one CGI script
  at a time is allowed.
* NEW: When run in debugging mode, there is no CGI timeout.


git-svn-id: svn://localhost/gambas/trunk@5765 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-27 17:23:04 +00:00
Benoît Minisini
1c34bd7bd5 [GB.IMAGE.IO]
* NEW: Image.Stretch() is a new method that allows to stretch an image 
  without having to use a full GUI component.


git-svn-id: svn://localhost/gambas/trunk@5764 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-26 22:14:10 +00:00
Benoît Minisini
8ba257cf9b [GB.OPENAL]
* NEW: Support for OpenAL-soft 1.13.


git-svn-id: svn://localhost/gambas/trunk@5763 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-23 08:30:10 +00:00
Benoît Minisini
a05a9e52ca [GB.V4L]
* NEW: This component is really deprecated now!


git-svn-id: svn://localhost/gambas/trunk@5762 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-23 00:56:28 +00:00
Benoît Minisini
a50535d779 [CONFIGURATION]
* NEW: Components can have a new state: "Deprecated".

[DEVELOPMENT ENVIRONMENT]
* NEW: Add a filter to the component tab of the project property dialog.

[WEBSITE MAKER]
* BUG: Translations came back.

[GB.OPTION]
* NEW: This component is now deprecated.

[GB.V4L]
* NEW: This component is now deprecated.


git-svn-id: svn://localhost/gambas/trunk@5761 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-23 00:56:01 +00:00
Benoît Minisini
058820bb2d [GB.OPENAL]
* BUG: Forgot to export the AlureStream class.


git-svn-id: svn://localhost/gambas/trunk@5760 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-22 22:54:54 +00:00
Benoît Minisini
fa8e3efa91 [GB.OPENAL]
* NEW: Finish the Alc class.
* NEW: Implement the Alure class (the interface to the alure library).


git-svn-id: svn://localhost/gambas/trunk@5759 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-22 22:32:33 +00:00
Benoît Minisini
e9d228bb1f [GB.OPENAL]
* NEW: More work done. 'Al' class is finished, 'Alc' is on the way...


git-svn-id: svn://localhost/gambas/trunk@5758 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-22 07:15:23 +00:00
Adrien Prokopowicz
9e89b18f20 [GB.XML.HTML]
* BUG: The HTML tag closing is now case-unsensitive.

git-svn-id: svn://localhost/gambas/trunk@5757 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-21 21:02:36 +00:00
Benoît Minisini
bd3410e80f [INTERPRETER]
* NEW: GB.ReturnSingle() is a new API that allows to return a Single from a 
  method or property implementation routine.

[GB.NET.POP3]
* NEW: Pop3Client has a new Remove() method to delete a message from its 
  index. Pop3Client.Remove(n) is just a synonymous for 
  Pop3Client[n].Delete.

[GB.OPENAL]
* NEW: New component for the OpenAL 3D audio library. Work in progress...

[GB.OPENGL]
* BUG: Fix a possible crash in GL.GenTextures(). I guess that bug will have 
  to be fixed in other equivalent routines.


git-svn-id: svn://localhost/gambas/trunk@5753 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-21 16:19:26 +00:00
Benoît Minisini
edd3bf6024 [INTERPRETER]
* BUG: UnBase64() works correctly now. It does not add extra null bytes 
  anymore.


git-svn-id: svn://localhost/gambas/trunk@5752 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-21 10:15:54 +00:00
Benoît Minisini
3ca2270bd4 [INTERPRETER]
* BUG: Oops, remove debugging message.


git-svn-id: svn://localhost/gambas/trunk@5751 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-21 00:57:48 +00:00
Benoît Minisini
b0ac29b0d9 [INTEPRETER]
* NEW: Enumeration objects are immediately freed when the enumeration is
  stopped.



git-svn-id: svn://localhost/gambas/trunk@5750 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-20 23:57:44 +00:00
Benoît Minisini
5436bc8a2d [INTERPRETER]
* BUG: GB.NextEnum() does not return stopped enumerations anymore.


git-svn-id: svn://localhost/gambas/trunk@5749 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-20 23:56:55 +00:00
Benoît Minisini
89ea799d49 [GB.GTK]
* BUG: Support for Ubuntu scrollbar overlays.


git-svn-id: svn://localhost/gambas/trunk@5748 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-20 15:38:14 +00:00
Benoît Minisini
f8b62a4518 [DEVELOPMENT ENVIRONMENT]
* NEW: The system information dialog searches for more libraries.

[WIKI CGI SCRIPT]
* BUG: Correctly handle boolean constants.

[GB.DESKTOP]
* NEW: DesktopMime.GetIcon() now can stretch installed icons to the
  requested size.

[GB.GTK]
* BUG: TrayIcon now uses the Gambas 3 logo as default icon.

[GB.GUI.BASE]
* BUG: Fix IconView item text ellipsization routine.

[GB.QT4]
* BUG: TrayIcon now uses the Gambas 3 logo as default icon.
* NEW: TrayIcon now supports ARGB visuals - i.e. icons are really 
  transparent now.


git-svn-id: svn://localhost/gambas/trunk@5747 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-20 13:39:38 +00:00
Benoît Minisini
e684ba2230 [GB.QT4]
* BUG: Paint.RichText() now takes the vertical alignment into account 
  correctly.


git-svn-id: svn://localhost/gambas/trunk@5746 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-20 10:26:56 +00:00
Benoît Minisini
6fcb091e9a [DEVELOPMENT ENVIRONMENT]
* NEW: New design of the system information dialog.


git-svn-id: svn://localhost/gambas/trunk@5745 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-19 20:06:25 +00:00
Benoît Minisini
b814f368c5 [GB.DB.FORM]
* NEW: DataControl can handle blob fields now.
* NEW: Highlight the byte under the mouse in blob editor.

[GB.FORM]
* NEW: ButtonBox.Pos is a new property that returns the cursor position of 
  its inner TextBox.


git-svn-id: svn://localhost/gambas/trunk@5741 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-19 18:16:55 +00:00
Benoît Minisini
1d2cbc60da [GB.GUI.AREA]
* BUG: GridView: Don't hide selection when setting the Mode property with 
  its current value.


git-svn-id: svn://localhost/gambas/trunk@5740 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-19 18:15:32 +00:00
Benoît Minisini
588cc035be [GB.DB]
* BUG: Fix a possible memory corruption in blob management.


git-svn-id: svn://localhost/gambas/trunk@5739 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-19 18:12:19 +00:00
Benoît Minisini
e9dd24404c [GB.QT4]
* BUG: Take the Invert property into account in vertical arrangements.

[GB.GTK]
* BUG: Take the Invert property into account in vertical arrangements.


git-svn-id: svn://localhost/gambas/trunk@5738 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-19 18:10:24 +00:00
Benoît Minisini
9332afbbea [DEVELOPMENT ENVIRONMENT]
* NEW: Add a file properties view in the CSV import dialog.

[INFORMER]
* BUG: Write boolean constants in information files as "T" and "", not 
  "True" and "False". It breaks things.

[GB.FORM]
* NEW: The file properties dialog has an automatic preview tab for image 
  files.

[GB.DB.FORM]
* NEW: The DataView control can edit blob fields now.


git-svn-id: svn://localhost/gambas/trunk@5736 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-19 11:02:32 +00:00
Benoît Minisini
2a7ae292b5 [GB.DB]
* BUG: Using a database URL in the Connection constructor works now.


git-svn-id: svn://localhost/gambas/trunk@5735 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-19 10:58:46 +00:00
Adrien Prokopowicz
1bc4a835a6 [GB.XML]
* BUG: Forgot some files while uploading the last revision.

git-svn-id: svn://localhost/gambas/trunk@5733 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-17 09:57:05 +00:00
Adrien Prokopowicz
522efa4ba9 [GB.XML]
* NEW: Added a new gb.xml Component API.
* NEW: The XMLElement.AppendFromText() method can now take the &1, &2 etc.
  Subst-like patterns.
* NEW: All the methods based on the parser can choose from the XML and the 
  HTML parser (if loaded), depending  on the document's (or parent
  document's) type.
* OPT: Renamed, reorganized and cleaned up the code.
* OPT: Removed the ugly cross-including sources to communicate with the
  subcomponents, which now use the XML Component Interface.
* OPT: Remove all the unneeded includes.
* OPT: The XML serializer does not check if the elements are self-closed 
  according to HTML specifications anymore. This is done only in the new
  HTML serializer.

[GB.XML.HTML]
* NEW: Added a new gb.xml.html Component API.
* NEW: Added a new (X)HTML parser, more flexible than the XML one,
  and automatically used with the HtmlDocument class.
* NEW: Generated HTML Documents now automatically use the new meta/charset
  element if the document is HTML5, and the old meta/content-type element
  only if the document is not HTML5.
* BUG: Loading an HTML document from a file while instanciating it
  correctly works now.
* BUG: Using the class or id CSS selector in a filter on an element that
  doesn't have these does not crashes anymore.

[GB.XML.XSLT]
* NEW: Now uses the gb.xml Component API.

git-svn-id: svn://localhost/gambas/trunk@5732 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-16 22:27:47 +00:00
Tobias Boege
4bc9b23c61 [GB.DATA]
* OPT: Shrink internal data structures and adjust algorithms likely
  improving performance (noticably for the 'random' case of my stress test -
  the 'best' case is almost on a par with Variant[] now).
* BUG: Fix difficult-to-spot List.Take() bugs due to difficulties with the
  former internal data structures. The class now survives all my test cases
  (without misbehaviour under valgrind).
* BUG: List.Take() never raises "Out of bounds" anymore if the list is empty
  because that's an inappropriate error for a *circular* list. It raises an
  error if an attempt is made to Take() an invalid Current which includes
  the case that the List is empty.



git-svn-id: svn://localhost/gambas/trunk@5731 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-13 08:53:49 +00:00
Benoît Minisini
0139ee4b99 [INTERPRETER]
* NEW: MATCH is a new operator that automatically load the gb.pcre 
  component to implement PCRE pattern matching. The syntax is the same as
  the LIKE operator.

[COMPILER]
* NEW: Add a new MATCH operator.

[GB.FORM]
* BUG: The directory contents size task does not abort anymore when 
  accessing an unreadable files or directory. It now ignore them.
* NEW: When errors are raised while browsing the contents of a directory,
  the file properties dialog display them is a new tab.

[GB.PCRE]
* NEW: Create an API interface for allowing other components to use PCRE
  regular expressions.


git-svn-id: svn://localhost/gambas/trunk@5730 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-12 23:57:53 +00:00
Benoît Minisini
1fad32511b [GB.PCRE]
* NEW: Rename RegExp.Check as RegExp.Match. Factorize its code a little 
  bit.


git-svn-id: svn://localhost/gambas/trunk@5729 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-12 12:43:45 +00:00
Alexander Kuiper
588f665220 [GB.XML.RPC]
* BUG: Fixed that RpcClient could hang in sync mode, issue 450
* BUG: More fixes of the miniServer.class, issue 449


git-svn-id: svn://localhost/gambas/trunk@5728 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-11 20:57:39 +00:00
Tobias Boege
b6718e1361 [GB.PCRE]
* BUG: Fix two cases of memory leaks with CREGEXP->code: (re)compilation of
  a (new) pattern and object destruction.
* NEW: Introduce the static RegExp.Check() method which works like the
  constructor but immediately returns a boolean whether the pattern could
  be applied to the subject - handy for one-line string validation.



git-svn-id: svn://localhost/gambas/trunk@5727 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-11 14:50:13 +00:00
Benoît Minisini
aaf6e45351 [DEVELOPMENT ENVIRONMENT]
* NEW: Project statistics came back in the file property dialog.

[GB.DESKTOP]
* BUG: Correctly use the XDG data directories in DesktopFile and DesktopMime 
  classes.
* BUG: Correctly search mime icons in DesktopMime.GetIcon().

[GB.FORM]
* NEW: Add a detailed view toggle button to the FileChooser and DirChooser 
  controls.


git-svn-id: svn://localhost/gambas/trunk@5726 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-11 09:41:39 +00:00
Benoît Minisini
29ab774c1c [DEVELOPMENT ENVIRONMENT]
* BUG: Fix the frame position when dragging a control from the toolbar on 
  a container.
* NEW: The project file properties dialog is now based on the new 
  FileProperties control.

[INTERPRETER]
* NEW: GB.OnErrorBegin() and GB.OnErrorEnd() are two new APIs that allow to
  register cleanup routines that are called when an error is raised between
  the GB.OnErrorBegin() call and the GB.OnErrorEnd() call.

[INFORMER]
* BUG: The value of  Float constants is now correctly dumped in *.info 
  files.

[GB.COMPLEX]
* NEW: Implement the same Complex.ToString() method as in gb.gsl.

[GB.DESKTOP]
* NEW: Desktop.DataDir is a new property that returns the directory where 
  the application must store its user-specific data.
* NEW: Desktop.ConfigDir is a new property that returns the directory where 
  the application must store its user-specific configuration.
* NEW: Desktop.CacheDir is a new property that returns the directory where 
  the application must store its user-specific cached data.
* NEW: Desktop.RuntimeDir is a new property that returns the directory 
  where the application must store its temporary runtime files.
* BUG: Fix a possible crash when searching a mimetype from the file 
  extension.

[GB.FORM]
* NEW: FileProperties is a new control that displays the properties of a 
  specific file or directory. It automatically computes the size of 
  directory contents through a background task.
* BUG: Setting the TabPanel.Border property now correctly refreshes its 
  layout.
* NEW: The stock icon map now can declare specific icons for specific 
  widget themes.

[GB.FORM.STOCK]
* NEW: Fix the 'tools' icon for elementary icon theme.

[GB.GSL]
* BUG: Fix the Vector.ToString() declaration.

[GB.QT4.EXT]
* NEW: The Editor.LineOffset property has been renamed as 
  Editor.LineNumberOffset.


git-svn-id: svn://localhost/gambas/trunk@5725 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-10 22:17:27 +00:00
Benoît Minisini
2150e2404b [DEVELOPMENT ENVIRONMENT]
* NEW: The file information dialog now allows to revert it individually (if 
  the project is managed by subversion).
* BUG: Do not crash if a file cannot be associated with any mime type.


git-svn-id: svn://localhost/gambas/trunk@5724 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-08 17:42:19 +00:00
Benoît Minisini
18c9b762fc [INTERPRETER]
* BUG: A stream redirected through the 'Begin' method checks that stream is
  ready for writing only when the 'Send' method is called. Between the 
  'Begin' and 'Send' calls, the PRINT and WRITE instructions will always
  succeed.


git-svn-id: svn://localhost/gambas/trunk@5723 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-06 19:00:41 +00:00
Benoît Minisini
ebf546f609 [GB.GSL]
* NEW: Remove Gsl.Fcmpb and rename Gsl.Fcmpi as Gsl.Fcmp.


git-svn-id: svn://localhost/gambas/trunk@5722 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-06 01:06:42 +00:00
Benoît Minisini
bdbb59b299 [GB.GSL]
* BUG: Fix Gsl.Frexp.
* BUG: Fix Gsl function signatures.
* NEW: Remove useless functions from the Gsl class.


git-svn-id: svn://localhost/gambas/trunk@5721 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-06 01:04:02 +00:00
Benoît Minisini
020fda58bc [GB.XML.RPC]
* BUG: Fixes of the miniServer class from issue 449


git-svn-id: svn://localhost/gambas/trunk@5720 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-04 19:52:24 +00:00
Benoît Minisini
9f393356a4 [GB.WEB]
* BUG: Once the session is saved, mark it as not modified.


git-svn-id: svn://localhost/gambas/trunk@5719 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-04 19:39:38 +00:00
Benoît Minisini
ab78dd8c9a [GB.MEDIA]
* BUG: Correctly handle GStreamer dates with year but no month and no day.


git-svn-id: svn://localhost/gambas/trunk@5718 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-30 22:45:30 +00:00
Benoît Minisini
02234a267e [GB.MEDIA]
* NEW: Support for properties that are enumerations. Use them like string 
  properties that can only take some specific values.
* NEW: GStreamer element not created explicitely are now managed through 
  the MediaControl class.
* NEW: MediaFilter is a new MediaControl that implements the 'capsfilter'
  element. It has a Filter property that understands the same syntax as the
  'gst-launch' GStreamer tool.
* NEW: MediaContaienr.Children is a new virtual property that allows to
  enumerate its children elements.


git-svn-id: svn://localhost/gambas/trunk@5717 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-30 21:57:47 +00:00
Adrien Prokopowicz
005d1e1603 * BUG: The XML DOM parser doesn't go beyond the string limits when looking
for an XML prolog anymore.

git-svn-id: svn://localhost/gambas/trunk@5716 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-30 11:23:42 +00:00
Adrien Prokopowicz
ac20bff9c7 * BUG: XmlWriter now correctly normalizes attribute values
git-svn-id: svn://localhost/gambas/trunk@5715 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-30 00:37:36 +00:00
Benoît Minisini
2c3cdf51b3 [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly save profiling preferences when closing the project 
  property dialog.


git-svn-id: svn://localhost/gambas/trunk@5714 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-29 16:37:10 +00:00
Benoît Minisini
63fdf03e0d [GB.XML.RPC]
* BUG: Try to fix the RpcServer class.


git-svn-id: svn://localhost/gambas/trunk@5713 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-29 16:33:30 +00:00
Benoît Minisini
74fb91552e [EXAMPLES]
* NEW: MediaPlayer: Display the name of the device, not just its system 
  path.

[INTERPRETER]
* BUG: In File.Load(), workaround virtual files (like those located in 
  '/sys') whose official size is not their real size.


git-svn-id: svn://localhost/gambas/trunk@5712 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-29 16:11:32 +00:00
Benoît Minisini
d6857e2926 [DEVELOPMENT ENVIRONMENT]
* BUG: The '.lang' directory should be correctly put under version control 
  when a project become translatable.

[EXAMPLES]
* NEW: MediaPlayer: Allow to choose the video device.


git-svn-id: svn://localhost/gambas/trunk@5711 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-29 14:22:09 +00:00
Benoît Minisini
0be0b8caf8 [DEVELOPMENT ENVIRONMENT]
* NEW: When installing the Gambas font, don't use the deprecated 
  '~/.fonts.conf' file anymore.

[EXAMPLES]
* NEW: The MediaPlayer example now has a panel to configure the image
  balance.

[GB.MEDIA]
* NEW: MediaPlayer.Balance is a new property that allows to configure the
  image brightness, contrast, hue, saturation... It actually returns a
  virtual array of balance "channels", each one having a minimum value, a
  maximum value, a current value and a name.

[GB.WEB]
* NEW: When Request.Debug is set, only the first 4K of a POST request is 
  stored in the Request.Contents property.


git-svn-id: svn://localhost/gambas/trunk@5710 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-29 12:42:52 +00:00
Benoît Minisini
9e769dc9ed [GB.NET.SMTP]
* BUG: Fix a memory leak when specifying the mimetype charset.
* BUG: Quote the space character at the beginning of a line when sending 
  quoted-printable data.


git-svn-id: svn://localhost/gambas/trunk@5709 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-25 23:46:40 +00:00
Benoît Minisini
ecbdca325d [GB.GTK]
* BUG: Drawing text alignment is taken into account when the width or 
  height is specified, not only when both are. Now, the drawing text 
  methods behave like in gb.qt4.


git-svn-id: svn://localhost/gambas/trunk@5708 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-22 16:26:28 +00:00