Commit graph

1598 commits

Author SHA1 Message Date
Benoît Minisini
c6c3a38eb2 [GB.EVAL]
* BUG: Do not incorrectly use interpreter gb_error.h header file, it crashes!


git-svn-id: svn://localhost/gambas/trunk@3092 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-03 16:09:06 +00:00
Benoît Minisini
60ea7ae855 [INTERPRETER]
* BUG: Fix some crashes in error management. Maybe...
* BUG: Sorting with natural string comparison understands gb.Descent 
  correctly now.

[GB.WEB]
* BUG: CGI.Error() method should be more reliable now.


git-svn-id: svn://localhost/gambas/trunk@3091 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-03 11:00:42 +00:00
Benoît Minisini
9411b8785f [GB.QT4]
* BUG: Always activate a window 50 ms after it has been shown, to trap any
  focus stealing prevention mechanism.


git-svn-id: svn://localhost/gambas/trunk@3090 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-02 20:48:04 +00:00
Benoît Minisini
67b9603177 [GB.QT4]
* BUG: Make the component compile correctly.
* BUG: Does not crash anymore when closing a window during the _new() 
  method, or inside the Open event handler.


git-svn-id: svn://localhost/gambas/trunk@3089 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-02 20:39:28 +00:00
Benoît Minisini
68e1ec7d00 [GB.FORM]
* NEW: DateBox is a new control that can edit a date with a calendar popup.
  It aims at replacing the DatePicker, and the ValueBox with date type.
* NEW: DateChooser layout is better with small sizes.
* NEW: DateChooser raises a Cancel event when you hit the Escape key.

[GB.GTK]
* BUG: Better management of window grabs.
* NEW: Window.ShowPupup() is a new method that shows a window as a popup.
  It takes an optional X,Y screen position as arguments. If not specified, 
  the window is shown at the current cursor position.
* BUG: Now all controls catch basic events.
* BUG: Fix a crash when destroying controls.

[GB.QT4]
* NEW: Window.ShowPupup() is a new method that shows a window as a popup.
  It takes an optional X,Y screen position as arguments. If not specified, 
  the window is shown at the current cursor position.
* NEW: TrayIcon got a PopupMenu property, like the Control class. But it 
  works only if the TrayIcon observer is a Window. The property has bot
  been implemented in gb.gtk yet.


git-svn-id: svn://localhost/gambas/trunk@3088 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-02 19:36:37 +00:00
Fabien Bodard
4046ebdd50 [GB.REPORT]
* BUG: Now the list are correctly drawed on the wished page.
* OPT: the resize function of FPreview is renamed to ResizeMe




git-svn-id: svn://localhost/gambas/trunk@3087 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-01 19:36:08 +00:00
Benoît Minisini
1698496a46 [GB.GTK]
* BUG: Remove a debugging message.


git-svn-id: svn://localhost/gambas/trunk@3086 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-01 18:50:59 +00:00
Benoît Minisini
4b6b0a7a3e [DEVELOPMENT ENVIRONMENT]
* BUG: Fix the reopening of edited files after a project has been "save 
  as".


git-svn-id: svn://localhost/gambas/trunk@3085 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-01 18:50:25 +00:00
Benoît Minisini
855acf8d4d [WIKI CGI SCRIPT]
* NEW: Display the list of all undocumented symbols.

[GB.FORM]
* BUG: Fix the behaviour of automatic expanding in the DirView control.
* NEW: Hide DatePicker and MessageLabel controls. They have many problems,
  and I want to see if someone use them.

[GB.GTK]
* BUG: Popup menus now work correctly on tray icons in all cases.
* NEW: TabStrip.Closable is a new property to display little close buttons 
  beside each tab label. When this button is clicked, a Close event is 
  raised, taking the tab index as argument.

[GB.QT4]
* NEW: TabStrip.Closable is a new property to display little close buttons 
  beside each tab label. When this button is clicked, a Close event is 
  raised, taking the tab index as argument.


git-svn-id: svn://localhost/gambas/trunk@3084 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-01 00:09:06 +00:00
Benoît Minisini
2b98eb48ec [DEVELOPMENT ENVIRONMENT]
* BUG: Fix search when saving the file between two identical searches.
* NEW: Don't save the Url in the project file if it is equal to the default
  URL http://www.endoftheinternet.com

[GB.QT]
* BUG: Fix the behaviour of ComboBox when setting the List property, and 
  the order used for saving ComboBox properties in the *.form file.

[GB.GTK]
* BUG: Fix the behaviour of ComboBox when setting the List and the ReadOnly 
  property, and the order used for saving ComboBox properties in the *.form 
  file.



git-svn-id: svn://localhost/gambas/trunk@3082 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-31 00:19:15 +00:00
Benoît Minisini
433daef01e [GB.QT4]
* BUG: Make showing windows behave like in gb.gtk.
* BUG: GridView draw spanning cells correctly now.


git-svn-id: svn://localhost/gambas/trunk@3077 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-30 17:19:19 +00:00
Benoît Minisini
8871738fb6 [INTERPRETER]
* BUG: READ and WRITE now correctly handle Pointer datatype.
* BUG: Classes inheriting an array class now work correctly.

[GB.FORM]
* NEW: FileChooser and DirChooser have a new ShowButton property that shows 
  OK and Cancel buttons inside the control. Clicking on the Cancel button
  raises a new Cancel event.
* NEW: Bookmark management has been redesigned in file controls.
* NEW: MenuButton got an AutoResize property.

[GB.FORM.DIALOG]
* NEW: File dialogs now remember their geometry.

[GB.GTK]
* BUG: Fix duplicate Click event in CheckBox control.
* BUG: Correctly handle tristate Checkbox controls.


git-svn-id: svn://localhost/gambas/trunk@3076 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-29 10:19:10 +00:00
Benoît Minisini
74ff902c2a [GB.WEB]
* BUG: Do not write log message if the session is not saved.

git-svn-id: svn://localhost/gambas/trunk@3075 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-27 16:58:25 +00:00
Benoît Minisini
5bc772bd2e [GB.WEB]
* NEW: Enable session debugging messages if the file '/tmp/session.debug' 
  exists. The debugging messages are logged into the file 
  '/tmp/session.log'.
* OPT: Do not update session timestamp if the difference is less than one
  second.

git-svn-id: svn://localhost/gambas/trunk@3074 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-27 16:52:00 +00:00
Benoît Minisini
c994a602df [INTERPRETER]
* BUG: The interpreter compiles now when extern functions are disabled.


git-svn-id: svn://localhost/gambas/trunk@3072 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-26 18:10:51 +00:00
Benoît Minisini
08d3f92581 [GB.NET]
* NEW: ServerSocket.Interface is a new property to define the interface the 
  socket will listen to. It uses a Linux-specific socket option, and I'm
  not sure that it really works.


git-svn-id: svn://localhost/gambas/trunk@3071 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-26 16:18:51 +00:00
Benoît Minisini
dbf5d2237a [INTERPRETER]
* BUG: Fix the Pi() function when it takes an argument.


git-svn-id: svn://localhost/gambas/trunk@3070 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-26 00:07:47 +00:00
Benoît Minisini
9824b4bfce [DEVELOPMENT ENVIRONMENT]
* BUG: Searching spaces now works in highlighted files.
* OPT: The result of grep has been cached, so that successive searches are 
  faster.

[GB.QT4.EXT]
* NEW: The Editor[].Purge() method replacing character can be passed as an 
  argument.



git-svn-id: svn://localhost/gambas/trunk@3069 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-25 23:19:35 +00:00
Benoît Minisini
31229ff322 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix search of strings starting with a minus sign.


git-svn-id: svn://localhost/gambas/trunk@3068 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-25 13:51:53 +00:00
Laurent Carlier
003e185a54 [DEVELOPMENT ENVIRONMENT]
* NEW: Add Archlinux package support (source and binary)

Port from gambas2 code, not yet finished


git-svn-id: svn://localhost/gambas/trunk@3065 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-22 20:32:22 +00:00
Benoît Minisini
cac8474e0a [GB.QT4]
* NEW: Control.PopupMenu is a new property that allows to define the name 
  of the menu that will be automatically popped up when the user clicks on
  the control with the right mouse button, or press the menu key.
  Beware that if the Menu event handler is already defined for the control, 
  the popup menu will not open.

[GB.GTK]
* NEW: Control.PopupMenu is a new property that allows to define the name 
  of the menu that will be automatically popped up when the user clicks on
  the control with the right mouse button, or press the menu key.
  Beware that if the Menu event handler is already defined for the control, 
  the popup menu will not open.


git-svn-id: svn://localhost/gambas/trunk@3064 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-22 00:29:53 +00:00
Benoît Minisini
40263e9bd7 [INTERPRETER]
* BUG: Correctly fix the management of return value in native function 
  calls.


git-svn-id: svn://localhost/gambas/trunk@3063 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-21 11:45:28 +00:00
Benoît Minisini
90bdc49fa2 [GB.DBUS]
* BUG: As usual, forgot to add two new source files.


git-svn-id: svn://localhost/gambas/trunk@3060 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-21 09:09:40 +00:00
Benoît Minisini
7f88b776ab [INTERPRETER]
* BUG: Do not crash anymore when a native function returns one of its 
  argument.
* NEW: New interpreter API to enumerate a collection.

[GB.DBUS]
* NEW: Collection are fully supported now.
* NEW: The org.freedesktop.DBus.properties.GetAll() method has been
  implemented.
* BUG: Correctly raise an error when calling a D-Bus method fails.
* BUG: Correctly release strings returned by D-Bus functions that must be
  released.


git-svn-id: svn://localhost/gambas/trunk@3058 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-21 04:40:45 +00:00
Benoît Minisini
5826fdcf8c [DEVELOPMENT ENVIRONMENT]
* NEW: The menu editor layout has been redesigned.
* NEW: Cut, copy & paste is possible now in the menu editor.

[GB.GTK]
* BUG: Basic controls events are correctly sent again when a modal dialog 
  is displayed.
* NEW: ListBox.Border is a new property to set if the control border must 
  be displayed or not.

[GB.QT4]
* NEW: ListBox.Border is a new property to set if the control border must 
  be displayed or not.


git-svn-id: svn://localhost/gambas/trunk@3057 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-20 15:50:17 +00:00
Benoît Minisini
e8600ab89c [GB.DBUS]
* BUG: Calling DBus methods with no arguments works correctly again.


git-svn-id: svn://localhost/gambas/trunk@3049 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-19 19:54:43 +00:00
Benoît Minisini
36a562fa2e [GB.DBUS]
* BUG: The Signal event of the DBusSignal class now provides both the 
  signal name and the signal arguments.

git-svn-id: svn://localhost/gambas/trunk@3048 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-19 13:35:32 +00:00
Benoît Minisini
e509aab05f [DEVELOPMENT ENVIRONMENT]
* BUG: Fix class header parsing in automatic completion.

[INTERPRETER]
* BUG: Class[].Signature has been implemented.
* BUG: Fix native method calling when some arguments must be converted.
* NEW: Two new interpreter APIs, GB.BorrowValue() and GB.ReleaseValue(), to
  correctly manage values returned by GB.ReadValue().

[GB.DBUS]
* NEW: Support for exporting properties and methods. The GetAll() DBus 
  method has not been implemented yet, because marshalling Collection is 
  not supported yet. Sending signals is not supported yet too.
* NEW: The previous DBusObject class has been renamed as DBusProxy.
* NEW: A new DBusObject class. Each Gambas object that inherits DBusObject
  is automatically exported through DBus.
* NEW: DBusSignal is a new class to catch DBus signals by giving its 
  interface name.


git-svn-id: svn://localhost/gambas/trunk@3047 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-19 12:33:57 +00:00
Benoît Minisini
fe70d3a878 [COMPILER]
* NEW: Understand the 'CASE TO Expression' syntax.


git-svn-id: svn://localhost/gambas/trunk@3046 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-19 10:10:37 +00:00
Benoît Minisini
483530dcff [COMPILER]
* BUG: Be less tolerant with newlines in CASE expressions.


git-svn-id: svn://localhost/gambas/trunk@3045 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-19 09:53:34 +00:00
Benoît Minisini
a02e468016 [INTERPRETER]
* BUG: Array.Type property is back again.


git-svn-id: svn://localhost/gambas/trunk@3044 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-16 14:15:11 +00:00
Benoît Minisini
dd7faeb52a [CONFIGURATION]
* NEW: './reconf' now is used inside sub-directories for reconfiguring it, 
  without modifying libtool.
* NEW: To install the libtool version required by your system, use now the 
  './reconf-all' script in the top directory.


git-svn-id: svn://localhost/gambas/trunk@3043 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-16 01:23:42 +00:00
Benoît Minisini
bc35f266db [CONFIGURATION]
* NEW: Remove the ./reconf-all link.

[GB.DBUS]
* NEW: Start to handle incoming DBus message (methods calls, signals...).


git-svn-id: svn://localhost/gambas/trunk@3042 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-16 01:17:49 +00:00
Benoît Minisini
0bc1701225 [WIKI CGI SCRIPT]
* NEW: New look for version specific documentation.

[INTERPRETER]
* NEW: Assign() has been removed, and replaced by Eval() with an expression 
  beginning with the LET keyword.
* NEW: New routines to read a value stored at a memory address: BoolPtr(),
  BytePtr(), ShortPtr(), IntPtr(), LongPtr(), SinglePtr(), FloatPtr() and
  PointerPtr().

[COMPILER]
* NEW: The LET keyword can be used to write an assignment expression. Of
  course it is optional.

[GB.EVAL]
* NEW: The LET keyword can be used to evaluate an assignment.
* NEW: The Expression.Compile() method does not take any argument anymore.

git-svn-id: svn://localhost/gambas/trunk@3041 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-14 16:33:29 +00:00
Benoît Minisini
70abf8b89c [INTERPRETER]
* NEW: Conversion between Integer or Long and Pointer is possible now.
* OPT: A little optimizations in extern function management.


git-svn-id: svn://localhost/gambas/trunk@3040 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-14 11:55:32 +00:00
Benoît Minisini
2dda2135f8 [INTERPRETER]
* BUG: Make the interpreter compile correctly.
* BUG: Some fixes in callback management.


git-svn-id: svn://localhost/gambas/trunk@3039 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-14 01:57:13 +00:00
Benoît Minisini
3054690743 [CONFIGURATION]
* NEW: Print a summary of warning messages after each component 
  compilation.

[INTERPRETER]
* BUG: StrPtr() with a length argument now works correctly.
* NEW: Support for callbacks: when converting a function to a Pointer, an 
  internal closure is created with the libffi library. The pointer then can 
  be sent to any extern function as function pointer argument.
* BUG: Opening memory stream should work in all cases now.


git-svn-id: svn://localhost/gambas/trunk@3038 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-14 01:50:18 +00:00
Benoît Minisini
5d6905a13e [DEVELOPMENT ENVIRONMENT]
* NEW: The project tree popup menu now has the refresh action.

[GB.SIGNAL]
* NEW: New component to catch or ignore process signals.


git-svn-id: svn://localhost/gambas/trunk@3037 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-12 23:09:57 +00:00
Benoît Minisini
6a680716a9 [DEVELOPMENT ENVIRONMENT]
* NEW: Store package name in the .project file.
* NEW: Take libraries into account in package dependencies.
* BUG: Fix autotools packages. Components are now stored beside the 
  "Component=" entry in the .project file. The "Library=" entry is for 
  libraries!

[ARCHIVER]
* NEW: Stores the .project file into executables.


git-svn-id: svn://localhost/gambas/trunk@3036 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-11 23:13:11 +00:00
Benoît Minisini
46234d8dc7 [INTERPRETER]
* NEW: Arrays and structures can be sent to an extern function argument. 
  The extern function will receive the address of the data.


git-svn-id: svn://localhost/gambas/trunk@3035 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-09 11:16:49 +00:00
Benoît Minisini
4bf21cb273 [DEVELOPMENT ENVIRONMENT]
* BUG: Newly opened debug windows should now be entirely visible when there
  is a desktop panel on the top of the screen.


git-svn-id: svn://localhost/gambas/trunk@3034 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-09 08:36:05 +00:00
David Villalobos Cambronero
a5e686f1c1 [GB.MYSQL]
* NEW: More work arround the Database Objects creation.

git-svn-id: svn://localhost/gambas/trunk@3033 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-08 03:29:08 +00:00
Benoît Minisini
dcb90ff594 [DEVELOPMENT ENVIRONMENT]
* BUG: In form editor, fix arrangement icons handling in forms whose menu 
  is visible.


git-svn-id: svn://localhost/gambas/trunk@3032 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-07 22:41:25 +00:00
Benoît Minisini
32f6172c89 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix a crash is structure declaration analyze.

[INTERPRETER]
* NEW: Support for static array of structures. A static array of structure 
  'MyStruct' will create a temporary object whose class is '$MyStruct[]'. 
  That class does not inherit 'Array', and has only a few methods of the 
  Array class.
* NEW: Byte[].ToString() is a new method to convert a byte array to a 
  string. If no length is specified, ToString() assumes that the byte array
  is a zero-terminated string.
* NEW: Byte[].FromString() is a new method that fills a byte array with the
  contents of a string.

[COMPILER]
* NEW: Declaration of static arrays of structures is allowed.


git-svn-id: svn://localhost/gambas/trunk@3031 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-07 22:06:05 +00:00
David Villalobos Cambronero
9c6618ecf3 [GB.MYSQL]
* NEW: Work arround the Routines and Index creation.

git-svn-id: svn://localhost/gambas/trunk@3030 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-07 17:45:05 +00:00
Benoît Minisini
4eee881fda [DEVELOPMENT ENVIRONMENT]
* NEW: Global search can be cancelled.
* NEW: The IDE does not try to open binary files anymore.
* NEW: Use the new TabStrip.TextFont property.
* NEW: The open project dialog has been redesigned.

[INTERPRETER]
* BUG: String.Left(), String.Mid() and String.Right() now return NULL on 
  truncated UTF-8 substrings.


git-svn-id: svn://localhost/gambas/trunk@3029 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-05 22:17:49 +00:00
Benoît Minisini
53560dd374 [INTERPRETER]
* BUG: Dir() and RDir() on "" or "." should be fixed now.


git-svn-id: svn://localhost/gambas/trunk@3028 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-05 19:06:11 +00:00
David Villalobos Cambronero
ec7e7e351f [GB.MYSQL]
* NEW: Work arround the Table creation.

git-svn-id: svn://localhost/gambas/trunk@3027 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-05 03:01:38 +00:00
David Villalobos Cambronero
64b544e729 [GB.MYSQL]
* NEW: Added some new function to the _Trigger class.

git-svn-id: svn://localhost/gambas/trunk@3026 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-04 23:51:26 +00:00
Benoît Minisini
e2d1dbe3e5 [GB.EVAL]
* BUG: Rewriting class names works now when the class name has only one 
  character.


git-svn-id: svn://localhost/gambas/trunk@3025 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-06-27 23:01:17 +00:00