Commit graph

2782 commits

Author SHA1 Message Date
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
Benoît Minisini
5e35089241 [DEVELOPMENT ENVIRONMENT]
* BUG: Making executable works again.


git-svn-id: svn://localhost/gambas/trunk@4698 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-30 11:33:15 +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
Benoît Minisini
513015d055 [GB.MEDIA]
* BUG: Several fixes in message management, state management.
* BUG: MediaControl.Type works as expected.
* BUG: Don't query in Position and Duration properties if an error message
  has been received.


git-svn-id: svn://localhost/gambas/trunk@4696 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-30 10:46:36 +00:00
Benoît Minisini
c2eff61c72 [GB.MEDIA]
* NEW: Update component and commit source files.


git-svn-id: svn://localhost/gambas/trunk@4695 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-30 09:48:38 +00:00
Benoît Minisini
9a89d4c65b [GB.FORM]
* BUG: The last column of a GridView with AutoResize set is not frozen 
  anymore when the number of columns grows.


git-svn-id: svn://localhost/gambas/trunk@4694 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-30 00:33:13 +00:00
Benoît Minisini
a6e9f61ee1 [CONFIGURATION]
* NEW: Update *.component files to the new format.
* BUG: Fix component TEMPLATE directory.

[EXAMPLES]
* NEW: PhotoTouch: Display the browsed directory path.

[INTERPRETER]
* NEW: Change the 'main' hook syntax. Add a macro to call the previous 
  'main' hook, so that several hooks can be declared.

[GB.MEDIA]
* NEW: New multimedia component based on GStreamer.

[GB.GTK]
* BUG: Fix timer management so that it is compatible with the GB.Every()
  interpreter API.
* NEW: Allows multiple 'main' hooks.

[GB.QT4]
* NEW: Allows multiple 'main' hooks.


git-svn-id: svn://localhost/gambas/trunk@4693 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-30 00:04:51 +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
Benoît Minisini
9a4019ba1e [INTERPRETER]
* BUG: The byte position to utf-8 position caching routine now works in all 
  cases.


git-svn-id: svn://localhost/gambas/trunk@4689 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-29 00:24:14 +00:00
Benoît Minisini
8fc3cb2d90 [INTERPRETER]
* BUG: Fix precision in both string to Float and Float to string 
  conversions.


git-svn-id: svn://localhost/gambas/trunk@4688 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-28 15:08:24 +00:00
Benoît Minisini
b8ab46d135 [DEVELOPMENT ENVIRONMENT]
* NEW: Add a "project type" option in the project properties dialog. It 
  makes the difference between a normal project, a library project, and a
  component project.
* NEW: The packager takes the project type into account. A library and a
  component do not install a *.desktop file, has no icon and has no menu 
  entry. But a library has the same package name than a normal project.


git-svn-id: svn://localhost/gambas/trunk@4687 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-28 13:09:21 +00:00
Benoît Minisini
f3645e57f7 [INTERPRETER]
* BUG: Fix string to Float parser again.


git-svn-id: svn://localhost/gambas/trunk@4686 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-28 02:53:51 +00:00
Benoît Minisini
3521ec2b25 [INTERPRETER]
* BUG: Ignore non-significant decimal digits when converting a String to a 
  Float. In other words, now 2.0 = 2.


git-svn-id: svn://localhost/gambas/trunk@4685 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-28 02:31:48 +00:00
Benoît Minisini
6333ee7a1f [EXAMPLES]
* NEW: Some little fixes in PhotoTouch example.


git-svn-id: svn://localhost/gambas/trunk@4684 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-27 17:11:18 +00:00
Benoît Minisini
2ac8f35356 [EXAMPLES]
* NEW: Some fixes and new keyboard shortcuts in the PhotoTouch example.


git-svn-id: svn://localhost/gambas/trunk@4683 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-27 12:56:47 +00:00
Benoît Minisini
ff16e33c73 [DEVELOPMENT ENVIRONMENT]
* BUG: When creating dependencies on libraries, the packager now takes into 
  account if the library package name is prefixed with the vendor name.
* BUG: Now always use the release version number in the package name, 
  otherwise the Debian/Ubuntu packager cannot compare versions reliably.
* BUG: Fix XML component names.


git-svn-id: svn://localhost/gambas/trunk@4682 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-27 02:56:41 +00:00
Benoît Minisini
1789fd1045 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix dependencies on libraries in the packager.


git-svn-id: svn://localhost/gambas/trunk@4681 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-27 02:40:27 +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
Benoît Minisini
fe80c39a69 [INTERPRETER]
* BUG: Remove the use and the definition of long double mathematic 
  functions. They are not used anymore.


git-svn-id: svn://localhost/gambas/trunk@4679 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-25 21:12:03 +00:00
Benoît Minisini
543e3aa65f [GB.QT4]
* BUG: Fix Background property of ListBox,ListView,TreeView and ColumnView
  controls.


git-svn-id: svn://localhost/gambas/trunk@4678 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-25 19:19:35 +00:00
Benoît Minisini
88e37a5cff [INTERPRETER]
* BUG: gb.MediumTime does not try to use AM/PM if AM/PM is not supported 
  by the current language.


git-svn-id: svn://localhost/gambas/trunk@4677 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-25 18:47:49 +00:00
Benoît Minisini
425137546d [EXAMPLES]
* NEW: PhotoTouch got a "save all" feature and some bug fixes.


git-svn-id: svn://localhost/gambas/trunk@4676 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-25 15:46:48 +00:00
Benoît Minisini
c588ee58a2 [EXAMPLES]
* BUG: PhotoTouch does not crash anymore when the browsed directory has no 
  pictures.
* NEW: PhotoTouch now can save the modified pictures to their original 
  emplacement. A backup is made.
* NEW: PhotoTouch has a temporary undo stack now.



git-svn-id: svn://localhost/gambas/trunk@4675 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-25 14:49:09 +00:00
Benoît Minisini
8c4a4059ce [GB.QT4]
* BUG: Fix Foreground property for TreeView, ListView, ColumnView and 
  ListBox controls.


git-svn-id: svn://localhost/gambas/trunk@4674 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-25 11:20:55 +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
Benoît Minisini
0b09db99b4 [GB.FORM]
* NEW: GridView row and column width now can be set to zero so that they 
  are completely hidden.
* BUG: The GridView headers now use the Button foreground color so that
  they are visible with a dark color theme.


git-svn-id: svn://localhost/gambas/trunk@4671 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-25 09:42:42 +00:00
Benoît Minisini
3f1bb044cb [EXAMPLES]
* NEW: PhotoTouch example becomes better.

[GB.DB.FORM]
* BUG: Fix use of old GridView property in DataComboView.

[GB.FORM]
* NEW: IconView.Key is now writable, so that we can define the current 
  item.


git-svn-id: svn://localhost/gambas/trunk@4670 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-25 08:39:35 +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
Benoît Minisini
53fb481eee [EXAMPLES]
* NEW: Add a browse mode to the PhotoTouch example.


git-svn-id: svn://localhost/gambas/trunk@4668 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-24 14:04:23 +00:00
Benoît Minisini
1189c52ae1 [EXAMPLES]
* NEW: Fix and enhance PhotoTouch example.


git-svn-id: svn://localhost/gambas/trunk@4667 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-24 12:33:52 +00:00
Benoît Minisini
e0f151795c [DEVELOPMENT ENVIRONMENT]
* BUG: Do not fail when a library is not found.
* BUG: The packager now generates correct dependencies on libraries whose 
  major and minor version are both zero.


git-svn-id: svn://localhost/gambas/trunk@4666 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-23 21:30:09 +00:00
Benoît Minisini
75f7ff9390 [WIKI CGI SCRIPT]
* BUG: Handle public variables like properties.

[EXAMPLES]
* NEW: A new PhotoTouch example I made so that my father can edit its photo
  with a simple software.


git-svn-id: svn://localhost/gambas/trunk@4665 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-23 21:13:33 +00:00
Benoît Minisini
79c16878be [INTERPRETER]
* NEW: Do not raise an error when a file path cannot be converted to the 
  local charset. Just do not make the conversion.
* BUG: Freeing any Stream object now automatically closes it.
* BUG: Stream.ReadLine() with no second argument does not crash anymore.


git-svn-id: svn://localhost/gambas/trunk@4664 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-23 16:02:35 +00:00
Benoît Minisini
d75c29e41b [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly show error tooltip in splitted editors.


git-svn-id: svn://localhost/gambas/trunk@4663 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-23 15:28:55 +00:00
Benoît Minisini
45cd3616fe [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly import translations whose original string begins or ends 
  with spaces.


git-svn-id: svn://localhost/gambas/trunk@4662 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-23 15:11:13 +00:00
Benoît Minisini
13c81eedf5 [COMPILER]
* BUG: Display the right line number if there was a parser error inside a 
  form class file.


git-svn-id: svn://localhost/gambas/trunk@4661 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-23 14:52:51 +00:00
Fabien Bodard
01939f5596 [GB.REPORT]
* OPT: Remove a not used function


git-svn-id: svn://localhost/gambas/trunk@4660 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-23 06:49:36 +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
Benoît Minisini
5839e98745 [GB.IMAGE]
* NEW: Image.Opacity() is a new method that changes the opacity of an 
  image.


git-svn-id: svn://localhost/gambas/trunk@4658 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-22 21:27:59 +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
ce4d8e6ebc [GB.QT4]
* BUG: Fix first drawing of a cached DrawingArea.


git-svn-id: svn://localhost/gambas/trunk@4651 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-21 14:04:23 +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