Commit graph

334 commits

Author SHA1 Message Date
Benoît Minisini
652824dd35 [INTERPRETER]
* BUG: Automatically disable preloading on systems that do not support it.


git-svn-id: svn://localhost/gambas/trunk@1221 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-21 02:43:16 +00:00
Benoît Minisini
79e3644902 [INTERPRETER]
* NEW: Removes some warnings with uid_t on some systems.

[GB.EVAL]
* BUG: Removes the use of a non existing function.

[GB.DESKTOP]
* BUG: Try to enhance the detection of libXtst.


git-svn-id: svn://localhost/gambas/trunk@1220 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-21 02:05:59 +00:00
Benoît Minisini
f22ead1b20 * Forgot this file
git-svn-id: svn://localhost/gambas/trunk@1219 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-21 01:39:32 +00:00
Benoît Minisini
02aa33396f [INTERPRETER]
* BUG: Creates a replacement implementation of cfmakeraw().


git-svn-id: svn://localhost/gambas/trunk@1218 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-21 01:36:11 +00:00
Benoît Minisini
b693e43d44 [INTERPRETER]
* BUG: Manages correctly missing flags in localeconv()


git-svn-id: svn://localhost/gambas/trunk@1217 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-21 01:28:13 +00:00
Benoît Minisini
de9ea5223d [INTERPRETER]
* BUG: Other non-defined mathematical function management.


git-svn-id: svn://localhost/gambas/trunk@1216 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-21 01:25:37 +00:00
Benoît Minisini
7053cc0b25 [INTERPRETER]
* BUG: Do not use long double mathematic functions if they do not exist. A
  workaround must be found!


git-svn-id: svn://localhost/gambas/trunk@1215 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-21 01:15:44 +00:00
Benoît Minisini
7643ace3f5 [INTERPRETER]
* NEW: Don't use lockf and F_TLOCK if it does not exist. A workaround will 
  have to be found!
  


git-svn-id: svn://localhost/gambas/trunk@1214 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-21 01:04:18 +00:00
Benoît Minisini
ac3111a9eb [INTERPRETER]
* BUG: Don't use FIONREAD if it does not exist. A workaround will have to 
  be found!


git-svn-id: svn://localhost/gambas/trunk@1213 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-21 00:55:43 +00:00
Benoît Minisini
7759900148 [INTERPRETER]
* BUG: Defines sighandler_t when it is not defined by the system includes.


git-svn-id: svn://localhost/gambas/trunk@1212 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-21 00:35:39 +00:00
Benoît Minisini
94b347f461 [CONFIGURATION]
* NEW: A new macro, GB_COMPONENT_SEARCH, that uses pkg-config first, and if
  it fails, then tries to find the libraries and headers with a file 
  search.
* NEW: The GB_CHECK_XWINDOW macro is more clever.

[DEVELOPMENT ENVIRONMENT]
* NEW: The editor in the commit window has been enhanced. It has a little 
  toolbar and displays the cursor position now.

[GB.DB.SQLITE3]
* NEW: Uses the new GB_COMPONENT_SEARCH macro.

[GB.QT]
* NEW: Uses the new GB_COMPONENT_SEARCH macro.

[GB.QT.EXT]
* BUG: Removed a non-implemented method in the CEditor class.


git-svn-id: svn://localhost/gambas/trunk@1211 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-21 00:14:37 +00:00
Benoît Minisini
2e3187b667 [DEVELOPMENT ENVIRONMENT]
* BUG: The busy cursor is now correctly reset in all cases when clearing 
  the recent file history.
  
[GB.FORM]
* BUG: The SidePanel.Border works correctly now.

[GB.GTK]
* BUG: Correctly handles mouse button events in the GridView control.
* BUG: Setting GridView.Rows.Count to zero does not make rows too small
  anymore.


git-svn-id: svn://localhost/gambas/trunk@1209 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-20 22:35:01 +00:00
Benoît Minisini
c9dd8bcefe [INTERPRETER]
* BUG: Fixes the string management optimizations.
* OPT: Optimization of the string search function (InStr, RInstr).
* OPT: Optimization of the Split() function.
* OPT: Optimization of local variables initialization when entering a
  method.

[GB.NET.SMTP]
* BUG: Fixes the Makefile.am file so that the component compiles if the 
  glib library is installed in a non-standard directory.

[GB.QTE.EXT]
* BUG: Fixes the gb.qte.ext.component file.



git-svn-id: svn://localhost/gambas/trunk@1203 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-19 23:50:34 +00:00
Benoît Minisini
3d80d44a4a [WIKI CGI SCRIPT]
* BUG: Some little layout fixes.

[INTERPRETER]
* OPT: Read the user home directory only if the current uid has changed. 
  Otherwise, cache it into memory.
* OPT: String memory management has been optimized.
* OPT: Some little optimizations there and there.
* NEW: A new interpreter option, "-k", that prevents shared library to be
  unloaded until the process terminates. That can be useful when 
  debugging with valgrind.
* OPT: System.Language property was optimized.
* OPT: The gb_error.c file is now compiled with -O3.

[GB.GTK]
* BUG: Disable the management of input methods in TextBox and TextArea
  controls, so that the input methods are not disturbed. Consequently;
  SCIM and Bridged SCIM work again.
* BUG: You can read keyboard events properties in a Form KeyPress or 
  KeyRelease event handler correctly now.



git-svn-id: svn://localhost/gambas/trunk@1199 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-19 14:32:30 +00:00
Benoît Minisini
12674940f2 [DEVELOPMENT ENVIRONMENT]
* BUG: Remove .settings file from the svn repository.


git-svn-id: svn://localhost/gambas/trunk@1193 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-18 16:52:59 +00:00
Benoît Minisini
2752a989ed [COMPILER]
* BUG: Removed the ability to compile property access without having to use
  the ME keyword. This is too disturbing.

[GB.FORM]
* NEW: Uses the Draw.Style API for drawing SidePanel arrows.

[GB.FORM.MDI]
* NEW: Uses the Draw.Style API for drawing Toolbar handles.

[GB.QT]
* BUG: The style drawing methods really work.


git-svn-id: svn://localhost/gambas/trunk@1192 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-18 12:47:12 +00:00
Benoît Minisini
e6b94a0a86 [INTERPRETER]
* NEW: A new API that returns if the current language is right-to-left 
  written.

[GB.DRAW]
* NEW: New Draw.Style.* style drawing methods for drawing arrows, 
  check-boxes, option buttons, separators, focus rectangles, push buttons,
  panels, and splitter handles.
* NEW: Draw.Save() and Draw.Restore() are two new methods that save and
  restore the state of the current drawing properties.

[GB.GTK]
* NEW: Support for the style drawing methods.
* NEW: Support for Draw.Save() and Draw.Restore().

[GB.QT]
* NEW: Support for the style drawing methods.
* NEW: Support for Draw.Save() and Draw.Restore().


git-svn-id: svn://localhost/gambas/trunk@1191 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-18 10:04:10 +00:00
Benoît Minisini
ce5392adce [GB.GTK]
* BUG: Using stock pictures work correctly again, and does not crash the
  interpreter anymore.
* BUG: Fixes memory leaks with font and picture management.


git-svn-id: svn://localhost/gambas/trunk@1188 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-17 15:04:36 +00:00
Benoît Minisini
9ccbaac697 [INTERPRETER]
* NEW: New API for returning the parent (event observer) of an object.

[COMPILER]
* BUG: Setting a property without having to use ME is possible now, if the
  property is defined in the same file of course.
* NEW: Mid$() can be used on the left side of an assignment.

[GB.FORM]
* BUG: ValueBox now reformats its contents after its Value property has 
  been set.

[GB.GTK]
* BUG: Composed keys are correctly handled again by KeyPress events, but
  the SCIM input method does not work yet.
* BUG: Form are their own event observer only if no event observer is 
  defined at form instanciation.
* BUG: The default tray icon is the same as gb.qt now.

[GB.QT]
* BUG: TrayIcon objects are correctly destroyed at program exit.
* BUG: Form are their own event observer only if no event observer is 
  defined at form instanciation.
* BUG: TrayIcon Width, Height, ScreenX and ScreenY properties do not crash
  anymore when the tray icon is hidden. They return zero instead.
  

git-svn-id: svn://localhost/gambas/trunk@1187 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-17 14:54:17 +00:00
Peter Landgren
a07eada21b [WIKI CGI SCRIPT]
* NEW: Swedish translation updated.

git-svn-id: svn://localhost/gambas/trunk@1184 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-16 17:44:52 +00:00
Peter Landgren
f04ed62d46 git-svn-id: svn://localhost/gambas/trunk@1179 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2008-03-15 18:01:52 +00:00
Peter Landgren
d8ed1ae37f git-svn-id: svn://localhost/gambas/trunk@1178 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2008-03-15 18:01:15 +00:00
Peter Landgren
25ef1e9f2c git-svn-id: svn://localhost/gambas/trunk@1177 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2008-03-15 18:00:17 +00:00
Peter Landgren
4c88094daa git-svn-id: svn://localhost/gambas/trunk@1176 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2008-03-15 17:59:30 +00:00
Peter Landgren
1afa9a3e75 git-svn-id: svn://localhost/gambas/trunk@1175 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2008-03-15 17:58:47 +00:00
Peter Landgren
9a4656d2be git-svn-id: svn://localhost/gambas/trunk@1174 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2008-03-15 17:57:53 +00:00
Peter Landgren
8dfcd10a4c git-svn-id: svn://localhost/gambas/trunk@1173 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2008-03-15 17:56:45 +00:00
Peter Landgren
7fe531ef32 git-svn-id: svn://localhost/gambas/trunk@1172 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2008-03-15 17:55:24 +00:00
Peter Landgren
fe81ae87a0 git-svn-id: svn://localhost/gambas/trunk@1171 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2008-03-15 17:54:43 +00:00
Peter Landgren
4a6b321852 git-svn-id: svn://localhost/gambas/trunk@1170 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2008-03-15 17:53:55 +00:00
David Villalobos Cambronero
d10cc90fc0 [DEVELOPMENT ENVIRONMENT]
* NEW: Spanish translation updated.
* NEW: Tips' Spanish translation updated.

git-svn-id: svn://localhost/gambas/trunk@1168 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-15 15:58:34 +00:00
Benoît Minisini
fe09aef64b [GB.QT]
* BUG: Removed some memory leaks.

[GB.GTK]
* BUG: Removed some memory leaks.


git-svn-id: svn://localhost/gambas/trunk@1166 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-13 22:35:22 +00:00
Benoît Minisini
0a7ba84a28 [DEVELOPMENT ENVIRONMENT]
* BUG: Ensure that the property panel is correctly shown or hidden when the
  project is opened.
* NEW: Automatic completion is automatically inserted in all cases when
  pressing one of the following keys: '.','(','[','!'.

[INTERPRETER]
* BUG: Mid$("", 0) returns an error now.

[GB.GTK]
* BUG: The Font property management was fixed.
* BUG: The icon text alignment was fixed in the IconView control.

[GB.FORM]
* NEW: The FileChooser bookmark list was redesigned.

[GB.QT]
* BUG: Control.Handle returns a Pointer now.


git-svn-id: svn://localhost/gambas/trunk@1164 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-13 21:38:43 +00:00
Benoît Minisini
5f900c0b68 [DEVELOPMENT ENVIRONMENT]
* NEW: English and french tips were updated. A new tip was added.
* NEW: Files that were opened at project close are automatically reopened
  when the project is loaded again.
* NEW: A warning message is displayed when the GNU translation tools are
  not installed.
* BUG: The code editor method combo-box is correctly updated now.
* BUG: Some fixes in the automatic completion.
* BUG: Replace points by dash in the name of packages generated by the IDE
  packager.
* NEW: Updated russian translation
* NEW: Updated french translation

[DATABASE MANAGER]
* NEW: Updated russian translation

[EXAMPLES]
* BUG: Fixed the Gravity and the GameOfLife examples so that they do not
  use public form controls anymore.

[INTERPRETER]
* OPT: Many optimizations in the string substitution routines, the 
  internal datatype conversions, the INPUT and LINE INPUT instructions, the 
  error messages generation, the object and string reference counting, and
  the memory allocation routines.
* NEW: Opening a device file in direct mode (FOR READ/WRITE) is now 
  automatically non blocking.
* OPT: Lof() now only tries its different methods (ioctl and lseek) once.
* BUG: Val() now ignores thousand separators characters at the end of the 
  number.
* NEW: A new flag for enabling the stack trace generation at each error.

[GB.DEBUG]
* BUG: The gb.debug component interface declaration was not 64-bits aware.

[GB.EVAL]
* BUG: The Highlight.Purge() method now correctly deals with non-ASCII 
 characters.

[GB.FORM]
* BUG: TableView.Edit() does not raise a "read-only combo-box" error 
  anymore.
  
[GB.FORM.DIALOG]
* BUG: Dialog buttons now are never cut.

[GB.GTK]
* BUG: Cached drawing areas are correctly redrawn now.
* BUG: Loading big images now works correctly. There is apparently a bug 
  in the GTK+ image loader, and I found a workaround.
* BUG: Message boxes correctly display the text of their buttons now.

[GB.QT]
* BUG: The Open, and initial Move and Resize event of embedded forms are 
  now always raised when you call the Show method or if you set the Visible
  property. Before, it was raised when the embedded form was actually 
  shown.

[GB.SETTINGS]
* NEW: Settings are now stored in ~/.config/gambasX, where X is the 
  gambas version number.
* BUG: Strings are correctly quoted inside the settings file now.

[GB.WEB]
* NEW: Application.Protocol is a new property that allows to tell the 
  component that the protocol is not necessarily "http".


git-svn-id: svn://localhost/gambas/trunk@1153 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-11 13:29:47 +00:00
Benoît Minisini
912bac12c5 [GB.QT]
* BUG: Show() and Hide() methods are now strictly equivalent to the 
  Visible property. This finally fixes the problem with the unability to
  insert an existing form into a project in the IDE.


git-svn-id: svn://localhost/gambas/trunk@1136 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-04 23:47:22 +00:00
Benoît Minisini
30c9491a27 [DEVELOPMENT ENVIRONMENT]
* BUG: Fixed a bug which prevented to add an existing form to a project.
* BUG: Choosing a non-default stack size works correctly now.
* BUG: Somes fixes in autocompletion.
* NEW: Support for a new project option that tells the interpreter to 
  generate or not generate stack traces.


git-svn-id: svn://localhost/gambas/trunk@1134 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-03-04 23:15:16 +00:00
Laurent Carlier
a077eaed8b [GB.XML]
* BUG: Fix some linking problems.
* BUG: Makes gb.xml.rpc install correctly.


git-svn-id: svn://localhost/gambas/trunk@1122 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-26 08:28:58 +00:00
Laurent Carlier
8526133fd7 [CONFIGURATION]
* NEW: Now GB_COMPONENT_PKG_CONFIG() macro accept an optional warning
  message.
* BUG: Add support for libffi through pkg-config when available.


git-svn-id: svn://localhost/gambas/trunk@1121 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-26 08:23:51 +00:00
Laurent Carlier
52e6d3795c [GB.NET.CURL]
* BUG: Use pkg-config utility now.


git-svn-id: svn://localhost/gambas/trunk@1120 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-26 08:14:28 +00:00
Benoît Minisini
39ca9e0a69 [CONFIGURATION]
* BUG: Pass the -fsigned-char option to gcc so that gambas compiles on
  architectures where char is unsigned by default.

[INTERPRETER]
* BUG: Fixed the conversion from negative integer to string.


git-svn-id: svn://localhost/gambas/trunk@1110 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-25 15:34:04 +00:00
Benoît Minisini
a0ecaa77e6 [CONFIGURATION]
* BUG: Automatically search libraries in lib64 before searching in lib.
* BUG: Fixed the $FFI_LIB test in main/configure.ac.

[DEVELOPMENT ENVIRONMENT]
* BUG: Tips of the days are displayed correctly again.

[INTERPRETER]
* BUG: Val() now takes the thousand separator into account when this 
  separator is a space character.
* BUG: Removed the 64 bits warning.
* BUG: Fixes the 'lib64' problem. Now components are searched in the 'lib64' 
  directory on 64 bits OS. If they are not stored in 'lib64', then the 
  default 'lib' directory is used.
* NEW: Passing argument by reference is not allowed anymore if not 
  explicitely specified in the method declaration.

[COMPILER]
* NEW: Passing argument by reference is not allowed anymore if not 
  explicitely specified in the method declaration.

[INFORMER]
* BUG: Fixes the 'lib64' problem. Now components are searched in the 'lib64' 
  directory on 64 bits OS. If they are not stored in 'lib64', then the 
  default 'lib' directory is used.


git-svn-id: svn://localhost/gambas/trunk@1108 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-24 16:29:02 +00:00
Benoît Minisini
eff2990f0b [DEVELOPMENT ENVIRONMENT]
* NEW: 2.1 changes were merged.

[INTERPRETER]
* BUG: Static properties or methods returning virtual classes work again.
  Color[xxx] is one of them.


git-svn-id: svn://localhost/gambas/trunk@1091 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-21 14:13:47 +00:00
Benoît Minisini
a631253a53 [CONFIGURATION]
* NEW: Configuration is aborted if libffi library and headers are not 
  installed.

[WIKI CGI SCRIPT]
* NEW: New section for version-specific documentation.

[INTERPRETER]
* BUG: The gb.info file was wrong: Min() and Max() take only two arguments.
* NEW: New LastEventName property in the Object class that returns the 
  event name used by the last created object.

[GB.DB.FORM]
* NEW: DataControl raises the event of its internal editing control by 
  using the new Object class property defined above.

[GB.GTK]
* BUG: The X and Y properties of the Window class now return the same
  values as gb.qt.

[GB.QT]
* BUG: Prevents a crash when a trayicon is destroyed or hidden during a
  trayicon event handler.


git-svn-id: svn://localhost/gambas/trunk@1090 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-21 13:14:16 +00:00
Laurent Carlier
edb9e54bb4 [OPENBSD]
* BUG: Revert strlcpy/strlcat/snprintf, they are not really needed, and introduce potentially more bugs.



git-svn-id: svn://localhost/gambas/trunk@1080 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-18 23:07:24 +00:00
Daniel Campos
afd1317520 [GB.NET]
* Changes in SerialPort and UdpSocket for 32/64bits compatibility



git-svn-id: svn://localhost/gambas/trunk@1075 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-15 11:31:51 +00:00
Daniel Campos
5129b9e6bc [GB.NET]
* Fixes in Socket and ServerSocket for 32/64 bits compatibility



git-svn-id: svn://localhost/gambas/trunk@1072 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-15 11:12:55 +00:00
Daniel Campos
ac75d3b3b9 [GB.NET.CURL]
* BUG: now compiles without warnings and run on a 64 bits system



git-svn-id: svn://localhost/gambas/trunk@1070 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-14 18:11:54 +00:00
Daniel Campos
9dbc81fc4b [GB.NET.CURL]
* Some additional fixes for 64 bits



git-svn-id: svn://localhost/gambas/trunk@1068 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-14 12:08:55 +00:00
Benoît Minisini
1e791cee6b [CONFIGURATION]
* BUG: The external gettext library is now used only on OpenBSD. If needed,
  other systems can be added of course.
* BUG: Fix Qt moc detection for OpenBSD.

[DEVELOPMENT ENVIRONMENT]
* NEW: In the menu editor, a new menu is now inserted after the current 
  menu and not before.

[INTERPRETER]
* BUG: Object.Attach() and Object.Detach() now correctly deals with
  Observer objects.

[COMPILER]
* NEW: When a form method declaration has no END keyword, the error 
  message is now accurate. It does not talk about the form definition 
  anymore.

[GB.GTK]
* BUG: The use of alternative input methods do not print warnings anymore.


git-svn-id: svn://localhost/gambas/trunk@1067 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-14 11:59:36 +00:00
Daniel Campos
ca4f1c508b [GB.NET.CURL]
* Updated code to be compatible with both 32bits and 64bits architectures
* Updated author e-mail and copyright notice



git-svn-id: svn://localhost/gambas/trunk@1066 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-14 11:25:00 +00:00