Commit graph

3773 commits

Author SHA1 Message Date
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
Benoît Minisini
2973820c70 [INTERPRETER]
* BUG: Don't crash when calling a dynamic _call special method in a static 
  context. Raise an error instead.


git-svn-id: svn://localhost/gambas/trunk@5707 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-19 02:48:34 +00:00
Benoît Minisini
57a77280a1 [COMPILER]
* BUG: Generate correct information files for components having string 
  constants with newline inside.


git-svn-id: svn://localhost/gambas/trunk@5706 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-19 02:01:08 +00:00
Radek Fryšták
de58e0cad0 [EXAMPLES]
* NEW: update czech translate.

[GB.ARGS]
* NEW: update czech translate.

[GB.FORM.DIALOG]
* NEW: update czech translate.

[GB.FORM.MDI]
* NEW: update czech translate.

[GB.DB.FORM]
* NEW: update czech translate.

[GB.REPORT]
* NEW: update czech translate.

[GB.NET.POP3]
* NEW: update czech translate.


git-svn-id: svn://localhost/gambas/trunk@5705 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-15 15:47:32 +00:00
Radek Fryšták
a55b9d3910 [GB.FORM]
* NEW: update chzech translation.


git-svn-id: svn://localhost/gambas/trunk@5704 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-15 14:30:21 +00:00
Radek Fryšták
7aabc4cb2b [DEVELOPMENT ENVIRONMENT]
* NEW: update czech translation.


git-svn-id: svn://localhost/gambas/trunk@5703 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-15 14:01:25 +00:00
Laurent Carlier
f2cdcd54cc [GB.JIT]
* BUG: Try to restore building of component with llvm 3.1


git-svn-id: svn://localhost/gambas/trunk@5702 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-15 08:15:10 +00:00
Fabien Bodard
db66a1412e [EXAMPLES]
* BUG: Temporaly disable map effects because they are too unstable



git-svn-id: svn://localhost/gambas/trunk@5701 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-14 21:15:56 +00:00
Laurent Carlier
922b32a89c [GB.JIT]
* BUG: Fix building with llvm 3.3

It should still build with llvm-3.2 (not tested)


git-svn-id: svn://localhost/gambas/trunk@5700 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-13 11:55:04 +00:00
Laurent Carlier
8ca73977d0 [GB.JIT]
BUG: Use another header file for configure step that is available from v3.1 to v3.3+,
so proper include path is choosed


git-svn-id: svn://localhost/gambas/trunk@5699 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-13 11:35:45 +00:00
Laurent Carlier
1dac375aa8 [GB.JIT]
BUG: Fix configure with llvm 3.3


git-svn-id: svn://localhost/gambas/trunk@5698 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-13 11:25:24 +00:00
Benoît Minisini
70eca15fb4 [INTERPRETER]
* BUG: Do not search for Application_Error if the project startup class 
  has not be loaded yet.

[GB.GUI.BASE]
* NEW: Typing keys inside an IconView should not crash anymore.


git-svn-id: svn://localhost/gambas/trunk@5697 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-09 21:30:43 +00:00
Benoît Minisini
fb673982d7 [GB.NET]
* BUG: SocketServer: Reinitialize the timeout each time the blocking mode 
  changes.


git-svn-id: svn://localhost/gambas/trunk@5696 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-03 19:13:22 +00:00