Commit graph

2243 commits

Author SHA1 Message Date
Benoît Minisini
6ad8880c78 [GB.QT4.EXT]
* BUG: Fix a crash in folding procedure, by strictly folding between 
  procedure limits, and by not trying to be clever with comments.


git-svn-id: svn://localhost/gambas/trunk@4125 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-13 23:37:48 +00:00
Benoît Minisini
2e398f2a63 [INTERPRETER]
* BUG: Fix the declaration of SizeOf() syntax.


git-svn-id: svn://localhost/gambas/trunk@4124 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-13 02:31:56 +00:00
Benoît Minisini
db575749b4 [INTERPRETER]
* BUG: Now incrementing or decrementing a boolean raises an error.


git-svn-id: svn://localhost/gambas/trunk@4123 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-13 00:04:40 +00:00
Benoît Minisini
04eff64e18 [INTERPRETER]
* BUG: Remove the deprecated Object.LastEventName property.


git-svn-id: svn://localhost/gambas/trunk@4122 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-13 00:02:33 +00:00
Benoît Minisini
043c6300b3 [DEVELOPMENT ENVIRONMENT]
* BUG: In the menu editor, pasting menus works correctly now.


git-svn-id: svn://localhost/gambas/trunk@4121 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-12 22:26:10 +00:00
Benoît Minisini
8eb1a35189 [EXAMPLES]
* NEW: Apply the gb.pdf changes to the PDFViewer example.

[GB.PDF]
* BUG: Remove a debugging message and fix the return value of the Find() 
  method.

[GB.FORM]
* NEW: Add a Click and a Change event to the DateBox control. The Click
  event is raised when the popup is closed.


git-svn-id: svn://localhost/gambas/trunk@4120 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-12 14:20:45 +00:00
Benoît Minisini
33d0f6a217 [GB.PDF]
* NEW: Add a PdfRect class systematically used for returning the 
  coordinates of page elements or search results.
* BUG: Fix the retrieveing of index titles.
* BUG: Some fixes in classes description.

git-svn-id: svn://localhost/gambas/trunk@4119 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-12 01:42:00 +00:00
Benoît Minisini
68a234649f [GB.SETTINGS]
* NEW: Remove the useless Settings.Array() method.


git-svn-id: svn://localhost/gambas/trunk@4118 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-11 22:45:12 +00:00
Benoît Minisini
9ea298d688 [GB.DB.SQLITE3]
* BUG: Fix some error messages.

[GB.SETTINGS]
* BUG: Settings.ReadWindow() and Settings.WriteWindow() are now private.

[GB.WEB]
* BUG: WebPage class is not exported anymore.


git-svn-id: svn://localhost/gambas/trunk@4117 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-11 22:05:53 +00:00
Benoît Minisini
212f6e1b96 [DEVELOPMENT ENVIRONMENT]
* BUG: Do not use Editor.ShowCursorPosition flag anymore.


git-svn-id: svn://localhost/gambas/trunk@4116 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-11 19:07:49 +00:00
Benoît Minisini
b7188834e5 [GB.QT4.EXT]
* BUG: Remove unused Editor.ShowWord() method and two unused flag 
  constants.


git-svn-id: svn://localhost/gambas/trunk@4115 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-11 18:54:06 +00:00
Benoît Minisini
868ca76fdc [INTERPRETER]
* BUG: Fix Byte[].FromString() method.


git-svn-id: svn://localhost/gambas/trunk@4114 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-11 16:31:51 +00:00
Benoît Minisini
aae2aee181 [INTERPRETER]
* OPT: Optimize the inequality comparison operators by putting them into
  the gbx_exec_loop.c source file.


git-svn-id: svn://localhost/gambas/trunk@4113 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-09 01:50:57 +00:00
Benoît Minisini
ca5fb092df [GB.EVAL]
* BUG: Eval() correctly returns a value again.


git-svn-id: svn://localhost/gambas/trunk@4112 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-09 00:29:06 +00:00
David Villalobos Cambronero
00716c0a9d [DEVELOPMENT ENVIROMENT]
* NEW: Spanish translation updated.

git-svn-id: svn://localhost/gambas/trunk@4111 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-09 00:06:11 +00:00
Benoît Minisini
2232c61703 [INTERPRETER]
* BUG: Fix a crash in stack backtrace management.


git-svn-id: svn://localhost/gambas/trunk@4110 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 22:04:52 +00:00
Benoît Minisini
f17878075b [CONFIGURATION]
* NEW: Switch version to 2.99.4.

[INTERPRETER]
* OPT: Optimize a little case insensitive string comparison. Hash table
  code is consequently faster.

[GB.SDL]
* NEW: Comment old Cursor class implementation.


git-svn-id: svn://localhost/gambas/trunk@4109 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 20:23:15 +00:00
Benoît Minisini
7923377850 [INTERPRETER]
* OPT: A little optimization in string allocation.
* OPT: Optimize returning from a function.
* OPT: A little optimization in conditonal jump.


git-svn-id: svn://localhost/gambas/trunk@4108 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 20:08:33 +00:00
Laurent Carlier
f15115ca84 [GB.SDL]
* BUG: Disable Cursor handling, ad it's buggy and incomplete. Only default cursor is available.


git-svn-id: svn://localhost/gambas/trunk@4107 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 19:20:50 +00:00
Benoît Minisini
0ab71b28bf [INTERPRETER]
* OPT: Don't use glibc memcmp() to compare strings. My own routine is a 
  little faster according to valgrind.
* OPT: The UTF-8 String class routines Left(), Mid() and Right() have been 
  optimized. The positions of the first 256 characters of the last string 
  processed by the String class are cached.
* OPT: Some native methods can be called like any other native subroutines.
  But that can be used only inside the interpreter, not in a component.
* OPT: The '&' operator is faster now when it takes two arguments only (the
  most frequent case).


git-svn-id: svn://localhost/gambas/trunk@4106 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 16:01:36 +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
3840aa7985 [INTERPRETER]
* OPT: Optimize some string functions by not using arguments passed by 
  reference.
* OPT: Integrate the "=" operator function into the main execution loop to
  save one function call.
* OPT: Optimize string comparison functions on x86 and x64_64 architectures
  by comparing eight bytes in one shot.


git-svn-id: svn://localhost/gambas/trunk@4104 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-07 12:38:29 +00:00
Benoît Minisini
1ab9a64c99 [DEVELOPMENT ENVIRONMENT]
* NEW: When inserting an existing module, class, form... the file view
  automatically show hidden files so that the ".src" directory inside 
  Gambas projects is always visible.

[GB.FORM]
* NEW: DirView.Settings is a new property that allows the Settings class to
  automatically save or restore settings through its Read and Write 
  methods.
* BUG: Fix the management of the ShowHidden property in FileView.
* BUG: Fix how FileView settings are saved and restored.


git-svn-id: svn://localhost/gambas/trunk@4103 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-07 01:58:03 +00:00
Benoît Minisini
070f4dff00 [GB.FORM.MDI]
* BUG: Workspace with bottom orientation correclty shows its tabbar again.


git-svn-id: svn://localhost/gambas/trunk@4102 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-07 00:34:28 +00:00
Benoît Minisini
2b2d3e448f [DEVELOPMENT ENVIRONMENT]
* BUG: When converting a Gambas 2 project, do not try to convert symbolic
  links.


git-svn-id: svn://localhost/gambas/trunk@4101 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-06 21:07:55 +00:00
Benoît Minisini
bf1c0c2cda [INTERPRETER]
* BUG: Really fix the way Trim() handle null strings. Now there is no 
  memory leaks anymore.


git-svn-id: svn://localhost/gambas/trunk@4100 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-06 20:47:26 +00:00
Benoît Minisini
19d536a912 [DEVELOPMENT ENVIRONMENT]
* OPT: Project items contents is loaded from disk only if the project items
  is visible.

[WIKI CGI SCRIPT]
* BUG: Symbol syntax for array writing has been fixed.

[EXAMPLES]
* NEW: Update example project titles.
* NEW: AnalogWatch has been rewritten with the Paint class.

[GB.FORM]
* BUG: FileView works correctly again.


git-svn-id: svn://localhost/gambas/trunk@4099 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-06 18:31:30 +00:00
Benoît Minisini
acae4c3277 [DEVELOPMENT ENVIRONMENT]
* BUG: Now just print a warning when creating the project directory icon is
  impossible.
* BUG: Fix the other warning messages so that they are printed the same 
  way.


git-svn-id: svn://localhost/gambas/trunk@4098 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-06 13:58:21 +00:00
Benoît Minisini
455dafa639 [INTERPRETER]
* BUG: DateAdd() does not raise an overflow error anymore when used on a
  time value.


git-svn-id: svn://localhost/gambas/trunk@4096 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-06 11:05:01 +00:00
Benoît Minisini
37894ac0db [INTERPRETER]
* BUG: Fix a bug in type transitivity in Trim().


git-svn-id: svn://localhost/gambas/trunk@4095 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-06 02:32:34 +00:00
Jordi Sayol
a5254d6268 [DEVELOPMENT ENVIRONMENT]
* NEW: Update Catalan tips


git-svn-id: svn://localhost/gambas/trunk@4094 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 20:15:34 +00:00
Benoît Minisini
d16a433b3e [DEVELOPMENT ENVIRONMENT]
* BUG: Ignore ValueBox.MaxLength property when converting a Gambas 2 form.


git-svn-id: svn://localhost/gambas/trunk@4093 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 20:06:35 +00:00
Benoît Minisini
7a03d0ebfb [DEVELOPMENT ENVIRONMENT]
* BUG: Fix desktop detection in the system information dialog.
* BUG: Recent projects are correctly filtered now the second time the 'open
  project dialog' is opened.

[WIKI CGI SCRIPT]
* BUG: Fix the TODO page when showing which symbols have no documentation.

[GB.FORM]
* BUG: FileView now ignores unreadable directories.

[GB.FORM.MDI]
* NEW: Action.ConfigureToolbar has been hidden as Action._ConfigureToolbar.

[GB.GTK]
* NEW: Action.Register has been hidden as Action._Register.

[GB.QT4]
* NEW: Action.Register has been hidden as Action._Register.


git-svn-id: svn://localhost/gambas/trunk@4092 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 19:57:05 +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
Jordi Sayol
54c5fdcbe8 [DEVELOPMENT ENVIRONMENT]
* NEW: Catalan translation updated.

[WIKI CGI SCRIPT]
* NEW: Updated Catalan translation.

[GB.REPORT]
* NEW: Updated Catalan translation.

[GB.DB.FORM]
* NEW: Updated Catalan translation.

[EXAMPLES]
* NEW: Updated WebBrowser Catalan translation.
* NEW: Updated TreeView Catalan translation.



git-svn-id: svn://localhost/gambas/trunk@4090 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 19:12:20 +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
8cb4217952 [DEVELOPMENT ENVIRONMENT]
* BUG: When hitting F11 to show the console, the console parent tab is now
  automatically made visible.
* BUG: When converting a Gambas 2 project, the IDE now checks that the
  project is not already opened somewhere else, and does not leave the 
  backup project locked if the conversion has succeeded.


git-svn-id: svn://localhost/gambas/trunk@4088 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 00:56:30 +00:00
Benoît Minisini
dc2318698a [COMPILER]
* BUG: Fix compilation of function calls having more than 32 ByRef 
  arguments.


git-svn-id: svn://localhost/gambas/trunk@4087 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 23:20:53 +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
2901c85ea7 [GB.NET]
* NEW: Remove the Net.MaxPathLength constant.


git-svn-id: svn://localhost/gambas/trunk@4082 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 09:45:44 +00:00
Benoît Minisini
db816a04e2 [WIKI CGI SCRIPT]
* NEW: Do not use the cache anymore.

[EXAMPLES]
* BUG: Fix some form layout in the Database example.

[GB.DB.FORM]
* BUG: DataBrowser is correctly updated now when its DataSource changes.


git-svn-id: svn://localhost/gambas/trunk@4081 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 02:08:04 +00:00
Benoît Minisini
5b853ba5f3 [INTERPRETER]
* NEW: Quote comma in Html$().

[GB.WEB]
* NEW: Response.SetCookie() has a new optional argument to set if the 
  cookie is "HttpOnly".
* NEW: Session cookies are now automatically "HttpOnly".


git-svn-id: svn://localhost/gambas/trunk@4079 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-03 09:52:28 +00:00
Benoît Minisini
ce3c5d7e53 [INTERPRETER]
* BUG: The previous Write new feature really works now.


git-svn-id: svn://localhost/gambas/trunk@4078 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-03 01:55:51 +00:00
Benoît Minisini
47ed274add [INTERPRETER]
* NEW: Write instruction can write a bunch of bytes from a pointer address.


git-svn-id: svn://localhost/gambas/trunk@4077 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-03 01:45:52 +00:00
Benoît Minisini
2afe7d8f6b [DEVELOPMENT ENVIRONMENT]
* NEW: Some cosmetic changes in system information dialog and tips dialog.


git-svn-id: svn://localhost/gambas/trunk@4076 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-02 16:44:20 +00:00
Radek Fryšták
8385b604a3 [DEVELOPMENT ENVIRONMENT]
* NEW: Update czech translation
* NEW: Update czech tips


git-svn-id: svn://localhost/gambas/trunk@4075 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-02 09:36:04 +00:00
Benoît Minisini
0f8eb4ed65 [GB.EVAL]
* OPT: Use an intermediate string buffer when analyzing a line of code.


git-svn-id: svn://localhost/gambas/trunk@4074 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-01 18:50:07 +00:00