Commit graph

3250 commits

Author SHA1 Message Date
Adrien Prokopowicz
e6fb654a59 [GB.XML]
* BUG: There are only name-chars in XmlReader element's tags.

git-svn-id: svn://localhost/gambas/trunk@4868 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-28 18:25:57 +00:00
Benoît Minisini
f9d8a9c990 [GB.COMPRESS]
* BUG: Fix internal structure of Uncompress object.


git-svn-id: svn://localhost/gambas/trunk@4867 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-28 18:06:05 +00:00
Benoît Minisini
7cab7622bf [GB.DRAW]
* BUG: Fix Draw.Picture() when using the transformation matrix and not 
  specifying height or width.


git-svn-id: svn://localhost/gambas/trunk@4866 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-27 18:06:10 +00:00
Benoît Minisini
cbd4f0d7c4 [GB.FORM]
* NEW: SidePanel: Add a popup menu to show or hide the panel, and to toggle
  the panel transparency.
* NEW: SidePanel: Transparency is stored in SidePanel settings now.


git-svn-id: svn://localhost/gambas/trunk@4865 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-27 16:45:19 +00:00
Adrien Prokopowicz
6a1852c0ad [GB.XML]
* BUG: The XmlReader.Close() method is back.
* BUG: XmlReader node values don't have extra spaces anymore.

git-svn-id: svn://localhost/gambas/trunk@4864 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-27 12:17:47 +00:00
Benoît Minisini
6c54a66760 [INTERPRETER]
* BUG: Correctly release or keep the return value of a function when 
  destructors are called during epilogue.


git-svn-id: svn://localhost/gambas/trunk@4863 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-27 01:14:05 +00:00
Emil Lenngren
bded0d999a [GB.JIT]
* BUG: Maybe fix reading global boolean variables.



git-svn-id: svn://localhost/gambas/trunk@4862 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-26 21:08:37 +00:00
Adrien Prokopowicz
001a5947bd [GB.XML]
* BUG: Non-prefixed elements does not crashes anymore
* BUG: Parsing errors are now correctly catched when calling XmlElement.AppendFromText()

git-svn-id: svn://localhost/gambas/trunk@4861 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-26 17:45:57 +00:00
Adrien Prokopowicz
acab57079d [GB.XML]
* BUG: XmlReader now correctly raises the Element state.

git-svn-id: svn://localhost/gambas/trunk@4860 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-25 17:54:35 +00:00
Adrien Prokopowicz
d3dfb74567 [GB.XML]
* NEW: XmlElement now fully supports namespace prefixes in its tag name. See the Prefix property, and the GetChildrenByNameSpace and GetElementsByNameSpace  methods.

git-svn-id: svn://localhost/gambas/trunk@4859 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-25 16:33:14 +00:00
Adrien Prokopowicz
c8b94b5b15 [GB.XML]
* NEW: The GetAttribute(), GetChildrenByTagName(), GetChildrenByAttributeValue() andGetElementsByTagName() methods now take an new Mode argument, specifying the comparison method. It can be GB.Binary,  GB.IgnoreCase or GB.Like.
* BUG: The XmlElement.ChildElements does not contains Null fields anymore.
* BUG: Removed some debugging messages.

git-svn-id: svn://localhost/gambas/trunk@4858 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-25 12:44:15 +00:00
Adrien Prokopowicz
ee023f38e4 [GB.XML]
* NEW: XmlReader now supports the CDATA sections.
* BUG: Remove some debugging messages.
* BUG: The InsertAfter, InsertBefore and ReplaceChild functions now correctly preserve the added elements.

git-svn-id: svn://localhost/gambas/trunk@4857 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-25 09:37:40 +00:00
Benoît Minisini
be77f4a2fa [INTERPRETER]
* BUG: Add a check to not create array classes when reimplementing or 
  inheriting native array classes. Hope that check is not wrong...


git-svn-id: svn://localhost/gambas/trunk@4856 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-24 18:41:57 +00:00
Adrien Prokopowicz
ef3bc6b361 [GB.XML]
* BUG: XmlReader.Node.Type now correctly shows the XmlReaderNodeType.Element value.
* BUG: Updated test module, so that it is compatible with gb.libxml.

git-svn-id: svn://localhost/gambas/trunk@4855 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-23 19:43:43 +00:00
Benoît Minisini
98f4cdbdcc [GB.FORM]
* NEW: Ignore errors when loading the gb.form.stock component. Display a
  warning message on the standard error output and use a dummy icon 
  instead.
* BUG: Movement keys are not eaten by the GridView anymore.


git-svn-id: svn://localhost/gambas/trunk@4854 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-22 21:55:46 +00:00
Benoît Minisini
23abebb931 [DEVELOPMENT ENVIRONMENT]
* NEW: The gb.form.stock component now can be explicitely checked in the
  project property dialog.
* NEW: The IDE now depends on gb.form.stock.


git-svn-id: svn://localhost/gambas/trunk@4853 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-22 21:25:46 +00:00
Emil Lenngren
1ee80f7683 [INTERPRETER]
* BUG: Correctly load the "npvar" field for Gambas functions.



git-svn-id: svn://localhost/gambas/trunk@4852 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-20 17:12:58 +00:00
Emil Lenngren
856af1cd45 [GB.JIT]
* NEW: Partially support callbacks for extern functions. You can only convert functions in the current class to pointers 
currently, i.e. functions that are referenced directly by their name.



git-svn-id: svn://localhost/gambas/trunk@4851 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-19 22:08:59 +00:00
Emil Lenngren
dba2bf91ac [GB.JIT]
* BUG: Fix extern function overriding.

[COMPILER]
* BUG: Write correct disassembly for PUSH INTEGER.



git-svn-id: svn://localhost/gambas/trunk@4850 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-19 21:23:49 +00:00
Benoît Minisini
1b53072866 [DEVELOPMENT ENVIRONMENT]
* NEW: Do not set the APPMENU_DISPLAY_BOTH environmental variable anymore.
  It seems to work now.

[EXAMPLES]
* NEW: Fractal: increase the maximum number of iterations when the zoom 
  level is higher.

[GB.GTK]
* BUG: Control.Hovered now works the same way as in gb.qt4.

[GB.FORM]
* NEW: SidePanel handles have a fixed width now (6 pixels).


git-svn-id: svn://localhost/gambas/trunk@4849 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-19 09:29:59 +00:00
Emil Lenngren
8f2695741e [GB.JIT]
* BUG: Fix "New" expression when used dynamically.



git-svn-id: svn://localhost/gambas/trunk@4848 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-18 22:53:29 +00:00
Emil Lenngren
e39e385118 [GB.JIT]
* BUG: Fix LLVM Global Variable Mappings



git-svn-id: svn://localhost/gambas/trunk@4847 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-18 19:34:32 +00:00
Benoît Minisini
a97ea1d599 [COMPILER]
* BUG: Make the internal "$load" form method private. Why was it public?


git-svn-id: svn://localhost/gambas/trunk@4846 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-18 11:13:29 +00:00
Benoît Minisini
bacc04b5bc [GB.GTK]
* BUG: Workaround GTK+ limitations and make containers clip their children
  like in gb.qt4. Not perfect yet, as Enter and Leave events may not take
  the clipping into account, and some GTK+ widgets like TextBox cannot be 
  clipped as they keep having their own X11 window.
* BUG: Splitter children coordinates are accurate now.


git-svn-id: svn://localhost/gambas/trunk@4845 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-17 23:50:25 +00:00
Benoît Minisini
02d1089079 [GB.EVAL]
* BUG: Highlight.TextAfter returns the code as it should be displayed, even
  if the Rewrite argument of Highlight.Analyze() is FALSE.


git-svn-id: svn://localhost/gambas/trunk@4844 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-17 17:56:45 +00:00
Emil Lenngren
67e1686b5a [GB.JIT]
* BUG: Execute the correct function when running the special _call function.



git-svn-id: svn://localhost/gambas/trunk@4843 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-17 17:22:44 +00:00
Benoît Minisini
43ddab7668 [GB.QT4]
* BUG: Postpone enter and leave events when a popup is displayed, like in 
  gb.gtk.


git-svn-id: svn://localhost/gambas/trunk@4842 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-17 10:56:55 +00:00
Benoît Minisini
b98a33c671 [INTERPRETER]
* BUG: If there is an error, wake up the debugger on the current stack 
  position. Return to the last encountered line break after, not before.


git-svn-id: svn://localhost/gambas/trunk@4841 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-17 09:12:31 +00:00
Emil Lenngren
c08d51f483 [GB.JIT]
* NEW: More accurate error line numbering.



git-svn-id: svn://localhost/gambas/trunk@4840 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-17 00:19:31 +00:00
Emil Lenngren
c59b33e1bb [GB.JIT]
* BUG: Fixed some bugs.

[INTERPRETER]
* BUG: "Read ... As String"  now correctly returns a void string instead of null, if it read an empty string.



git-svn-id: svn://localhost/gambas/trunk@4839 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-16 23:45:57 +00:00
Adrien Prokopowicz
ec9a9d5038 [GB.XML]
* BUG: XMLReader.Node.Type now correctly returns the state of the reader instead of the type of the node. (No, there isn't any error in this sentence)

git-svn-id: svn://localhost/gambas/trunk@4838 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-16 17:49:25 +00:00
Benoît Minisini
d94ac40f09 [GB.QT4]
* BUG: Remove debugging message.


git-svn-id: svn://localhost/gambas/trunk@4837 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-16 01:29:17 +00:00
Benoît Minisini
5e0fdbfe7e [GB.FORM]
* NEW: ButtonBox use the new Style.BoxFrameWidth and Style.BoxFrameHeight
  properties to draw itself.

[GB.GTK]
* NEW: Style.BoxFrameWidth and Style.BoxFrameHeight are two new properties 
  that replace Style.TextBoxFrameWidth.
* BUG: The DrawingArea draw event is raised before other internal drawing 
  events now, not after.
* NEW: Mouse.Forward is a new property that returns if Mouse.Delta is
  positive.
* NEW: Mouse.Inside() is a new method that returns if the mouse cursor is 
  inside a specific control.

[GB.QT4]
* NEW: Style.BoxFrameWidth and Style.BoxFrameHeight are two new properties 
  that replace Style.TextBoxFrameWidth.
* NEW: Mouse.Forward is a new property that returns if Mouse.Delta is
  positive.
* NEW: Mouse.Inside() is a new method that returns if the mouse cursor is 
  inside a specific control.


git-svn-id: svn://localhost/gambas/trunk@4836 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-16 01:27:32 +00:00
Adrien Prokopowicz
213343c966 [GB.XML]
* BUG: XmlReader.Node.Attributes.Count now always returns an integer.

git-svn-id: svn://localhost/gambas/trunk@4835 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-15 19:23:01 +00:00
Benoît Minisini
5d2edb3fec [DEVELOPMENT ENVIRONMENT]
* NEW: Profiler: Add a toggle button that displays average durations.


git-svn-id: svn://localhost/gambas/trunk@4834 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-15 14:31:50 +00:00
Emil Lenngren
f12968e5a9 [GB.JIT]
* BUG: Fix some math routines for variants.



git-svn-id: svn://localhost/gambas/trunk@4833 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-15 11:19:16 +00:00
Adrien Prokopowicz
438116bdb3 [GB.XML]
* NEW: Text nodes now escapes their contents (like Html$()).
* BUG: TextNode.TextContent now correctly works.
* BUG: XmlElement.FromText() does not crash anymore.
* BUG: The last text node of a parsed text is now correctly added.

git-svn-id: svn://localhost/gambas/trunk@4832 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-15 01:33:48 +00:00
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