Commit graph

3250 commits

Author SHA1 Message Date
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
Adrien Prokopowicz
c5bbf1c0de [GB.XML.HTML]
* BUG: Fix the XmlElement.Id property.

git-svn-id: svn://localhost/gambas/trunk@5094 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-28 18:58:22 +00:00
Benoît Minisini
c0ad21f5a7 [DEVELOPMENT ENVIRONMENT]
* BUG: Bookmarks do not prevent project conversion anymore.


git-svn-id: svn://localhost/gambas/trunk@5093 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-28 14:51:03 +00:00
Sebastian Kulesz
d756207e91 [GB.NET.POP3]
* BUG: Remove obsolete code which was preventing successful compilation



git-svn-id: svn://localhost/gambas/trunk@5092 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-28 04:22:04 +00:00
Sebastian Kulesz
d0096ec9b9 [GB.NET.POP3]
* OPT: Document new parts of the component
* BUG: Fix the project name and version


git-svn-id: svn://localhost/gambas/trunk@5091 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-27 23:51:48 +00:00
Benoît Minisini
a55dc434de [GB.NET.POP3]
* BUG: Remove the .settings file, it must not go the the subversion 
  repository.


git-svn-id: svn://localhost/gambas/trunk@5090 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-27 23:32:29 +00:00
Sebastian Kulesz
f9bef18362 [GB.NET.POP3]
* NEW: Update the component to the latest revision. An old one was 
imported instead.


git-svn-id: svn://localhost/gambas/trunk@5089 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-27 23:27:29 +00:00
Benoît Minisini
47752f6610 [GB.NET.POP3]
* NEW: Initial implementation of a POP3 client.


git-svn-id: svn://localhost/gambas/trunk@5088 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-27 22:55:45 +00:00
Benoît Minisini
97a444fbb4 [DEVELOPMENT ENVIRONMENT]
* NEW: Remove the logo on the welcome screen, so that the dialog can be
  smaller for small screens.


git-svn-id: svn://localhost/gambas/trunk@5087 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-27 20:54:13 +00:00
Benoît Minisini
52827905de [GB.GTK]
* BUG: Fix TreeView, ListView, ColumnView and ListBox click detection.


git-svn-id: svn://localhost/gambas/trunk@5086 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-27 20:10:24 +00:00
Benoît Minisini
d39067841a [DEVELOPMENT ENVIRONMENT]
* NEW: New default project icon.
* BUG: Bookmarks are correctly updated now, when lines are inserted or 
  removed.
* BUG: The code pretty printer now preserves breakpoints and bookmarks.
* NEW: The welcome dialog box now has a filter for examples.

[EXAMPLES]
* BUG: Don't use JIT compiler in NeHeTutorial example #19, it crashes.
  OpenGL LLVM 3.0 and Gambas LLVM 3.1 in the same process is not welcome!

[GB.QT4.EXT]
* NEW: Editor.Bookmarks and Editor.Breakpoints properties are now writable.


git-svn-id: svn://localhost/gambas/trunk@5085 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-27 12:46:33 +00:00
Benoît Minisini
4d8d507276 [GB.OPENGL]
* BUG: Add synonymous starting with an underscore for constants beginning 
  with a digit.

[GB.OPENGL.GLSL]
* BUG: Remove the "GL_" prefix in all constants.


git-svn-id: svn://localhost/gambas/trunk@5084 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-27 03:02:43 +00:00
Benoît Minisini
43c441d15c [GB.DB.SQLITE3]
* BUG: 'INTEGER' fields are now assumed to be serial fields only if 
  'AUTOINCREMENT' has been specified too.

[GB.QT4]
* BUG: Fix declaration of Desktop.HasSystemTray property.


git-svn-id: svn://localhost/gambas/trunk@5083 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-27 02:57:50 +00:00
Benoît Minisini
bc5852b5fa [GB.GTK]
* BUG: Window should not raise useless resize events anymore.
* BUG: Windows embedded inside a Splitter correctly raise their Resize 
  events.
* BUG: Don't try to resize the window inner container with a negative size 
  when the window is too small.
* BUG: Draw window background correctly.
* BUG: Don't try to synchronize X11 when the debugger goes forward if there 
  is no X11 connection yet!


git-svn-id: svn://localhost/gambas/trunk@5082 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-27 00:26:34 +00:00
Benoît Minisini
1741274a34 [INTERPRETER]
* NEW: Task.Value now raises an error if the background task has failed for
  any reason. Otherwise it normally returns the background task return 
  value.
* BUG: Background tasks do not interfere with the debugger anymore.

[GB.TASK]
* NEW: The component has been moved inside the interpreter.


git-svn-id: svn://localhost/gambas/trunk@5081 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-26 16:26:53 +00:00