Commit graph

3214 commits

Author SHA1 Message Date
Benoît Minisini
6faa6fc510 [DEVELOPMENT ENVIRONMENT]
* BUG: Be more careful when renaming the code after a control rename.

[GB.DESKTOP]
* BUG: Search in LXDE mime info cache files first if the current desktop 
  is LXDE.



git-svn-id: svn://localhost/gambas/trunk@5144 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-08 23:42:34 +00:00
Benoît Minisini
78081342bc [DEVELOPMENT ENVIRONMENT]
* BUG: Renaming a control now should only rename accurate symbols in source 
  code.


git-svn-id: svn://localhost/gambas/trunk@5143 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-08 08:15:26 +00:00
Benoît Minisini
cb9042fbad [GB.MIME]
* NEW: Try to detect gmime-2.4 if gmime-2.6 is not available.


git-svn-id: svn://localhost/gambas/trunk@5142 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-08 00:57:34 +00:00
Benoît Minisini
fad5bdba3b [CONFIGURATION]
* NEW: Switch version to 3.3.


git-svn-id: svn://localhost/gambas/trunk@5141 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-08 00:06:18 +00:00
Adrien Prokopowicz
c7229ee28d [GB.XML]
* BUG: The XmlReader.Node.Atributtes is a read-only collection.

git-svn-id: svn://localhost/gambas/trunk@5140 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-07 17:19:20 +00:00
Benoît Minisini
efccab9dc4 [GB.QT4]
* BUG: Fix TextArea foreground color management.


git-svn-id: svn://localhost/gambas/trunk@5139 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-07 16:44:09 +00:00
Benoît Minisini
e6af67cffa [DEVELOPMENT ENVIRONMENT]
* BUG: Take the value of "automatic declare local variables" option into 
  account correctly.


git-svn-id: svn://localhost/gambas/trunk@5138 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-07 12:58:09 +00:00
Benoît Minisini
e3cc0a986d [GB.DESKTOP]
* BUG: Support for LXDE mime application cache.

[GB.WEB]
* NEW: Flush the output before calling Response.End if the response is not 
  buffered.


git-svn-id: svn://localhost/gambas/trunk@5137 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-07 01:15:18 +00:00
Benoît Minisini
60a4cee44d [GB.FORM]
* BUG: Fix TabPanel tab closing.


git-svn-id: svn://localhost/gambas/trunk@5136 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-06 17:18:00 +00:00
Benoît Minisini
2d5b69b334 [GB.NET.POP3]
* NEW: Let's be mad and mark the component as "stable".


git-svn-id: svn://localhost/gambas/trunk@5135 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-06 16:21:20 +00:00
Benoît Minisini
3ba6513b6d [INTERPRETER]
* BUG: Fix the enumeration API. GB.ListEnum() has been replaced by 
  GB.BeginEnum() and GB.EndEnum(), that save the state of the internal
  current enumeration.

[GB.MIME]
* BUG: Raise an error when the MimeMessage constructor fails while parsing
  a message.

[GB.NET.POP3]
* BUG: _Pop3Client_Message must not inherit MimeMessage.
* NEW: _Pop3Client_Message has a new Message property that returns the 
  decoded MimeMessage.
* NEW: _Pop3Client_Message has a new Deleted property that returns if the
  message has been deleted.
* NEW: _Pop3Client_Message has a new Id property that returns the 
  message id, which is its index plus one.
* NEW: _Pop3Client_Message has a new Index property that returns the 
  message index, which is its id minus one.
* BUG: Hides protocol dependent routines.
* NEW: The error returned by the Pop3 client is directly used for the error 
  message.
* OPT: Remove duplicated code in TCPClient and SSLCLient. Centralize it in 
  the PopClient parent class.
* BUG: Fix the single line response reading of SSLClient.
* BUG: Fix the multiple line response reading of SSLClient and TCPClient.
* BUG: Do not display password on the standard error in debugging mode, but 
  eight "*" characters instead.
* NEW: Many methods do not return a boolean status, but raise an error 
  instead.
* BUG: Methods that return their result as a boolean status now return TRUE
  if they fail, not if they succeed (this is the Gambas convention).
* BUG: Fix the Pop3CLient.List() method.
* NEW: Rename the Pop3Client UniqueId() method as ListUniqueId().
* BUG: Fix the Pop3Client.ListUniqueId() method.


git-svn-id: svn://localhost/gambas/trunk@5134 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-06 16:20:54 +00:00
Benoît Minisini
5d6a1d14ee [DEVELOPMENT ENVIRONMENT]
* NEW: Display the project description in project items now.

[GB.FORM]
* NEW: Draw the TabPanel focus differently again.


git-svn-id: svn://localhost/gambas/trunk@5133 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-06 13:42:06 +00:00
Sebastian Kulesz
7ce8dcacc7 [GB.NET.POP3]
* BUG: Add gb.mime as dependency
* OPT: Messages now inherit MIMEMessage
* BUG: Comment out debug messages



git-svn-id: svn://localhost/gambas/trunk@5132 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-06 04:46:23 +00:00
Benoît Minisini
cc1c99990b [GB.FORM]
* NEW: Draw the TabPanel focus differently again.
* BUG: For some reason, clicking on a tab didn't give the focus to the tab 
  button on gb.gtk.

[GB.GTK]
* BUG: Fix the Stock class.


git-svn-id: svn://localhost/gambas/trunk@5131 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-06 02:02:01 +00:00
Benoît Minisini
e9cf364f99 [GB.DESKTOP]
* BUG: DesktopFile now correctly takes the current language into account 
  when extracting application names.


git-svn-id: svn://localhost/gambas/trunk@5130 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-06 01:04:41 +00:00
Benoît Minisini
3a0a6f4913 [DEVELOPMENT ENVIRONMENT]
* NEW: "Open with" menu now is based on the *.desktop files of applications
  that are installed on the system.

[GB.DESKTOP]
* NEW: DesktopFile is a new class that load *.desktop application files.
* NEW: DesktopFile.FindMime() is a static method that returns a list of
  DesktopFile that can handle a specific mime type.

[GB.FORM]
* BUG: Some fixes in the stock icon map file.
* NEW: Add a new "program" stock icon.

[GB.FORM.STOCK]
* NEW: Add a "program" stock icon.


git-svn-id: svn://localhost/gambas/trunk@5129 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-06 00:38:04 +00:00
Benoît Minisini
1937a67353 [DEVELOPMENT ENVIRONMENT]
* NEW: Pressing SHIFT with the RETURN key prevents automatic variable 
  declaration.
* BUG: Automatic variable declaration takes TRY into account.
* BUG: Automatic variable declaration now understands more expressions.
* NEW: Add a filter to the example tab of the open project dialog.

[INTERPRETER]
* NEW: String.UCaseFirst() is a new method that capitalize the first letter
  of an UTF-8 string.

[COMPILER]
* NEW: If a function argument is enclosed with braces, then no warning is
  emitted if it overrides a global symbol.

[GB.FORM]
* BUG: Transparent SidePanel controls do not eat one pixel of their 
  contents anymore.
* NEW: TabPanel draws its focus highlight differently.
* NEW: ScrollArea now draws a shadow only if the corresponding scrollbar is
  visible.


git-svn-id: svn://localhost/gambas/trunk@5128 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-05 18:36:59 +00:00
Benoît Minisini
1aa9bfb464 [DEVELOPMENT ENVIRONMENT]
* NEW: A new option for not restoring files when loading a project.


git-svn-id: svn://localhost/gambas/trunk@5127 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-05 00:34:30 +00:00
Benoît Minisini
8059e72f19 [DEVELOPMENT ENVIRONMENT]
* BUG: Function signatures now support the new syntax that allows to put
  braces around arguments to let the compiler ignore them.


git-svn-id: svn://localhost/gambas/trunk@5126 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-05 00:21:10 +00:00
Benoît Minisini
28c9d6d59b [COMPILER]
* NEW: Make one warning for each symbol kind that is overridden.

[GB.DB.FORM]
* BUG: Fix warnings.

[GB.DESKTOP]
* BUG: Fix some warnings.

[GB.EVAL.HIGHLIGHT]
* BUG: Correctly rewrite the following keywords with no spurious space 
  after: TRUE, FALSE, NULL, +INF, -INF.

[GB.FORM]
* BUG: Fix warnings.

[GB.FORM.MDI]
* BUG: Fix warnings.

[GB.WEB]
* BUG: Fix warnings.


git-svn-id: svn://localhost/gambas/trunk@5125 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-04 23:11:11 +00:00
Sebastian Kulesz
73aa9c0de0 [DEVELOPMENT ENVIRONMENT]
* NEW: Spanish translation updated.



git-svn-id: svn://localhost/gambas/trunk@5124 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-04 17:21:03 +00:00
Fabien Bodard
ce0339b02a [GB.REPORT]
OPT: Cleanup, remove all the unused variables.


git-svn-id: svn://localhost/gambas/trunk@5123 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-04 15:29:16 +00:00
Benoît Minisini
0026fb1489 [DEVELOPMENT ENVIRONMENT]
* NEW: Support for compiler warnings.
* BUG: Fix all detected warnings.

[COMPILER]
* NEW: A new compiler option '-w' to let it emit warnings.
* NEW: Emit warnings for unused variables, arguments, functions and for 
  local symbols that override global symbols. Public symbols are of course 
  not taken into account.
* NEW: If an argument is surrounded by braces, no warning will be emitted
  if the argument is not used.

[GB.EVAL]
* NEW: OPTIONAL keyword is always followed by a space now when rewriting 
  Gambas code.


git-svn-id: svn://localhost/gambas/trunk@5122 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-04 07:29:39 +00:00
Benoît Minisini
dde26cb313 [DEVELOPMENT ENVIRONMENT]
* BUG: Moving, renaming or deleting a source file now should correctly
  refresh the search list, the breakpoint list and the task list.

[GB.FORM]
* NEW: ScrollArea draws a focus border when it has focus.

[GB.NET.POP3]
* NEW: Make Pop3Client a virtual control like SmtpClient.


git-svn-id: svn://localhost/gambas/trunk@5121 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-03 23:40:59 +00:00
Benoît Minisini
dc08832e13 [DEVELOPMENT ENVIRONMENT]
* BUG: Singature of methods with a variable number of arguments are 
  correctly generated now.
* BUG: Markup syntax: Emphasis inside lists always works now.
* NEW: Markup syntax: Line breaks were implemented.
* BUG: Markup syntax: '[]' does not generate a void link anymore, but just 
  the two brackets "as is".



git-svn-id: svn://localhost/gambas/trunk@5120 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-03 11:42:23 +00:00
Benoît Minisini
69cc4041b5 [GB.MIME]
* NEW: Mime.Encode() and Mime.Decode() are two new methods to encode to and
  decode from base64, quoted-printable or uuencode encoding.
* NEW: Support for message parts. The MimePart.Message property will return
  the MimeMessage embedded inside the part.


git-svn-id: svn://localhost/gambas/trunk@5119 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-02 18:11:47 +00:00
Benoît Minisini
81cb724030 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix new markup syntax.


git-svn-id: svn://localhost/gambas/trunk@5118 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-02 15:03:09 +00:00
Benoît Minisini
a08c8e65f0 [DEVELOPMENT ENVIRONMENT]
* NEW: Some little icons in the project property component tab show the 
  state of each component (stable, not finished, unstable).
* NEW: The help comments are now interpreted with a new "Gambas markup 
  syntax" inspired from markdown syntax. People that have written comments
  in the old syntax will cry...


git-svn-id: svn://localhost/gambas/trunk@5117 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-02 12:12:46 +00:00
Fabien Bodard
91b5cc2270 [GB.REPORT]
* OPT: Set default value on control Width and Height (10 mm)


git-svn-id: svn://localhost/gambas/trunk@5116 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-02 09:30:44 +00:00
Benoît Minisini
9478faa8d7 [COMPILER]
* BUG: Last change was not a good idea. Local variables should be able to 
  override global variables. When the compiler will be able to emit 
  warnings, that could make a good warning of course...


git-svn-id: svn://localhost/gambas/trunk@5115 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-02 00:38:34 +00:00
Benoît Minisini
5d2a8b172e [COMPILER]
* BUG: Prevent local variables from hiding global variables.


git-svn-id: svn://localhost/gambas/trunk@5114 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-02 00:20:29 +00:00
Benoît Minisini
08448ebc04 [GB.MIME]
* NEW: Support for Mime parts and Mime multiparts. Writing messages seems 
  to work. Now reading must be tested.


git-svn-id: svn://localhost/gambas/trunk@5113 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-02 00:10:08 +00:00
Benoît Minisini
f469044015 [GB.MIME]
* NEW: New component that manages MIME messages. It is based on the GMime 
  library. Just the beginning of the implementation, not tested.


git-svn-id: svn://localhost/gambas/trunk@5112 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-01 16:27:24 +00:00
Benoît Minisini
3dc4fd909d [DEVELOPMENT ENVIRONMENT]
* BUG: Take the Translatable virtual property into account when saving a
  MultiContainer control.
* NEW: Use a GridView instead of a ListContainer to display components in
  the project property dialog.

[GB.FORM]
* BUG: ScrollArea computes the limits of its scrollbars correctly in all 
  cases now.
* NEW: Mark all controls in test forms untranslatable.


git-svn-id: svn://localhost/gambas/trunk@5111 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-01 14:28:48 +00:00
Fabien Bodard
9273b6c800 [GB.REPORT]
* BUG: Now VPanel work well but Experimental OnePiece is desactivated


git-svn-id: svn://localhost/gambas/trunk@5110 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-01 13:18:30 +00:00
Benoît Minisini
ce746cb611 [DEVELOPMENT ENVIRONMENT]
* BUG: Ubuntu and Debina packager now create a correct desktop file.


git-svn-id: svn://localhost/gambas/trunk@5109 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-01 01:20:48 +00:00
Sebastian Kulesz
67cafff00c [GB.NET.POP3]
* OPT: Restructured the component into folders.
* NEW: Multipart messages are now parsed into MIMEPart_Message structures.
* BUG: Quote-Encoded strings are handled correctly



git-svn-id: svn://localhost/gambas/trunk@5108 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-31 23:41:54 +00:00
Benoît Minisini
505cd02a5f [INTERPRETER]
* BUG: Disable the component specific event loop when starting a task. No
  way that any GUI works in a background task now, but I can't disable it
  automatically.


git-svn-id: svn://localhost/gambas/trunk@5107 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-31 19:56:41 +00:00
Benoît Minisini
1a059ea685 [GB.GTK]
* BUG: FullScreen windows correctly raise the Open event now.

[GB.QT4]
* BUG: Windows do not raise their Resize event if the size didn't actually 
  change.


git-svn-id: svn://localhost/gambas/trunk@5106 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-31 19:41:56 +00:00
Benoît Minisini
3d3b19cba5 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix task detection.
* NEW: When editing a WebPage, hitting ENTER or RETURN may automatically
  insert a closing "%>" if the cursor is inside a non-closed "<%". This 
  prevents unwanted syntax highlighting of HTML with Gambas syntax.


git-svn-id: svn://localhost/gambas/trunk@5105 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-31 18:02:36 +00:00
Benoît Minisini
62c4c78e22 [GB.DB.FORM]
* BUG: DataView and DataBrowser in creation mode now do not display any
  selected row, unless in editing mode. In that case the "new record" last
  row is highlighted.
* NEW: DataBrowser.CanCreate is a new property that hides or shows the 
  create button.
* NEW: DataBrowser.CanDelete is a new property that hides or shows the 
  delete button.


git-svn-id: svn://localhost/gambas/trunk@5104 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-31 16:09:52 +00:00
Sebastian Kulesz
dca8739afc [GB.NET.POP3]
* NEW: Add initial MIME (IMF) parsing support. Not yet implemented.



git-svn-id: svn://localhost/gambas/trunk@5103 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-31 01:29:14 +00:00
Benoît Minisini
1ab3b111c5 [INTERPRETER]
* BUG: Handle errors occuring while waiting for a process correctly now.
* NEW: Process.Wait() now can take an optional timeout argument, in 
  milliseconds.
* BUG: Handle errors occuring while waiting for a task correctly now.


git-svn-id: svn://localhost/gambas/trunk@5102 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-30 22:49:21 +00:00
Benoît Minisini
f3f10a4167 [DEVELOPMENT ENVIRONMENT]
* BUG: Notes (TODO:, FIXME:, NOTE:) can be used in comments beginning with
  two quotes.

[INTERPRETER]
* BUG: Fix possible recursion problems while freeing signal handlers.
* BUG: The output of a process is sometimes woke up ready to read whereas 
  there is nothing to read on it. Close the output immediately instead of 
  calling the callback again and again.
* BUG: Try to handle correctly errors raised during the Kill event of a
  background task. It does not work yet. :-(
* NEW: Task.Running is a new property that returns if a background task is
  running.

[GB.NET]
* NEW: Add Net.CannotAuthenticate error constant for gb.net.pop3.

[GB.NET.POP3]
* BUG: Big interface clean-up so that it matches other networking classes.
* NEW: Add a Pop3Client.Debug property. Not all "Debug" instructions have 
  been replaced yet.
* NEW: The default value of the Port property is zero now. It is 
  automatically converted to 110 or 995 according to the encryption method.
* NEW: Use the Net class for Pop3Client.Status instead of specific 
  constants.
* NEW: Rename the _PopMessage virtual class in _Pop3Client_Message to 
  follow the standard naming scheme that the wiki loves.


git-svn-id: svn://localhost/gambas/trunk@5101 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-30 22:13:25 +00:00
Tobias Boege
a7605476f3 [GB.ADT]
* NEW: Rewrite List class
* BUG: Fix memory leaks from breaking list enumeration
* BUG: Replace element destruction postponing in Deque by new API calls



git-svn-id: svn://localhost/gambas/trunk@5100 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-30 01:51:01 +00:00
Benoît Minisini
c90ed8da3a [INTERPRETER]
* NEW: New API GB.CompVariant() that compares two Variant.


git-svn-id: svn://localhost/gambas/trunk@5099 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-29 21:02:09 +00:00
Benoît Minisini
1a031869d0 [INTERPRETER]
* NEW: Implement Variant comparison routine.
* NEW: Variant[] now has an Exist() and a Find() method.


git-svn-id: svn://localhost/gambas/trunk@5098 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-29 20:56:13 +00:00
Benoît Minisini
44b919bb85 [INTERPRETER]
* BUG: Fix a typo in '^' operator implementation that prevented its second
  argument to be a Variant.


git-svn-id: svn://localhost/gambas/trunk@5097 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-29 19:12:54 +00:00
Benoît Minisini
c2764bc3f8 [COMPILER]
* BUG: Fix compilation of WebPage having UTF-8 characters inside.

[INTERPRETER]
* BUG: A background task automatically closes the file descriptor of every 
  other tasks.
* BUG: A task cannot create sub-tasks.
* NEW: There is an hard limit of simultaneous 256 background tasks now. 
  That should prevent fork bombing.
* BUG: Process.Kill does not try to wait for the task completion, and 
  return immediately.
* BUG: Fix events flushing at task termination.

[GB.EVAL.HIGHLIGHT]
* BUG: Fix WebPage highlighting.

[GB.WEB]
* BUG: The session cookie is now only accessible to the current CGI script.
* NEW: Response.SendFile() can set the content-type according to the file
  extension, if no content-type has been specified.


git-svn-id: svn://localhost/gambas/trunk@5096 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-29 00:43:48 +00:00
Sebastian Kulesz
b3c5b7a761 [GB.NET.POP3]
* NEW: Allow enumeration of messages using FOR EACH
* BUG: Free POPClient instances created when using _get
* OPT: Add status codes to report wrong username or password when logging in
* OPT: When reading single lines use Line Input


git-svn-id: svn://localhost/gambas/trunk@5095 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-28 22:59:38 +00:00