Commit graph

69 commits

Author SHA1 Message Date
Benoît Minisini
9f8a619082 [GB.NET.CURL]
* NEW: FtpClient.NoEPSV is a new property that prevents the use of EPSV. In
  other words, the FtpClient will always use PASV.


git-svn-id: svn://localhost/gambas/trunk@5870 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-10-08 23:32:15 +00:00
Benoît Minisini
7181a4f6ba [GB.NET.CURL]
* BUG: Try to make gb.net.curl compile with old versions of libcurl.


git-svn-id: svn://localhost/gambas/trunk@5801 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-08-15 19:20:52 +00:00
Benoît Minisini
99385dca5d [GB.NET.CURL]
* NEW: Curl.SSL.VerifyPeer and Curl.SSL.VerifyHost are two new properties 
  that allow to define the corresponding options of a CURL connection.


git-svn-id: svn://localhost/gambas/trunk@5771 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-08-04 12:03:48 +00:00
Benoît Minisini
c9ca5ab982 [CONFIGURATION]
* NEW: Update copyright year to 2013.

[GB.FORM]
* NEW: ImageView is a new control that allows to view an image inside a 
  scrolled view, at different zoom levels.
* BUG: FileProperties now works correctly if 'gb.desktop' is not used.
* NEW: The FileProperties preview tab now uses an ImageView control and has
  a toolbar to zoom the preview.
* BUG: Add the 'linux' and 'gnu' icon in the stock icon list.


git-svn-id: svn://localhost/gambas/trunk@5770 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-08-03 15:38:01 +00:00
Benoît Minisini
00bcbf0c5d [GB.NET.CURL]
* BUG: FtpClient: Define the file size explicitely when uploading.


git-svn-id: svn://localhost/gambas/trunk@5766 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-29 23:27:59 +00:00
Benoît Minisini
4e5099500a [GB.NET.CURL]
* NEW: HttpClient Progress event is raised now.
* BUG: FtpClient and HttpClient Progress event work as expected now.


git-svn-id: svn://localhost/gambas/trunk@5675 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-05-24 22:23:22 +00:00
Benoît Minisini
172f592053 [GB.NET.CURL]
* NEW: HttpClient now raises the Progress event.


git-svn-id: svn://localhost/gambas/trunk@5664 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-05-19 19:04:37 +00:00
Benoît Minisini
3a1b334193 [GB.NET.CURL]
* NEW: New Progress event raised while the FtpClient is downloading or 
  uploading some data. The event is not raised by the HttpClient yet.
* NEW: FtpClient has four new read-only properties to get information on
  uploading and downloading progress: Downloaded, Uploaded, TotalDownloaded
  and TotalUploaded.


git-svn-id: svn://localhost/gambas/trunk@5663 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-05-19 15:10:22 +00:00
Benoît Minisini
5bb744d18b [GB.NET.CURL]
* BUG: Don't try to raise the Read event again and again if there is no 
  event handler for that event.


git-svn-id: svn://localhost/gambas/trunk@5584 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-03-19 19:01:49 +00:00
Adrien Prokopowicz
09c28801f7 [GB.NET.CURL]
* BUG: Initialize the HTTP data buffers before filling them.

[GB.XML.HTML]
* BUG: The XmlElement.GetChildById() method is now correctly implemented.

git-svn-id: svn://localhost/gambas/trunk@5581 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-03-15 20:06:05 +00:00
Benoît Minisini
9eabb5772b [GB.NET.CURL]
* NEW: HttpClient.PostFile() is a new method that sends a POST request, 
  taking the data from a file and not from a string.


git-svn-id: svn://localhost/gambas/trunk@5560 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-23 23:21:01 +00:00
Benoît Minisini
f79bde1d6a [INTERPRETER]
* NEW: GB.Stream.Eof() is a new API that returns if there is something to 
  read on a stream, by taking the 'Line Input' internal buffer into 
  account.

[GB.NET.CURL]
* NEW: Now the Read event is raised again and again while there is 
  something to read.


git-svn-id: svn://localhost/gambas/trunk@5554 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-17 11:05:34 +00:00
Benoît Minisini
9c829d258e [INTERPRETER]
* NEW: A new interpreter API that allows a component to tell that its 
  custom stream data is immediately available.
* BUG: GB.Stream.SetBytesRead() now increments the internal number of read
  bytes, so that the 'Line Input' buffer is taken into account.

[GB.NET.CURL]
* NEW: The FtpClient or HttpClient Read event is now called as long as 
  there is something to read *and* the event handler actually read at least
  one byte.
* BUG: The handle of a curl object is now -1 (i.e. it is not available).
* BUG: The data received by a curl object is immediately available to the
  READ instruction.


git-svn-id: svn://localhost/gambas/trunk@5553 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-17 00:44:48 +00:00
Tobias Boege
9cd573f4ef [GB.NET.CURL]
* BUG: Don't crash when FtpClient.Exec() gets an array with empty strings



git-svn-id: svn://localhost/gambas/trunk@5552 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-16 18:57:16 +00:00
Benoît Minisini
3a4caa35ab [GB.NET.CURL]
* BUG: Don't crash if FtpClient.Exec() gets a void array as commands array.


git-svn-id: svn://localhost/gambas/trunk@5551 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-16 17:08:10 +00:00
Benoît Minisini
ff507f5dde [GB.NET.CURL]
* BUG: HttpClient: Allows null data when using the Post() or Put() method.


git-svn-id: svn://localhost/gambas/trunk@5542 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-10 16:06:56 +00:00
Benoît Minisini
13dd04d5a4 [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly initalize the help browser layout.
* NEW: Use the new Image.Fuzzy() method to draw a drop shadow in the 
  welcome screen text.

[COMPILER]
* NEW: The GB_PCODE_VERSION environment variable can take 'X.YY' as version 
  instead of 'X.YY.ZZZZ', which is actually useless.

[GB.COMPRESS]
* BUG: Remove useless code never compiled.

[GB.DBUS]
* BUG: Fix a possible memory leak in a debugging routine.

[GB.GSL]
* BUG: Remove useless code never compiled.

[GB.GTK]
* NEW: Implement a cairo surface cache in the Image class, so that drawing
  the same image several times trigger a GdkPixbuf -> Cairo surface 
  conversion once.
* BUG: Slider and Scrollbar controls now raise the Change event only if the
  value has really changed.

[GB.NET]
* BUG: Remove useless code never compiled.

[GB.NET.CURL]
* BUG: Remove useless code never compiled.

[GB.NET.SMTP]
* BUG: Remove useless code never compiled.

[GB.V4L]
* BUG: Remove useless code never compiled.


git-svn-id: svn://localhost/gambas/trunk@5489 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-01-03 22:06:35 +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
bafcbb069a [GB.NET.CURL]
* BUG: Initialize the curl library correctly!


git-svn-id: svn://localhost/gambas/trunk@4823 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-12 17:20:53 +00:00
Benoît Minisini
e2fac79ffb [CONFIGURATION]
* NEW: Replace the old "INCLUDES" directive by "xxx_CPPFLAGS" in all 
  Makefile.am files.

[GB.XML]
* BUG: Remove debugging flags from compilation flags.


git-svn-id: svn://localhost/gambas/trunk@4714 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-04 16:45:14 +00:00
Benoît Minisini
71d85e8a84 [GB.NET.CURL]
* BUG: Fix allocation of initial FtpClient URL.


git-svn-id: svn://localhost/gambas/trunk@4516 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-29 01:52:54 +00:00
Benoît Minisini
dd3b512daf [CONFIGURATION]
* NEW: Update copyrights.


git-svn-id: svn://localhost/gambas/trunk@4384 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-12-31 02:39:20 +00:00
Benoît Minisini
fd50e16ef7 [GB.NET.CURL]
* BUG: FtpClient and HttpClient actually must be asynchronous by default.


git-svn-id: svn://localhost/gambas/trunk@4218 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-10-24 20:22:05 +00:00
Benoît Minisini
95aa370a7e [INTERPRETER]
* BUG: Do not use GB.ReturnNull() when returning a void string anymore. Use
  the new GB.ReturnVoidString() API instead.


git-svn-id: svn://localhost/gambas/trunk@4216 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-10-24 19:33:41 +00:00
Benoît Minisini
67ecd4b00a [INTERPRETER]
* NEW: New syntax for GB.AddString() and GB.ExtendString() interpreter API.
  Do not pass the string by reference anymore.
* NEW: GB.AddChar() is a new API for adding just a char to a string.

[GB.DB.SQLITE2]
* BUG: Fix ignored system call return values.

[GB.DB.SQLITE3]
* BUG: Fix ignored system call return values.

[GB.DB.NET]
* BUG: Fix ignored system call return values.

[GB.V4L]
* BUG: Remove some unused local variables.


git-svn-id: svn://localhost/gambas/trunk@4105 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-07 19:43:11 +00:00
Benoît Minisini
721c80fd98 [GB.NET.CURL]
* BUG: Really fix compilation on old versions of libcurl.


git-svn-id: svn://localhost/gambas/trunk@4091 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 19:21:26 +00:00
Laurent Carlier
1c4c80dd35 [GB.NET.CURL]
* BUG: Add missing error opcodes in old curl libraries.

CNet.c:136: error: ‘CURLE_FTP_PRET_FAILED’ undeclared here (not in a
function)
CNet.c:139: error: ‘CURLE_FTP_BAD_FILE_LIST’ undeclared here (not in a
function)
CNet.c:140: error: ‘CURLE_CHUNK_FAILED’ undeclared here (not in a
function)
make[4]: *** [CNet.lo] Errore 1



git-svn-id: svn://localhost/gambas/trunk@4089 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 11:31:18 +00:00
Benoît Minisini
c738b0284e [GB.NET.CURL]
* NEW: A lot of code clean-up.


git-svn-id: svn://localhost/gambas/trunk@4086 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 20:17:56 +00:00
Benoît Minisini
e08a2e5a0b [GB.NET.CURL]
* BUG: Disable pointless constants inherited from gb.net Net class.
* NEW: Disable other error code constants.


git-svn-id: svn://localhost/gambas/trunk@4085 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 14:08:54 +00:00
Benoît Minisini
06aab3aa0a [GB.NET.CURL]
* NEW: Curl.ErrorText is a new property that returns the error string 
  associated with the error code returned by the curl library. If 
  Curl.Status is positive, then a null string is returned.
* BUG: Disable error code constants for unsupported curl features.


git-svn-id: svn://localhost/gambas/trunk@4084 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 13:39:33 +00:00
Benoît Minisini
de28acb52b [GB.NET.CURL]
* NEW: Update CURL error codes and add some missing constants.


git-svn-id: svn://localhost/gambas/trunk@4083 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 13:14:28 +00:00
Benoît Minisini
9488c7aff7 [DEVELOPMENT ENVIRONMENT]
* NEW: Automatic completion now displays hidden symbols if the class is 
  part of the current project.
* NEW: Support for *.tar.xz source archives.
* NEW: Underscores are now allowed inside a class name.
* BUG: Enabling or disabling tooltips in the option dialog does not crash
  anymore.

[INTERPRETER]
* NEW: Rename many virtual classes everywhere so that the documentation can
  easily extract the property name of the parent class from the virtual
  class name. For example, ".ApplicationArgs" is now ".Application.Args".


git-svn-id: svn://localhost/gambas/trunk@4028 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-21 21:46:20 +00:00
Benoît Minisini
147a5f4de6 [GB.NET.CURL]
* BUG: Refuse void URLs in HttpClient and FtpClient.


git-svn-id: svn://localhost/gambas/trunk@3905 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-28 11:04:52 +00:00
Benoît Minisini
96cb5dda39 [GB.NET.CURL]
* BUG: HttpClient.Post and HttpClient.Put are now more tolerant when 
  checking the Content-Type validity.


git-svn-id: svn://localhost/gambas/trunk@3897 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-22 22:24:41 +00:00
Benoît Minisini
4a9812de29 [GB.NET.CURL]
* BUG: Fix HttpClient URL property.
* NEW: The default HttpClient user-agent string is now (on Linux) :
  "Gambas/3.0 (gb.net.curl; Linux)"


git-svn-id: svn://localhost/gambas/trunk@3896 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-22 22:20:32 +00:00
Benoît Minisini
2fbf67cb29 [CONFIGURATION]
* NEW: Update FSF address in every source file.


git-svn-id: svn://localhost/gambas/trunk@3870 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-03 00:51:09 +00:00
Benoît Minisini
9d69842038 [GB.NET.CURL]
* NEW: Support for the https protocol in the HTTP client.


git-svn-id: svn://localhost/gambas/trunk@3868 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-02 16:09:04 +00:00
Benoît Minisini
7a0e05c384 [GB.NET.CURL]
* NEW: Asynchronous FtpClient objects are now automatically kept alive 
  until their operation is finished.


git-svn-id: svn://localhost/gambas/trunk@3710 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-30 16:21:18 +00:00
Benoît Minisini
9f9686cae4 [GB.NET.CURL]
* BUG: Remove an unexpected ';'.


git-svn-id: svn://localhost/gambas/trunk@3709 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-30 16:15:58 +00:00
Benoît Minisini
5f16f05de6 [GB.NET.CURL]
* NEW: Asynchronous HttpClient objects are now automatically kept alive 
  until their operation is finished.


git-svn-id: svn://localhost/gambas/trunk@3708 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-30 15:24:36 +00:00
Benoît Minisini
56fcad81a0 [GB.NET.CURL]
* BUG: Correctly stop the HttpClient or FtpClient objects when they are 
  freed.


git-svn-id: svn://localhost/gambas/trunk@3704 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-29 23:56:33 +00:00
Benoît Minisini
b936c83f0d [CONFIGURATION]
* NEW: Update copyright strings.

[DEVELOPMENT ENVIRONMENT]
* NEW: Display menu shortcuts inside the form editor.


git-svn-id: svn://localhost/gambas/trunk@3670 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-21 00:04:10 +00:00
Benoît Minisini
8873a0e1cc [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly handle all compiler error messages.

[INTERPRETER]
* NEW: Full management of the Single datatype.
* BUG: VarPtr() now works on Single local variables.
* BUG: Remove useless Tag property. It is defined in the Stream class now.
* BUG: Correctly free the Tag property in the Stream class.

[GB.GTK]
* BUG: Rich-text string management has been fixed. The ampersand character, 
  the "&", ">" and "<" entites are correctly interpreted now.

[GB.NET.CURL]
* BUG: Remove useless Tag property. It is defined in the Stream class now.

[EXAMPLES]
* NEW: The WebBrowser example has a download manager now.


git-svn-id: svn://localhost/gambas/trunk@3296 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-11-16 01:49:18 +00:00
Benoît Minisini
b3db598050 [DEVELOPMENT ENVIRONMENT]
* BUG: Breakpoints are correctly reset when opening a new project.

[INTERPRETER]
* BUG: The GB.NewString(), GB.NewZeroString() and GB.TempString() API 
  signature has changed. All components have been updated accordingly.
* OPT: Many optimizations to speed up the interpreter.

[GB.EVAL]
* NEW: During syntax highlighting, the first character of class names is
  automatically converted to uppercase.


git-svn-id: svn://localhost/gambas/trunk@2992 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-06-04 23:48:53 +00:00
Benoît Minisini
4a544c567a [INTERPRETER]
* BUG: Use GB.ReturnNewZeroString() instead of GB.ReturnNewString() now. 
  All components using the old syntax should be fixed now.
* NEW: Start to manage structures.


git-svn-id: svn://localhost/gambas/trunk@2957 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-23 11:07:14 +00:00
Benoît Minisini
117f2ac635 [INTERPRETER]
* NEW: New GB.NewZeroString() API to create a Gambas string from a 
  null-terminated string. Components were modified to use it.
* OPT: Many optimizations everywhere.

[COMPILER]
* OPT: Many optimizations. The compiler should be noticeably faster.


git-svn-id: svn://localhost/gambas/trunk@2953 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-22 18:02:34 +00:00
Benoît Minisini
98c0d81aad [CONFIGURATION]
* BUG: Fix the creation of the gbw3 symbolic link.

[DEVELOPMENT ENVIRONMENT]
* BUG: Fix an error in arrangement icon management.
* NEW: Merge all form editor toolbars.
* NEW: Support for code snippets. Type "fo" and TAB to see it. Not yet
  finished.

[INTERPRETER]
* NEW: Standard format for numbers now displays all the decimal digits.

[GB.QT4.EXT]
* BUG: Fix a possible crash in Editor selection management.


git-svn-id: svn://localhost/gambas/trunk@2929 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 11:46:02 +00:00
Benoît Minisini
d49fe17d83 [DEVELOPMENT ENVIRONMENT]
* NEW: Remove any use of Component.UserPath and any reference to "user 
  component".
* NEW: "libraries" management. Libraries are defined in a new tab of the
  projet property dialog. At the moment, libraries exported classes are not
  taken into account by the automatic completion.
* NEW: The ESC key now closes the help browser.
* BUG: Correctly translate compilation error messages.

[INTERPRETER]
* NEW: "libraries" management.
* NEW: The Component.UserPath property has been removed.
* BUG: Evaluating "Application.Path" or "Application.Name" on the command 
  line does not crash anymore.

[COMPILER]
* BUG: Enhance translation of some error messages.
* NEW: Take libraries into account for exported class declarations.

[ARCHIVER]
* NEW: new "-x" option to extract a file from an archive.

[GB.QT4.EXT]
* NEW: Be more clever when deciding if a line has been modified after 
  having its last character deleted.


git-svn-id: svn://localhost/gambas/trunk@2909 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-25 10:46:57 +00:00
Benoît Minisini
8f6bfa322d [DEVELOPMENT ENVIRONMENT]
* BUG: Virtual controls coordinates are correctly stored in *.form files 
  again.
* BUG: Manage the "%" unit of Report coordinates.
* BUG: Don't try to replace underscores in project names when creating 
  *.deb packages. It does not work, and apparently dpkg-buildpackage has no 
  problem with them.

[GB.GTK]
* NEW: Try to make the Paint class usabled during the Begin event.
* BUG: The Printer control can be used on all form families.

[GB.NET.CURL]
* OPT: Curl.Peek() now avoids a useless data copy.
* NEW: FtpClient.Debug and HttpClient.Debug are new properties that makes 
  the curl library verbose or not when the client is in used.
* NEW: FtpCLient.Exec() allows to run specific FTP commands.

[GB.QT4]
* NEW: Try to make the Paint class usabled during the Begin event.
* BUG: TrayIcons cannot be released twice anymore, which prevents a crash.
* BUG: The Printer control can be used on all form families.


git-svn-id: svn://localhost/gambas/trunk@2795 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-03-13 18:27:51 +00:00
Benoît Minisini
32050f56a4 [GB.NET.CURL]
* NEW: HttpClient Get, Post and Put methods now have an extra optional 
  argument to specify a file name where the server reply will be stored.
* BUG: Sending custom headers with HttpClient.Get should really work now.
* BUG: File names with "~" inside are correctly interpreted now.


git-svn-id: svn://localhost/gambas/trunk@2774 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-03-08 17:04:53 +00:00