Commit graph

2913 commits

Author SHA1 Message Date
Emil Lenngren
56807e5b52 [GB.JIT]
* NEW: "Extern" functions should now work hopefully, but callbacks are still not yet implemented.
* BUG: Fix conversion Class -> Variant for non-virtual classes.
* BUG: Some minor bug fixes.

[INTERPRETER]
* BUG: Load classes from JIT should work better now.



git-svn-id: svn://localhost/gambas/trunk@4831 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-15 01:27:31 +00:00
Benoît Minisini
87b828759b [DEVELOPMENT ENVIRONMENT]
* BUG: Fix generation of action and toolbar information so that the IDE 
  does not crash anymore when having no custom toolbar definition.


git-svn-id: svn://localhost/gambas/trunk@4830 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-15 00:33:49 +00:00
Adrien Prokopowicz
2011d69ee3 [GB.XML]
* BUG: The XMLWriter Text(), Comment(), CDATA() and PI() functions now correctly close their parent elements.

git-svn-id: svn://localhost/gambas/trunk@4829 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-13 23:10:33 +00:00
Benoît Minisini
afdc949545 [GB.FORM.MDI]
* NEW: Toolbar: You can add a space element between buttons now.
* NEW: Toolbar: New layout for the configuration dialog.

[GB.GTK]
* OPT: Optimize GTK+ widget -> gb.gtk control lookup everywhere.
* BUG: Fix drag & drop management again, so that it behaves as in gb.qt4 as
  much as possible. At the moment, disable controls cannot be a drop 
  target, contrary to gb.qt4.


git-svn-id: svn://localhost/gambas/trunk@4828 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-13 20:11:32 +00:00
Tobias Boege
0a4dd6f9d2 [GB.NCURSES]
* NEW: Add ReadLine() function to Window that does the same as ncurses
  getstr(3X) but usable in all input modes
* NEW: Encapsulate Input, Cursor and Border modes into static objects
* NEW: Tidy up Color class in various places
* NEW: Specifiying color values is now done via floats instead of ints
* NEW: Remove ContainerW and ContainerH (and corresponding long forms)
  properties from Window class. It is always .Width/.Height + 2
* NEW: Rename Input.Repeater to Input.RepeatDelay
* OPT: Remove unnecessary ncurses input mode changes
* OPT: Tidy up Input and Screen code
* OPT: Reduce useless calls to input queue read callback in Screen class
* BUG: Add constant for already implemented "very visible" cursor mode
* BUG: Use opaque input module in Window.Ask()
* BUG: Note that NoDelay and Window/Screen events still not work



git-svn-id: svn://localhost/gambas/trunk@4827 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-13 15:47:00 +00:00
Adrien Prokopowicz
35b390e5e1 [GB.XML.XSLT]
* BUG: No more excessive line-breaks and spaces added to the output document.

[GB.XML]
* NEW: Text nodes that only contains white characters (\n \r \t and space) are now deleted when parsing.
* BUG: (non-)indentation now correctly works on text nodes.

git-svn-id: svn://localhost/gambas/trunk@4826 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-12 21:12:56 +00:00
Benoît Minisini
32affd6b13 [GB.QT4]
* BUG: Setting the Text property of a TextArea control takes the foreground
  color into account now.


git-svn-id: svn://localhost/gambas/trunk@4825 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-12 20:05:36 +00:00
Adrien Prokopowicz
5248d86f82 [GB.XML]
* BUG: Comments are now correctly supported.
* BUG: Fix a 32-bits compilation warning.

git-svn-id: svn://localhost/gambas/trunk@4824 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-12 18:17:10 +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
Bruce Bruen
187bc24cc6 [DEVELOPMENT ENVIRONMENT]
* NEW: Autotools packager now respects the vendor name prefix option (trivial)

git-svn-id: svn://localhost/gambas/trunk@4822 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-12 08:11:19 +00:00
Benoît Minisini
f24d7b1899 [GB.FORM.MDI]
* NEW: Do not disable toolbars when they are configured. Otherwise drag &
  drop does not work with gb.gtk.

[GB.FORM.STOCK]
* NEW: Some icons updates.
* BUG: Add the 'earth' icon in the stock.

[GB.GTK]
* BUG: Fix drag & drop support.
* NEW: Draw.Tile() does not transform pixbufs into a pixmaps anymore.


git-svn-id: svn://localhost/gambas/trunk@4821 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-12 01:50:46 +00:00
Benoît Minisini
64fef6f598 [DEVELOPMENT ENVIRONMENT]
* BUG: If the project is read-only, the profile file is stored in the 
  process temporary directory in /tmp instead of the project directory.
* NEW: The name of profile files now follows this scheme: '.N.prof', where
  'N' is an index incremented each time the project is run.
* BUG: Toolbars and popup-menus are correctly updated at first load form
  text, source and form editors.
* BUG: Do not show or hide toolbars buttons outside of the toolbar 
  'Configure' event.

[INTERPRETER]
* NEW: The '-p' option now takes the profile file path as argument.

[GB.DEBUG]
* NEW: The profile file path can be specified on the command line.

[GB.FORM.MDI]
* NEW: Configured toolbars are drawn with a red frame.

[GB.GTK]
* BUG: Remove warnings displayed by the Control Raise() and Lower() 
  methods.
* BUG: Draw.Style methods now are correctly clipped.


git-svn-id: svn://localhost/gambas/trunk@4820 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-10 14:58:45 +00:00
Benoît Minisini
ba9bfd8847 [GB.QT4]
* OPT: A little optimization when using Draw.Begin() on a cached 
  DrawingArea.


git-svn-id: svn://localhost/gambas/trunk@4819 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-09 20:46:11 +00:00
Benoît Minisini
49fe75eec8 [GB.GTK]
* BUG: 'Default' or 'Cancel' buttons now take the focus when they are 
  activated by the ENTER key.

[GB.QT4]
* BUG: 'Default' or 'Cancel' buttons now take the focus when they are 
  activated by the ENTER key.


git-svn-id: svn://localhost/gambas/trunk@4818 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-09 15:31:56 +00:00
Benoît Minisini
c47cd00a15 [INTERPRETER]
* BUG: libffi is correctly detected again.


git-svn-id: svn://localhost/gambas/trunk@4817 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-09 14:03:58 +00:00
Benoît Minisini
835dd33dcf [GB.DEBUG]
* NEW: GB_PROFILE_MAX environment variable now can take the maximum size of 
  a profile file in megabytes. The default value is 512 Mb. The minimum
  value is 128 Mb, and the maximum value is 4096 Mb.


git-svn-id: svn://localhost/gambas/trunk@4816 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-09 13:39:47 +00:00
Benoît Minisini
442f8ce70e [CONFIGURATION]
* NEW: Switch version to 3.2.0.

[GB.XML]
* BUG: Fix a 64-bits compilation warning.



git-svn-id: svn://localhost/gambas/trunk@4815 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-09 02:44:17 +00:00
Adrien Prokopowicz
6fe4df8b2a [GB.XML]
* BUG: XmlReader now correctly reads comments.
* BUG: XmlReader now correctly reads self-closed elements.

git-svn-id: svn://localhost/gambas/trunk@4814 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-09 00:06:38 +00:00
Adrien Prokopowicz
54395ea31f [GB.XML]
* BUG: Fixed XmlExplorer document loading.
* BUG: Fixed the XmlElement.LastChildElement property.

git-svn-id: svn://localhost/gambas/trunk@4813 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-06 16:38:18 +00:00
Adrien Prokopowicz
019626a992 [GB.XML]
* NEW: XML output can now be indented by using ToString(Indent As Boolean) or Save(fileName As String, Indent As Boolean)

git-svn-id: svn://localhost/gambas/trunk@4812 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-05 22:38:58 +00:00
Adrien Prokopowicz
6e474b44d6 [GB.XML]
* BUG: Fixed compilation problems with textnode.h.

git-svn-id: svn://localhost/gambas/trunk@4811 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-05 21:26:48 +00:00
Adrien Prokopowicz
6d2b5d0ccd [GB.XML]
* NEW: The parser now raises complete error messages if parsing fails.
* BUG: Returning XmlDocuments does not crash anymore.

[GB.XML.XSLT]
* BUG: XSLT document parsing now correctly works

git-svn-id: svn://localhost/gambas/trunk@4810 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-05 21:17:45 +00:00
Benoît Minisini
c828342220 [DEVELOPMENT ENVIRONMENT]
* NEW: Relayout the GUI of the new packaging options.


git-svn-id: svn://localhost/gambas/trunk@4809 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-05 07:39:31 +00:00
Benoît Minisini
538960d6ba [GB.GTK]
* BUG: Screen geometry and available geometry is now computed the same way 
  as in gb.qt4. In other words, it is screen based, and does not crash 
  with Xinerama anymore.


git-svn-id: svn://localhost/gambas/trunk@4808 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-05 07:26:14 +00:00
Bruce Bruen
1dc3f4b656 [DEVELOPMENT ENVIRONMENT]
* NEW: Added packing identity preferences feature

git-svn-id: svn://localhost/gambas/trunk@4807 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-05 06:56:10 +00:00
Benoît Minisini
7e3570bfc9 [DEVELOPMENT ENVIRONMENT]
* OPT: Use Application.Busy earlier when opening a project.

[WIKI CGI SCRIPT]
* BUG: Fix links with explicit version.

[INTERPRETER]
* BUG: Setting System.Profile does not crash the interpreter anymore when
  profiling has not been activated by the '-p' command-line flag.

[GB.FORM]
* NEW: FileChooser and DirChooser: It is now possible to move up one 
  directory even if we are on the root of the current bookmark.

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

[GB.XML.RPC]
* BUG: Fix component requirements.


git-svn-id: svn://localhost/gambas/trunk@4806 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-03 22:21:24 +00:00
Emil Lenngren
ceb68d62bf [GB.JIT]
* NEW: Debug message which function is being compiled.
* BUG: Fix object to variant conversion for 32-bit platforms.



git-svn-id: svn://localhost/gambas/trunk@4805 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-03 17:09:17 +00:00
Benoît Minisini
16bc53f245 [GB.FORM]
* NEW: GridView: Setting the height of a row to -1 now makes it fit its
  contents.


git-svn-id: svn://localhost/gambas/trunk@4804 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-02 19:14:33 +00:00
Benoît Minisini
ff93548e41 [DEVELOPMENT ENVIRONMENT]
* BUG: Profile windows correctly display line numbers now.

[GB.FORM]
* NEW: Hidden transparent SidePanel controls now have a large handle.

[GB.QT4.EXT]
* NEW: Editor: Line numbers are not drawn behind a procedure separator.
* NEW: Editor.NoFolding is a new flag to disable procedure folding support.
* NEW: Editor.LineOffset is a new property to define the line number just
  before the first displayed line (zero by default).


git-svn-id: svn://localhost/gambas/trunk@4803 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-02 14:44:00 +00:00
Benoît Minisini
e3ff08a8a6 [GB.FORM]
* NEW: Show trasnaprent SidePanel buttons as soon as the mouse hovers the 
  handle.

[GB.QT4.EXT]
* NEW: Procedures are folded or unfolded on mouse button release now, not 
  on mouse button press.


git-svn-id: svn://localhost/gambas/trunk@4802 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-02 01:01:29 +00:00
Benoît Minisini
2170ea1471 [INTERPRETER]
* BUG: Really fix use of static classes as extern function argument.


git-svn-id: svn://localhost/gambas/trunk@4801 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-01 16:41:45 +00:00
Benoît Minisini
c18655158a [GB.FORM]
* NEW: SidePanel has a new Transparent property to define if the SidePanel
  has a border handle or not. By default, SidePanel are not transparent by
  default, as before.


git-svn-id: svn://localhost/gambas/trunk@4800 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-01 15:05:16 +00:00
Benoît Minisini
46e0ab1dd3 [INTERPRETER]
* BUG: Better class loading fix.


git-svn-id: svn://localhost/gambas/trunk@4799 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-01 10:02:47 +00:00
Benoît Minisini
636387d335 [INTERPRETER]
* BUG: Fix class loading so that circular dependencies between class 
  initialization is possible.
* NEW: Exported classes are now completely initiliazed at startup. It may
  break some things...


git-svn-id: svn://localhost/gambas/trunk@4798 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-01 10:00:35 +00:00
Benoît Minisini
620770ed20 [COMPILER]
* BUG: ByRef keyword is now correctly forbidden in extern functions now.
* BUG: '...' syntax is now correctly forbidden in event description.


git-svn-id: svn://localhost/gambas/trunk@4797 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-01 00:25:45 +00:00
Benoît Minisini
a865d9e227 [INTERPRETER]
* NEW: Support for variable number of arguments in extern functions.
* BUG: Fix use of static classes as extern function argument.

[COMPILER]
* NEW: Support for variable number of arguments in extern functions.

[GB.JIT]
* BUG: The GB_JIT environment variable has really no effect if it is 
  defined but a null string.


git-svn-id: svn://localhost/gambas/trunk@4796 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-01 00:18:38 +00:00
Adrien Prokopowicz
df734896c2 [GB.XML]
* BUG : Attributes.Count correctly works now
* BUG : XmlReader.Read only returns Eof if nothing has been found
* OPT : XmlReader now always adds read attributes instead of looking if it is already set

git-svn-id: svn://localhost/gambas/trunk@4795 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-31 00:52:06 +00:00
Adrien Prokopowicz
5fafeec711 [GB.XML.HTML]
BUG : Html elements which must have self-closing tags are now correctly rendered.
BUG : Sylesheet paths are now correctly supported.
BUG : Setting the base URL of a document works fine now.
BUG : HtmlDocument now can correctly detect the document type.

git-svn-id: svn://localhost/gambas/trunk@4794 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-30 21:18:16 +00:00
Laurent Carlier
3264da4c53 [GB.JIT]
* BUG: Now component is disabled for llvm version prior to 3.1 at compilation time.


git-svn-id: svn://localhost/gambas/trunk@4793 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-30 14:11:38 +00:00
Fabien Bodard
b9a0fe018c [DEVELOPMENT ENVIRONMENT]
* NEW: ReportLabel and ReportTextLabel show a blue dashed border, so they are more easy to find.


git-svn-id: svn://localhost/gambas/trunk@4792 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-30 09:49:01 +00:00
Adrien Prokopowicz
b2337ca7c7 [GB.XML]
OPT : Many code organization improvements, so that it is more readable
OPT : Directly uses char* into the nodes
OPT : Nodes have now pointers to their brothers and their parent, so that each Element behaves as a double-linked list
OPT : Improvements in gb.xml/gb.html linkage, so that ther isn't any including cpp files anymore
NEW : Added license agreements to the top of each source file
BUG : XmlNode.Attributes can't return Null anymore. If the node is not an Element, this property acts like there isn't any attribute.
BUG : Relationship between nodes are now correctly supported, so that every node is correctly released

git-svn-id: svn://localhost/gambas/trunk@4791 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-29 22:19:22 +00:00
Laurent Carlier
6b8cf6448e [CONFIGURATION]
* BUG: Adapt to the verbosity output when a pkg-config component isn't available.


git-svn-id: svn://localhost/gambas/trunk@4790 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-29 05:55:35 +00:00
Laurent Carlier
79c4ff0e71 [CONFIGURATION]
* NEW: Add more verbosity about the failing pkg-config requirement.

checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for gb.media component with pkg-config... no
configure: WARNING: Unable to met pkg-config requirement: gstreamer-interfaces-0.10
configure: WARNING: gb.media is disabled
checking that generated files are newer than configure... done
 


git-svn-id: svn://localhost/gambas/trunk@4789 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-28 21:32:51 +00:00
Benoît Minisini
c1decfddfd [INTERPRETER]
* BUG: Enumerating the Param class does not leak memory in some cases 
  anymore.


git-svn-id: svn://localhost/gambas/trunk@4788 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-28 08:08:36 +00:00
Benoît Minisini
083ed1dd8e [GB.FORM]
* NEW: Hidden SidePanel now has two toggle buttons that appear when the 
  mouse moves on the two ends of the hidden panel.


git-svn-id: svn://localhost/gambas/trunk@4787 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-27 22:00:25 +00:00
Benoît Minisini
05c354e56e [EXAMPLES]
* OPT: Fractal: optimize drawing by detecting rectangles having the same 
  color.


git-svn-id: svn://localhost/gambas/trunk@4786 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-26 23:20:19 +00:00
Benoît Minisini
5ad32aea43 [GB.JIT]
* BUG: Fix two warnings in structure initializations.


git-svn-id: svn://localhost/gambas/trunk@4785 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-26 19:04:22 +00:00
Benoît Minisini
2375145a67 [DEVELOPMENT ENVIRONMENT]
* OPT: Use JIT compiler to speed-up the loading of profile files.

[EXAMPLES]
* NEW: Display a rose inside the window of the Fractal example. Why not?


git-svn-id: svn://localhost/gambas/trunk@4784 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-26 18:13:09 +00:00
Emil Lenngren
743bbc7a2a [GB.JIT]
* BUG: Fix String -> Long conversion.


git-svn-id: svn://localhost/gambas/trunk@4783 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-26 17:59:14 +00:00
Benoît Minisini
7fb2fefccd [DEVELOPMENT ENVIRONMENT]
* NEW: Profiler windows now take into account global editor options like 
  showing line numbers.
* NEW: Profiler now displays when a line is called once.


git-svn-id: svn://localhost/gambas/trunk@4782 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-26 17:41:38 +00:00