Commit graph

3276 commits

Author SHA1 Message Date
Tobias Boege
c2cc6479e0 [GB.ADT]
* BUG: Remove left-overs from local build - Sorry.



git-svn-id: svn://localhost/gambas/trunk@5056 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-18 21:52:12 +00:00
Tobias Boege
f81c83c4f2 [CONFIGURATION]
* NEW: Move gb.adt to main/lib/adt. It doesn't have extra dependencies



git-svn-id: svn://localhost/gambas/trunk@5055 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-18 21:46:25 +00:00
Benoît Minisini
0ecfa8f671 [GB.GTK]
* BUG: Fix a recursion problem is color management when a control is 
  inserted into its container.


git-svn-id: svn://localhost/gambas/trunk@5054 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-18 18:06:22 +00:00
Benoît Minisini
35368a3648 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix profiling of Eval() calls.

[INTERPRETER]
* NEW: GB.ReturnBorrow() is a new API to temporarily borrow the return 
  value.
* NEW: GB.ReleaseBorrow() is a new API to release the return value borrowed
  by the previous function, without releasing it.

[GB.DEBUG]
* BUG: Fix profiling of Eval() calls.

[GB.V4L]
* BUG: Fix a compilation warning.


git-svn-id: svn://localhost/gambas/trunk@5053 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-18 13:06:58 +00:00
Tobias Boege
d94521db4c [CONFIGURATION]
* NEW: Add gb.adt component

[GB.ADT]
* NEW: gb.adt is a component to provide abstract datatypes.
* NEW: Add List and ListRoot classes for circular double-linked lists which
  can be embedded into other classes or used standalone.
* NEW: Add Deque class as a base for new Stack, Queue and PrioQueue classes
  on top of linked lists (thus different from related Variant[] semantics).
* NEW: Add Circular class for ring buffers.



git-svn-id: svn://localhost/gambas/trunk@5052 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-18 11:07:14 +00:00
Benoît Minisini
0388831b8c [DEVELOPMENT ENVIRONMENT]
* BUG: Fix a possible crash in form editor arrangement icons managemnt.

[GB.GTK]
* NEW: DrawingArea.UseTablet has been renamed as DrawingArea.Tablet.
* NEW: Pointer.ScreenX and Pointer.ScreenY are two new properties that 
  replace Pointer.X and Pointer.Y. Pointer.X and Pointer.Y are yet there, 
  but now they return the pointer position relative to the control 
  receiving the event.
* BUG: Try to activate all XInput devices when the DrawingArea.Tablet
  property is set.

[GB.QT4]
* NEW: DrawingArea.UseTablet has been renamed as DrawingArea.Tablet.
* NEW: Pointer.ScreenX and Pointer.ScreenY are two new properties that 
  replace Pointer.X and Pointer.Y. Pointer.X and Pointer.Y are yet there, 
  but now they return the pointer position relative to the control 
  receiving the event.


git-svn-id: svn://localhost/gambas/trunk@5051 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-17 15:53:52 +00:00
Benoît Minisini
52929cd0e6 [GB.FORM]
* NEW: ScrollArea, GridView and IconView got an automatic inner shadow 
  where the view area can be scrolled.

[GB.FORM.MDI]
* NEW: Some little redesign of the toolbar configuration dialog.


git-svn-id: svn://localhost/gambas/trunk@5050 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-17 00:55:31 +00:00
Benoît Minisini
c3e481cd39 [GB.IMAGE]
* NEW: Image.RotateLeft() and Image.RotateRight() are two new methods for
  rotating a image by 90° step.


git-svn-id: svn://localhost/gambas/trunk@5049 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-16 20:33:21 +00:00
Benoît Minisini
40c119a2c2 [GB.QT4]
* BUG: Fix tablet event management.


git-svn-id: svn://localhost/gambas/trunk@5048 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-16 16:37:36 +00:00
Benoît Minisini
e9edef72fd [CONFIGURATION]
* NEW: Enable silent compilation.

[DEVELOPMENT ENVIRONMENT]
* NEW: When opening the startup class for the first time, go directly to
  the Main function.
* NEW: Support for READ and LINE INPUT instructions in the automatic local 
  variable declaration.

[GB.FORM]
* NEW: TabPanel can get focus now, and handle keyboard shortcuts.

[GB.QT4]
* BUG: Get rid of an old compilation warning.


git-svn-id: svn://localhost/gambas/trunk@5047 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-16 16:37:03 +00:00
Benoît Minisini
c8f0242632 [DEVELOPMENT ENVIRONMENT]
* BUG: No margin for the output console.
* NEW: Better support of subroutines in automatic variable declaration.


git-svn-id: svn://localhost/gambas/trunk@5046 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-15 22:17:22 +00:00
Benoît Minisini
45af334364 [DEVELOPMENT ENVIRONMENT]
* NEW: Support for bookmarks in all text editors.

[GB.QT4.EXT]
* NEW: Editor: Always display a margin wide enough to display breakpoint or 
  bookmark signs.


git-svn-id: svn://localhost/gambas/trunk@5045 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-15 21:26:45 +00:00
Benoît Minisini
edf8b8f34a [DEVELOPMENT ENVIRONMENT]
* BUG: Do not display a thumbnail for images too large or too high.
* NEW: Implement bookmarks for code editor only.
* NEW: Automatic local variable declaration is disabled by default.

[INTERPRETER]
* NEW: GB.Deprecated() is a new interpreter API that displays a warning
  message for deprecated functions at runtime. When the project is 
  debugged, an error is raised instead.

[GB.FORM]
* NEW: Deprecate Stock.List which has been replaced by Stock.Icons.

[GB.QT4]
* BUG: Fix the case of Action.Tooltip property name.

[GB.QT4.EXT]
* NEW: Editor: Support for bookmarks.
* OPT: Editor: Do not compute the character width table each time the font
  changes. Use a cache instead.
* NEW: Editor.BookmarkPicture is a new property for defining the picture 
  used for displaying bookmarks.
* NEW: Editor.FindNextBreakpoint() has been deprecated and replaced by the
  Editor.Breakpoints property, that returns an integer array of all lines
  having a breakpoint.
* NEW: Editor.Bookmars is a new property that returns an integer array of 
  all lines having a bookmark.
* NEW: Editor.CurrentLine is a new property for defining the current 
  executed line. It replaces Editor[].Current.
* NEW: Editor[].Bookmark is a new boolean property that defines if a 
  specific line has a bookmark.


git-svn-id: svn://localhost/gambas/trunk@5044 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-15 17:02:22 +00:00
Benoît Minisini
62e84f1f3a [DEVELOPMENT ENVIRONMENT]
* NEW: Automatic local variable declaration now supports OPEN, SHELL, EXEC,
  RAISE, PIPE, MEMORY and LOCK instructions; NEW operator; FOR ... TO 
  loops; FOR EACH ... IN loops; [ ... ] array and collection constructor.


git-svn-id: svn://localhost/gambas/trunk@5043 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-14 23:49:55 +00:00
Benoît Minisini
2962c8323b [DEVELOPMENT ENVIRONMENT]
* NEW: Initial implementation of automatic local variable declaration.


git-svn-id: svn://localhost/gambas/trunk@5042 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-14 17:56:24 +00:00
Benoît Minisini
2b0c757410 [GB.COMPLEX]
* BUG: Correctly implement arithmetic operators.


git-svn-id: svn://localhost/gambas/trunk@5041 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-14 14:11:59 +00:00
Benoît Minisini
8dd0b1dd93 [INTERPRETER]
* BUG: The GB.GetFunction() API now correctly returns static functions.


git-svn-id: svn://localhost/gambas/trunk@5040 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-14 10:07:29 +00:00
Benoît Minisini
684e7bbfb5 [GB.SIGNAL]
* NEW: Rewrote the component to use the signal management routines included 
  in the interpreter.


git-svn-id: svn://localhost/gambas/trunk@5039 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-14 09:53:03 +00:00
Adrien Prokopowicz
fcf0e8bf9b [GB.XML]
* BUG: Fix prefix management on elements.

git-svn-id: svn://localhost/gambas/trunk@5038 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-13 11:39:22 +00:00
Adrien Prokopowicz
02b50b1267 [GB.XML]
* NEW: Adds a Serialize() static method in XmlNode that serializes the given text.
* BUG: Correctly handle prefix when parsing a document.
* BUG: XmlWriter now correctly serializes the text and attribute values.
* BUG: The XmlDocument constructor now correctly raises an error message instead of crashing with signal #6.

git-svn-id: svn://localhost/gambas/trunk@5037 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-12 21:58:13 +00:00
Benoît Minisini
a601dc8028 [DEVELOPMENT ENVIRONMENT]
* BUG: Using drag & drop on the project treeview now correctly initializes 
  folder contents.
* NEW: Make the packager wizard dialog smaller for small screens.


git-svn-id: svn://localhost/gambas/trunk@5036 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-12 15:34:12 +00:00
Adrien Prokopowicz
a4a9decae9 [GB.XML]
* BUG: Try to fix a compilation error on some systems.

git-svn-id: svn://localhost/gambas/trunk@5035 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-12 15:25:27 +00:00
Adrien Prokopowicz
ad0519f583 [GB.XML]
* BUG: Fix the local, qualified and prefix naming, as mentioned in the W3C specification.
* BUG: Fix the XmlReader.Depth property management when enumerating the attributes of a node.

git-svn-id: svn://localhost/gambas/trunk@5034 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-12 12:38:39 +00:00
François Gallo
e322f8dff4 [CONFIGURATION]
* NEW: Add a search path for OS X. 


git-svn-id: svn://localhost/gambas/trunk@5033 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-12 11:03:33 +00:00
Adrien Prokopowicz
99bd6d0ff5 [GB.XML]
* BUG: Fix a segmentation fault in XmlReader freeing.

git-svn-id: svn://localhost/gambas/trunk@5032 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-11 21:53:44 +00:00
Benoît Minisini
147983a533 [GB.FORM]
* NEW: Replace GridView.Rows.GetSelected() method by GridView.Rows.
  Selection property.


git-svn-id: svn://localhost/gambas/trunk@5031 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-11 16:26:34 +00:00
Benoît Minisini
361f89dd57 [DEVELOPMENT ENVIRONMENT]
* BUG: Creating a directory in the project treeview should not segfault 
  anymore.
* BUG: Moving a source file now correctly refreshes the project treeview.
* BUG: Project treeview popup menu now is correctly filled on directories.

[GB.QT4]
* BUG: TreeView does not raise keyboard events anymore during renaming 
  mode.


git-svn-id: svn://localhost/gambas/trunk@5030 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-11 15:08:23 +00:00
Benoît Minisini
94a9df9c75 [GB.NET]
* NEW: SerialPort: Does the polling differently when detecting signal 
  changes.
* NEW: SerialPort.Open() method now takes an optional argument to define 
  the polling delay in milliseconds. It is 50ms by default.


git-svn-id: svn://localhost/gambas/trunk@5029 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-11 14:52:01 +00:00
Fabien Bodard
6125fa92ea [GB.FORM]
* NEW: New function in GridView Rows, GetSelected, that return an integer array with the selected rows.




git-svn-id: svn://localhost/gambas/trunk@5028 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-11 14:30:43 +00:00
Benoît Minisini
c836cf8c2c [GB.QT4]
* BUG: Add a font setting routine in the gb.qt interface.

[GB.QT4.EXT]
* BUG: Fix the TextEdit.Format.Font property.


git-svn-id: svn://localhost/gambas/trunk@5027 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-10 23:57:38 +00:00
Benoît Minisini
11e10763c8 [GB.GTK]
* BUG: Correctly check GTK+ version.
* BUG: gdk_device_get_source() does not exist before GTK+ 2.22.


git-svn-id: svn://localhost/gambas/trunk@5026 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-10 14:28:25 +00:00
Adrien Prokopowicz
2df69cad2d [GB.XML]
* BUG: Fix some memory errors and leaks.

git-svn-id: svn://localhost/gambas/trunk@5025 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-10 09:53:13 +00:00
Benoît Minisini
de959789e0 [GB.FORM.MDI]
* NEW: Little design fix in the shortcut configuration dialog.

[GB.GTK]
* NEW: Management of tablet events. At the moment only the DrawingArea 
  control can catch them if its UseTablet property is TRUE. In that case,
  standard mouse events are raised, and the properties of the tablet event 
  are stored in the new Pointer class. All that is not definitive.

[GB.QT4]
* NEW: Management of tablet events. At the moment only the DrawingArea 
  control can catch them if its UseTablet property is TRUE. In that case,
  standard mouse events are raised, and the properties of the tablet event 
  are stored in the new Pointer class. All that is not definitive.


git-svn-id: svn://localhost/gambas/trunk@5024 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-09 23:39:29 +00:00
Benoît Minisini
5285c3e83b [GB.QT4.EXT]
* BUG: Fix highlighting of saved lines.


git-svn-id: svn://localhost/gambas/trunk@5023 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-09 14:29:26 +00:00
Benoît Minisini
b3810b7557 [DEVELOPMENT ENVIRONMENT]
* NEW: Spanish translation updated.
* NEW: An option for hiding editor folding symbols.


git-svn-id: svn://localhost/gambas/trunk@5022 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-09 10:33:31 +00:00
Benoît Minisini
f1cacc6caa [GB.QT4.EXT]
* NEW: Editor: Highlight saved modified lines and unsaved modified lines 
  differently.


git-svn-id: svn://localhost/gambas/trunk@5021 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-09 09:04:41 +00:00
Benoît Minisini
fc6c3a22bd [INTERPRETER]
* BUG: The Gosub stack pointer is now correctly reset when a error has been 
  intercepted by the Catch instruction.


git-svn-id: svn://localhost/gambas/trunk@5020 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-09 01:33:34 +00:00
Benoît Minisini
143ce94b6a [DEVELOPMENT ENVIRONMENT]
* BUG: If a library or a component exports a form, then the special 
  properties ('_IsForm' and '_HiddenControls') are not taken into account.


git-svn-id: svn://localhost/gambas/trunk@5019 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-08 19:36:15 +00:00
Benoît Minisini
e46e481908 [GB.GTK]
* BUG: Window.ScreenY does not take the menu bar into account anymore, as 
  in gb.qt4.


git-svn-id: svn://localhost/gambas/trunk@5018 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-08 18:39:46 +00:00
Benoît Minisini
d1eef06cf8 [DEVELOPMENT ENVIRONMENT]
* NEW: Translate all parts of error messages.

[INTERPRETER]
* NEW: Add an explicit error message when trying to override a class that 
  has already been used as a parent for another class.


git-svn-id: svn://localhost/gambas/trunk@5017 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-07 20:21:02 +00:00
Benoît Minisini
f457c9608c [CONFIGURATION]
* BUG: Fix the component template script.

[GB.FORM]
* BUG: SidePanel controls now behave correctly when they are put inside a 
  TabStrip.

[GB.GMP]
* NEW: Skeleton for a new component based on the GNU "big numbers" GMP 
  library.

[GB.GTK]
* NEW: TabStrip.FindIndex() is a new method that returns the index of 
  parent tab of a specific child.
* BUG: Fix Control.Raise() and Control.Lower() method when the parent is a
  TabStrip.

[GB.QT4]
* NEW: TabStrip.FindIndex() is a new method that returns the index of 
  parent tab of a specific child.

[GB.QT4.EXT]
* NEW: Editor: The current line is now visible when using a dark highlight 
  theme.


git-svn-id: svn://localhost/gambas/trunk@5016 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-07 14:04:55 +00:00
Benoît Minisini
b995e09e22 [INTERPRETER]
* BUG: Fix incorrect optimizations used by the _operator interface 
  management routines.


git-svn-id: svn://localhost/gambas/trunk@5015 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-06 22:41:05 +00:00
Benoît Minisini
aab10df306 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix insertion of predefined environment variables in the project 
  property dialog.


git-svn-id: svn://localhost/gambas/trunk@5014 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-06 21:34:51 +00:00
Benoît Minisini
a7f59c80df [GB.GTK]
* BUG: Fix TreeView, ListView and ColumnView multiple selection.


git-svn-id: svn://localhost/gambas/trunk@5013 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-06 21:26:20 +00:00
Benoît Minisini
cc0fd6cec6 [INTERPRETER]
* BUG: Comparison operators now correctly check for null objects when 
  comparing objects having the _operator interface.


git-svn-id: svn://localhost/gambas/trunk@5012 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-06 20:14:41 +00:00
Benoît Minisini
3ea09ada8a [DEVELOPMENT ENVIRONMENT]
* BUG: Creating a component package now works correctly when the component 
  project has control icons.


git-svn-id: svn://localhost/gambas/trunk@5011 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-06 19:52:07 +00:00
Adrien Prokopowicz
f01570446e [GB.XML]
* BUG: Fix the XmlReader.Node.IsEmptyElement property.

git-svn-id: svn://localhost/gambas/trunk@5010 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-06 19:04:28 +00:00
Emil Lenngren
6fcc0f81d4 [GB.JIT]
* BUG: Local variables are not forgotten anymore after a Catch.
* BUG: Ctrl variables in GoSubs are now properly released.


git-svn-id: svn://localhost/gambas/trunk@5009 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-05 17:02:49 +00:00
Emil Lenngren
37698f0452 [GB.JIT]
* BUG: Fix For Each loops.


git-svn-id: svn://localhost/gambas/trunk@5008 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-04 12:08:39 +00:00
Charlie Reinl
a234a80bfe BUG : sorry for a lazy weelmouse copy
git-svn-id: svn://localhost/gambas/trunk@5007 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-03 19:53:53 +00:00