Commit graph

85 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Benoît Minisini
8ad1afe673 [CONFIGURATION]
* NEW: Print disabled components individually.

[GB.QT4]
* BUG: ComboBox background color is correctly handled now.


git-svn-id: svn://localhost/gambas/trunk@4739 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-18 01:19:15 +00:00
Adrien Prokopowicz
95f477ead0 [GB.XML]
OPT : A few compilation optimizations in headers inclusions.
OPT : Use of separated internal classes of gambas objects. This might prevent from a lot of problems.
OPT : Strings are not stored as wchar_t* anymore, but as simple char*, and are converted only when necessary (like UTF8 characters verification).
OPT : Does not use STL classes anymore. They are too slow.  Uses now handmade classes.
OPT : Nodes are now internally linked to their brothers, so it makes find them really fasters, and allows no longer use of external linked list.
OPT : When creating new nodes, linked Gambas objects are created only when necessary, so it makes internals instanciations very faster (such as the parser).
OPT : Handmade string/memory classes and functions are now separated from the main.cpp component file.
OPT : Use specialized memory management functions (like memcpy, memchr ...) into the parser. They are really faster than C loops, and speeds up the parser for documents that have a lot of plain text.
OPT : Internally, the stream parser (XmlReader) takes only one char, not a unuseful wole string object.
OPT : Does not updates debugging data when parsing a file. They will be generated only if an error is raised (not implemented yet). It will allow a speedier parser and more precise informations.
BUG : When loading a document from a file, now correctly releases the file data.
BUG : Solved a few XmlReader uninitialized variables, that could make the stream parser crash or returns strange results.

git-svn-id: svn://localhost/gambas/trunk@4737 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-17 20:49:54 +00:00
Benoît Minisini
409f3ed4d7 [DEVELOPMENT ENVIRONMENT]
* BUG: Don't crash if there is a compilation error in a form file.
* BUG: Autotools packager "make uninstall" should be definitely fixed.

[GB.GTK]
* NEW: A new interface to allow gb.gtk.opengl to create its GLArea widget.

[GB.GTK.OPENGL]
* NEW: New component that allows to do OpenGL with GTK+. It is based on there
  gtkglext library.

[GB.OPENGL]
* BUG: Initialize GLEW once.

[GB.QT4.OPENGL]
* NEW: Remove the Update() and the Select() methods.

[GB.XML.HTML]
* BUG: Don't link against gb.xml anymore as it seems to break on some 
  systems. Wait for a better solution...


git-svn-id: svn://localhost/gambas/trunk@4717 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-06 01:14:57 +00:00
Benoît Minisini
ea6c5f9688 [GB.XML.HTML]
* BUG: Try to bribe libtool so that we can link against gb.xml.


git-svn-id: svn://localhost/gambas/trunk@4716 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-05 20:52:42 +00:00
Benoît Minisini
e2fac79ffb [CONFIGURATION]
* NEW: Replace the old "INCLUDES" directive by "xxx_CPPFLAGS" in all 
  Makefile.am files.

[GB.XML]
* BUG: Remove debugging flags from compilation flags.


git-svn-id: svn://localhost/gambas/trunk@4714 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-04 16:45:14 +00:00
Benoît Minisini
55604a096d [GB.XML.HTML]
* NEW: Make gb.xml.html compile against gb.xml.


git-svn-id: svn://localhost/gambas/trunk@4713 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-04 12:14:32 +00:00
Adrien Prokopowicz
d3cdbcfdde [GB.XML.XSLT]
* BUG : Solved a 'undefined symbol' error.

git-svn-id: svn://localhost/gambas/trunk@4712 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-03 11:26:36 +00:00
Adrien Prokopowicz
fc59f111f2 [GB.XML.HTML]
BUG : the output parser now takes into account HTML tags that must be self-closed (<br />, <meta />, <base />, <link /> ...).

git-svn-id: svn://localhost/gambas/trunk@4709 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-02 14:08:31 +00:00
Adrien Prokopowicz
d76e97be7d [GB.XML.HTML]
* BUG : XmlElement inherited methods and properties now works correctly.

git-svn-id: svn://localhost/gambas/trunk@4699 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-30 14:01:03 +00:00
Adrien Prokopowicz
d9b20c0948 [GB.XML]
* BUG : XmlDocument.Content (and similar) now works correctly.

git-svn-id: svn://localhost/gambas/trunk@4697 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-30 11:12:34 +00:00
Adrien Prokopowicz
5241ca29f0 [GB.XML]
* NEW : Two consecutives whitespaces (spaces, line-breaks ans tabulations) are now ignored.
* OPT : Parser now proceeds faster, and so parsing raw text is very faster.
* OPT : For input text, does not uses std::string anymore.
* OPT : For object instanciation, does not uses GB.FindClass() anymore (keeps results at component initialization).

git-svn-id: svn://localhost/gambas/trunk@4692 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-29 23:51:39 +00:00
Adrien Prokopowicz
a976fc3266 [GB.XML]
* BUG : Solved a few bugs in UTF8 characters management.

git-svn-id: svn://localhost/gambas/trunk@4691 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-29 19:31:18 +00:00
Adrien Prokopowicz
c23b8fab9f [GB.XML]
* OPT : Optimized memory management when converting input UTF-8 strings. The parser (i.e. Open(), FromString(), FromText() and similar methods) is now 15 times faster than before !

git-svn-id: svn://localhost/gambas/trunk@4690 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-29 16:46:18 +00:00
Adrien Prokopowicz
830375e4db [GB.XML.HTML]
* BUG : Using an HtmlDocument raised a segfault.

git-svn-id: svn://localhost/gambas/trunk@4680 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-25 23:53:21 +00:00
Adrien Prokopowicz
5c50f4c707 [GB.XML]
* NEW : Added the FromString() method to XmlReader.

git-svn-id: svn://localhost/gambas/trunk@4673 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-25 10:45:25 +00:00
Adrien Prokopowicz
647999ccdb [GB.XML]
* BUG : solved a segmentation fault when releasing a reader.

[GB.XML.XSLT]
* NEW : when output document is invalid, shows the error message in the standard error output.

git-svn-id: svn://localhost/gambas/trunk@4672 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-25 10:29:06 +00:00
Adrien Prokopowicz
89b4b18916 [GB.XML]
* NEW : Added a new property "State" to XmlExplorer and XmlReader, that allows to know the reader state, without knowing Read() return value.
* NEW : When enumerating XmlReader.Node.Attributes, XmlReader.Node represents the current attribute.
* NEW : Added an new method Open() that loads an HtmlDocument from a file and defines it as the document to read.
* NEW : The Attributes property has now moved from XmlElement to XmlNode. XmlNode.Attributes returns Null if the node isn't an element.
* NEW : Then enumeration of XmlNode.Attributes now returns an .XmlElementAttribute instead of a string.
* NEW : The XmlNode.Attribute constant is not obsolete anymore.
* NEW : Two consecutives whitespaces are now ignored (only one is preserved).
* NEW : When parsing a file, line-breaks and tabulations are replaced by spaces.
* BUG : XmlExplorer flags are now correctly initialized.
* BUG : Added an Eof property on XmlExplorer, that was missing.
* BUG : Calling XmlExplorer.Read() after Eof just returns XmlReaderNodeType.Eof, not more.
* BUG : Calling XmlNode.Next() when the node hasn't got any brother after him doesn't crash anymore, it just returns Null.
* BUG : Calling XmlElement.NextSibling() when the node hasn't got any element brother after him doesn't crash anymore, it just returns Null.
* BUG : By default, XmlReader correctly stops when reading the end of an element.
* BUG : XmlExplorer now correctly initializes and releases itself.
* BUG : XmlExplorer now correctly supports its read flags.
* OPT : Solved a memory leak when releasing a XmlReader.
* OPT : When setting text content to a XmlNode, the string is not duplicated anymore.
* OPT : When testing if characters are whitespaces or names characters while parsing texts, puts the temporary variable into registers instead of memory.

git-svn-id: svn://localhost/gambas/trunk@4669 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-24 23:47:14 +00:00
Adrien Prokopowicz
f897d771a6 [GB.XML]
* BUG: XSLT.Transform() does not crash anymore if the resulting document is empty.

git-svn-id: svn://localhost/gambas/trunk@4659 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-22 22:29:42 +00:00
Adrien Prokopowicz
828599ce9e [GB.XML]
* BUG: the parser now supports white spaces (http://www.w3.org/TR/REC-xml/#NT-S

git-svn-id: svn://localhost/gambas/trunk@4657 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-22 18:51:24 +00:00
Adrien Prokopowicz
d2a24bbec0 [GB.XML]
* BUG: XmlReader and XmlWriter can now correctly open files with relative paths.

git-svn-id: svn://localhost/gambas/trunk@4656 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-22 16:06:10 +00:00
Adrien Prokopowicz
5e582b1c6e [GB.XML]
* BUG: XmlReader can now correctly open files

git-svn-id: svn://localhost/gambas/trunk@4655 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-22 10:37:40 +00:00
Adrien Prokopowicz
2cbff79d05 [GB.XML]
* BUG: the parser now correctly supports UTF-8
* BUG: the parser now allows all special characters in tag names and attribute names, including the UTF-8 ones, as defined in http://www.w3.org/TR/REC-xml/#NT-NameChar

git-svn-id: svn://localhost/gambas/trunk@4654 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-22 02:51:53 +00:00
Adrien Prokopowicz
bda1b7d29d [GB.XML]
* BUG: removes not useful C++ flags.

git-svn-id: svn://localhost/gambas/trunk@4653 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-21 22:32:11 +00:00
Adrien Prokopowicz
9cf1f269a6 [GB.XML]
* BUG: The '_' special char is now supported in tag names and attribute names.
* BUG: Problems with line count when displaying errors are now solved.
* BUG: Local projects configuration files have been removed.

git-svn-id: svn://localhost/gambas/trunk@4652 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-21 21:46:17 +00:00
Benoît Minisini
4a32b1ed51 [WIKI CGI SCRIPT]
* NEW: Add "@since" special keyword.

[GB.FORM]
* BUG: GridView.SelectAll() now works correctly.


git-svn-id: svn://localhost/gambas/trunk@4650 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-21 13:44:35 +00:00