Commit graph

2762 commits

Author SHA1 Message Date
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
Benoît Minisini
f89e7ab223 [DEVELOPMENT ENVIRONMENT]
* BUG: Really fix project tree inheritance management.


git-svn-id: svn://localhost/gambas/trunk@4649 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-21 13:40:31 +00:00
Benoît Minisini
56bd8f86d6 [GB.LIBXML]
* NEW: Keep gb.libxml only, for compatibility reasons, as an equivalent of 
  gb.xml based on libxml.


git-svn-id: svn://localhost/gambas/trunk@4648 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-21 00:52:10 +00:00
Benoît Minisini
eae222f775 [GB.LIBXML]
* NEW: Remove gb.libxml.rpc component. It is unneeded.


git-svn-id: svn://localhost/gambas/trunk@4647 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-21 00:50:24 +00:00
Benoît Minisini
3d4f507cc9 [GB.LIBXML]
* NEW: Remove gb.libxml.xslt component. It is unneeded.


git-svn-id: svn://localhost/gambas/trunk@4646 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-21 00:49:41 +00:00
Benoît Minisini
2e1fedb669 [CONFIGURATION]
* NEW: Support for new gb.xml component family.

[DEVELOPMENT ENVIRONMENT]
* NEW: Support for new gb.xml component family.


git-svn-id: svn://localhost/gambas/trunk@4645 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-21 00:45:18 +00:00
Adrien Prokopowicz
bcc54489c1 [GB.XML]
* NEW: New XML manipulation component

git-svn-id: svn://localhost/gambas/trunk@4644 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-20 22:57:18 +00:00
Tobias Boege
07e789c365 [GB.NCURSES]
* NEW: Added Color static class
* NEW: Added color support to Window class
* NEW: Window class now auto-creates a full-screen window
* NEW: Added Screen class for future use
* NEW: Moved symbols from NCurses to Screen where they belong now
* NEW: Key class supports array accessors as other Key classes do
* OPT: Drawing ASCII border if no alternate charset is supported
* BUG: Window.Print handles multiple lines correctly now
* BUG: Fixed Border problems with full-screen windows
* BUG: Fixed exchanged x,y parameters in resize internal function
* BUG: Fixed cursor mislead in internal function to copy window contents



git-svn-id: svn://localhost/gambas/trunk@4643 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-20 20:40:56 +00:00
Benoît Minisini
2575107f89 [CONFIGURATION]
* NEW: Update version to 3.1.90.


git-svn-id: svn://localhost/gambas/trunk@4642 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-20 20:17:02 +00:00
Benoît Minisini
a771972a42 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix a possible crash when refreshing project tree inheritance.

[GB.LIBXML]
* BUG: Fix component configuration.

[GB.LIBXML.XSLT]
* BUG: Fix component configuration.


git-svn-id: svn://localhost/gambas/trunk@4641 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-20 01:28:05 +00:00
Benoît Minisini
de083e583d [GB.LIBXML]
* NEW: Rename the gb.xml component as gb.libxml.

[GB.LIBXML.XSLT]
* NEW: Rename the gb.xml.xslt component as gb.libxml.xslt

[GB.LIBXML.RPC]
* NEW: Rename the gb.xml.rpc component as gb.libxml.rpc


git-svn-id: svn://localhost/gambas/trunk@4640 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-20 01:01:48 +00:00
Benoît Minisini
d04b80c7f5 [GB.NCURSES]
* NEW: Start implementing a Screen static class that is like a Window 
  representing the full screen.


git-svn-id: svn://localhost/gambas/trunk@4636 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-15 23:47:38 +00:00
Benoît Minisini
1df0dc784d [DEVELOPMENT ENVIRONMENT]
* BUG: Fix use of gnome-terminal as output window.


git-svn-id: svn://localhost/gambas/trunk@4631 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-15 14:55:17 +00:00
Benoît Minisini
61da39d1d8 [DEVELOPMENT ENVIRONMENT]
* BUG: Module and class creation is possible again.


git-svn-id: svn://localhost/gambas/trunk@4630 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-15 14:44:57 +00:00
Benoît Minisini
360f0bab3f [INTERPRETER]
* BUG: Correctly raise errors when running an external process fails.


git-svn-id: svn://localhost/gambas/trunk@4628 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-14 23:35:33 +00:00
Tobias Boege
e770acc969 [GB.NCURSES]
* NEW: Added Key static class containing key constants
* NEW: Buffered property in Window class to allow buffered output
* NEW: Refresh method in Window class to produce output if Buffered property
  was set
* NEW: Flush method in Window class to clear the input queue
* NEW: Ask method in Window class to prompt the user for specific keys
* NEW: PrintCenter method in Window class to print text in the centre of the
  screen
* NEW: Window array accessors now used to change character attributes
* OPT: Standard input is watched only once
* BUG: Inserted missing return statement when reading Window.Border



git-svn-id: svn://localhost/gambas/trunk@4627 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-14 19:42:04 +00:00
Benoît Minisini
1464b07a0c [DEVELOPMENT ENVIRONMENT]
* NEW: Add gb.ncurses to the component list.
* BUG: Prevent Qt from crashing when cancelling a file rename, by not
  reentering the event loop with WAIT.
* BUG: Do not try to refresh a deleted directory in the project tree.

[GB.FORM]
* NEW: DateChooser got an array accessor that returns a virtual object from
  a date. This virtual object allows to define the foreground color,
  background color and the font of any date.

[GB.QT4]
* BUG: Fix some possible use of deleted controls in event management.

[GB.QT4.EXT]
* BUG: Fix some use of uninitialized variables in Editor.


git-svn-id: svn://localhost/gambas/trunk@4624 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-14 10:20:39 +00:00
Benoît Minisini
2e7c12703f [INTERPRETER]
* NEW: Call the error hook before printing the error message on the 
  standard error output.


git-svn-id: svn://localhost/gambas/trunk@4623 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-13 22:11:51 +00:00
Benoît Minisini
643d230193 [GB.NCURSES]
* BUG: Do not call refresh routines when endwin() has already been called.
* NEW: Add an error hook that calls endwin() so that the terminal is reset
  and the error message is visible.


git-svn-id: svn://localhost/gambas/trunk@4622 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-13 22:11:24 +00:00
Tobias Boege
572d7aa9e4 [GB.NCURSES]
* NEW: Created gb.ncurses component
* NEW: Added NCurses static class
* NEW: Added Window class



git-svn-id: svn://localhost/gambas/trunk@4621 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-13 15:16:23 +00:00
Benoît Minisini
a04d1a9113 [GB.FORM.MDI]
* BUG: ToolBar: Fix separators automatic hiding.


git-svn-id: svn://localhost/gambas/trunk@4620 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-13 12:56:39 +00:00