Commit graph

77 commits

Author SHA1 Message Date
Benoît Minisini
03fd5166f1 [GB.DB.ODBC]
* NEW: Support for "forward only" query result.


git-svn-id: svn://localhost/gambas/trunk@7316 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-16 19:50:55 +00:00
Benoît Minisini
e1a17dfa09 [GB.DB.SQLITE3]
* BUG: Fix debug message printed when DB.Debug is set.


git-svn-id: svn://localhost/gambas/trunk@7292 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-08 13:40:19 +00:00
Benoît Minisini
a9e1b8eb48 [GB.DB.SQLITE3]
* BUG: Interpret unknown SQL datatypes as "String" instead of using 
  garbage.


git-svn-id: svn://localhost/gambas/trunk@7230 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-20 13:36:17 +00:00
Benoît Minisini
2f3bccafe2 [GB.DB.SQLITE3]
* BUG: Forgot to add two files.


git-svn-id: svn://localhost/gambas/trunk@7017 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-30 00:06:57 +00:00
Benoît Minisini
5b5bb093e7 [GB.DB.SQLITE3]
* NEW: Rewrite the SQLite 3 driver. Get rid of all that brain-fucking C++ 
  code. Things should consume less memory, and may be a little bit faster.


git-svn-id: svn://localhost/gambas/trunk@7016 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-29 23:22:11 +00:00
Benoît Minisini
cc36567d59 [GB.DB.SQLITE3]
* BUG: Detect primary key only with 'table_info' pragma. Consequently, 
  fields declared as "INTEGER" will not be incorreclty taken as a default 
  primary key anymore.


git-svn-id: svn://localhost/gambas/trunk@7003 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-28 11:37:10 +00:00
Benoît Minisini
50fba09151 [CONFIGURATION]
* NEW: Compile and install gb.report2 component.

[DEVELOPMENT ENVIRONMENT]
* NEW: Add support for gb.report2 and gb.scanner.
* BUG: Correctly reset Application.Busy when opening a connection fails.
* BUG: Project property dialog: Fix management of required components.
* NEW: Project property dialog: Add management of excluded components.

[GB.DB]
* NEW: More detailed error message for SQLite connections.

[GB.DB.SQLITE3]
* NEW: More detailed error message for SQLite connections.


git-svn-id: svn://localhost/gambas/trunk@6892 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-05 20:34:44 +00:00
Benoît Minisini
ccc9af006a [DEVELOPMENT ENVIRONMENT]
* NEW: Files including a '\r' character are not considered as binary files 
  anymore.

[GB.FORM]
* BUG: ColorPalette: Default background is now transparent.

[GB.DB.SQLITE3]
* BUG: Use the official standard quoting character.


git-svn-id: svn://localhost/gambas/trunk@6881 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-03 19:56:46 +00:00
Benoît Minisini
6b10bb831d [DEVELOPMENT ENVIRONMENT]
* NEW: Component/Library dependencies now are chosen from a new component 
  selection dialog.
* BUG: Database editor: Support for requests beginning with "WITH" or 
  "PRAGMA".

[WIKI CGI SCRIPT]
* NEW: New login panel.
* BUG: Fix creatable class detection.

[GB.FORM]
* BUG: IconPanel: The mouse wheel cannot select hidden tabs anymore.
* BUG: Wizard: Remove default padding for wizards having a border.

[GB.GUI.BASE]
* BUG: Border: Rewrite the painting routine. Simplify the clipping to help
  workaround Qt4 bugs.

[GB.DB.SQLITE]
* NEW: Mark the component as deprecated.

[GB.DB.SQLITE3]
* BUG: Support for PRAGMA requests. Start cleaning up the horrible C++ 
  classes.

[GB.QT4]
* BUG: Simplify the clipping management, because the old one was based on 
  the QPainterPath::intersected() Qt method that is buggy. Clipping mixed 
  with world transform matrix has still to be checked.


git-svn-id: svn://localhost/gambas/trunk@6815 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-06 22:44:35 +00:00
Benoît Minisini
97dea91d63 [GB.DB.SQLITE3]
* BUG: Remove an unused function.


git-svn-id: svn://localhost/gambas/trunk@6738 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-14 12:54:15 +00:00
Benoît Minisini
dbea7fb532 [GB.DB.SQLITE3]
* BUG: Support for common table expressions ("WITH ... SELECT ..." SQL 
  expressions) that appeared in 3.8.3 version.


git-svn-id: svn://localhost/gambas/trunk@6737 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-14 12:52:23 +00:00
Benoît Minisini
7fa6cd0569 [DEVELOPMENT ENVIRONMENT]
* NEW: Database editor: Support for the new Collation field property.

[EXAMPLES]
* BUG: PdfViewer: Some little fixes.

[GB.DB]
* NEW: Table.Fields.Add() method takes a new optional argument to define
  the field collation.
* NEW: Connection.Collations is a new property that returns the list of
  available collations as a String array.
* NEW: Field.Collation is a new property that returns the collation of a
  specific table field.

[GB.DB.MYSQL]
* NEW: Support for field collations.

[GB.DB.ODBC]
* NEW: Raise an error when trying to use collations. It is not supported.

[GB.DB.POSTGRESQL]
* NEW: Support for field collations.

[GB.DB.SQLITE2]
* NEW: Raise an error when trying to use collations. It is not supported.

[GB.DB.SQLITE3]
* NEW: Support for field collations.

[GB.QT4]
* BUG: ComboBox.Border property can be set even if it is in read-only mode.


git-svn-id: svn://localhost/gambas/trunk@6494 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-09-22 02:52:05 +00:00
Benoît Minisini
5e76433eeb [CONFIGURATION]
* NEW: Do not use deprecated autoconf macros anymore.
* NEW: The version information is now located in the 'version.m4' file in
  the source root directory.


git-svn-id: svn://localhost/gambas/trunk@6230 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-04-05 21:22:43 +00:00
Benoît Minisini
c8101e9c9d [GB.DB.SQLITE3]
* BUG: Fix crash due to last commit.


git-svn-id: svn://localhost/gambas/trunk@5977 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-03 14:36:19 +00:00
Benoît Minisini
0fd0ff44fe [GB.DB.SQLITE3]
* BUG: Correctly handle requests returning only one table name inside field 
  names.


git-svn-id: svn://localhost/gambas/trunk@5976 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-03 01:01:14 +00:00
Benoît Minisini
770042a260 [GB.SB.SQLITE3]
* BUG: Fix specific implementation of sqlite3_exec. Prevent some crashes 
  and make database creation work again (among other things).

[GB.WEB]
* BUG: CGI.Error() now correctly sends an UTF-8 HTML page.
* NEW: Response.EndOfLine is now taken into account if the response is 
  buffered.
* BUG: Buffered responses now use "Window" end-of-line by default instead 
  of "Unix" end-of-line, like unbuffered responses. *WARNING!* This bug fix 
  is not backward-compatible!


git-svn-id: svn://localhost/gambas/trunk@5975 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-11-26 16:00:23 +00:00
Benoît Minisini
7f40f6e756 [GB.DB.SQLITE3]
* BUG: Fix a crash introduced by the previous commit.


git-svn-id: svn://localhost/gambas/trunk@5969 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-11-23 02:07:43 +00:00
Benoît Minisini
12da187306 [GB.DB.SQLITE3]
* BUG: Use the sqlite3_column_decltype() API to get the real datatype 
  declaration of result fields, so that aliasing field does not change its
  resulting datatype.


git-svn-id: svn://localhost/gambas/trunk@5968 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-11-23 01:47:44 +00:00
Benoît Minisini
4f566fa199 [DEVELOPMENT ENVIRONMENT]
* BUG: Forgot the description of gb.opengl.sge.

[INTERPRETER]
* BUG: Propagate the GB_DATE_SERIAL structure changes to all components.


git-svn-id: svn://localhost/gambas/trunk@5879 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-10-13 12:39:56 +00:00
Tobias Boege
1952bfd047 [GB.DB.SQLITE3]
* BUG: VARYING CHARACTER() is taken as a text type now, not a boolean.



git-svn-id: svn://localhost/gambas/trunk@5813 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-08-28 12:16:39 +00:00
Benoît Minisini
c9ca5ab982 [CONFIGURATION]
* NEW: Update copyright year to 2013.

[GB.FORM]
* NEW: ImageView is a new control that allows to view an image inside a 
  scrolled view, at different zoom levels.
* BUG: FileProperties now works correctly if 'gb.desktop' is not used.
* NEW: The FileProperties preview tab now uses an ImageView control and has
  a toolbar to zoom the preview.
* BUG: Add the 'linux' and 'gnu' icon in the stock icon list.


git-svn-id: svn://localhost/gambas/trunk@5770 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-08-03 15:38:01 +00:00
Benoît Minisini
b814f368c5 [GB.DB.FORM]
* NEW: DataControl can handle blob fields now.
* NEW: Highlight the byte under the mouse in blob editor.

[GB.FORM]
* NEW: ButtonBox.Pos is a new property that returns the cursor position of 
  its inner TextBox.


git-svn-id: svn://localhost/gambas/trunk@5741 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-19 18:16:55 +00:00
Benoît Minisini
793156546b [GB.DB.SQLITE3]
* BUG: Oops. Compiles again.


git-svn-id: svn://localhost/gambas/trunk@5548 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-12 11:30:37 +00:00
Benoît Minisini
0e3b2868e9 [GB.DB.SQLITE3]
* NEW: Connection.Timeout is now the maximum duration of request retries
  when the database is busy. By default, this is 120 seconds.


git-svn-id: svn://localhost/gambas/trunk@5547 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-12 11:29:54 +00:00
Benoît Minisini
0e2a43921f [GB.DB.SQLITE3]
* NEW: Retry busy request during 2 minutes max. instead of 30 seconds.


git-svn-id: svn://localhost/gambas/trunk@5546 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-12 10:45:58 +00:00
Benoît Minisini
d446e2453f [GB.DB.SQLITE3]
* BUG: Fix a crash introduced by the previous fix.


git-svn-id: svn://localhost/gambas/trunk@5545 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-12 01:45:54 +00:00
Benoît Minisini
a8915f2700 [GB.DB.SQLITE3]
* BUG: Handle SQLITE_BUSY error for all requests, even SELECT queries.


git-svn-id: svn://localhost/gambas/trunk@5544 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-12 01:33:38 +00:00
Benoît Minisini
8cc0ae62b4 [GB.DB.SQLITE3]
* NEW: Requests are automatically retried during 30 seconds if the database 
  is busy.


git-svn-id: svn://localhost/gambas/trunk@5530 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-01-30 19:43:31 +00:00
Benoît Minisini
00c989eb44 [GB.DB.SQLITE3]
* BUG: Quote index name and primary key fields.


git-svn-id: svn://localhost/gambas/trunk@5527 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-01-29 22:23:49 +00:00
Benoît Minisini
9a79fbede4 [DEVELOPMENT ENVIRONMENT]
* NEW: Use a smaller font for help viewer embeeded in automatic completion
  or signature popups.
* NEW: Revamp the option dialog.
* NEW: Add an option to install the Gambas font to the user font folder
  (~/.fonts). That font is a custom version of the Terminus 6x12 bitmap 
  font, with a bold version and more unicode characters.

[GB.GUI.BASE]
* OPT: Start optimizing the TreeView.Add() method which is too slow if a 
  single item has many children.


git-svn-id: svn://localhost/gambas/trunk@5346 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-21 00:20:00 +00:00
Benoît Minisini
8b73da0e5f [DEVELOPMENT ENVIRONMENT]
* NEW: In the CSV import dialog: When the import is finished, display the
  message tab and disable the "Import" button so that you don't click on it
  again unexpectedly. The button is enabled again when clicking on the
  first tab.

[GB.GUI.BASE]
* BUG: GridView: Using selection methods now takes the "Single" selection 
  mode into account and refresh the view as expected.


git-svn-id: svn://localhost/gambas/trunk@5343 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-20 10:23:27 +00:00
Benoît Minisini
aa2de9e3a4 [GB.DB.SQLITE3]
* BUG: Remove a debugging message.


git-svn-id: svn://localhost/gambas/trunk@5342 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-20 01:55:53 +00:00
Benoît Minisini
a7c3939e3d [DEVELOPMENT ENVIRONMENT]
* BUG: Be sure that the welcome dialog filter has the focus.

[WEBSITE MAKER]
* NEW: Update for 3.3.4.

[GB.DB]
* BUG: A failing table or user add does not leak memory anymore.
* BUG: Fix the removal method of the .SubCollection virtual class.

[GB.DB.SQLITE3]
* BUG: Detect serial fields correctly now.

[GB.QT4]
* BUG: Enusre that embedded windows emit their Open event before any Move, 
  Resize events...


git-svn-id: svn://localhost/gambas/trunk@5340 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-20 01:37:26 +00:00
Benoît Minisini
0026fb1489 [DEVELOPMENT ENVIRONMENT]
* NEW: Support for compiler warnings.
* BUG: Fix all detected warnings.

[COMPILER]
* NEW: A new compiler option '-w' to let it emit warnings.
* NEW: Emit warnings for unused variables, arguments, functions and for 
  local symbols that override global symbols. Public symbols are of course 
  not taken into account.
* NEW: If an argument is surrounded by braces, no warning will be emitted
  if the argument is not used.

[GB.EVAL]
* NEW: OPTIONAL keyword is always followed by a space now when rewriting 
  Gambas code.


git-svn-id: svn://localhost/gambas/trunk@5122 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-09-04 07:29:39 +00:00
Benoît Minisini
43c441d15c [GB.DB.SQLITE3]
* BUG: 'INTEGER' fields are now assumed to be serial fields only if 
  'AUTOINCREMENT' has been specified too.

[GB.QT4]
* BUG: Fix declaration of Desktop.HasSystemTray property.


git-svn-id: svn://localhost/gambas/trunk@5083 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-27 02:57:50 +00:00
Benoît Minisini
8ad1afe673 [CONFIGURATION]
* NEW: Print disabled components individually.

[GB.QT4]
* BUG: ComboBox background color is correctly handled now.


git-svn-id: svn://localhost/gambas/trunk@4739 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-18 01:19:15 +00:00
Benoît Minisini
e2fac79ffb [CONFIGURATION]
* NEW: Replace the old "INCLUDES" directive by "xxx_CPPFLAGS" in all 
  Makefile.am files.

[GB.XML]
* BUG: Remove debugging flags from compilation flags.


git-svn-id: svn://localhost/gambas/trunk@4714 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-04 16:45:14 +00:00
Benoît Minisini
0f2018386f [GB.DB.SQLITE3]
* BUG: Void blobs are correctly reset when enumerating a Result.


git-svn-id: svn://localhost/gambas/trunk@4397 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-01-12 06:25:40 +00:00
Benoît Minisini
dd3b512daf [CONFIGURATION]
* NEW: Update copyrights.


git-svn-id: svn://localhost/gambas/trunk@4384 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-12-31 02:39:20 +00:00
Benoît Minisini
9ea298d688 [GB.DB.SQLITE3]
* BUG: Fix some error messages.

[GB.SETTINGS]
* BUG: Settings.ReadWindow() and Settings.WriteWindow() are now private.

[GB.WEB]
* BUG: WebPage class is not exported anymore.


git-svn-id: svn://localhost/gambas/trunk@4117 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-11 22:05:53 +00:00
Benoît Minisini
67ecd4b00a [INTERPRETER]
* NEW: New syntax for GB.AddString() and GB.ExtendString() interpreter API.
  Do not pass the string by reference anymore.
* NEW: GB.AddChar() is a new API for adding just a char to a string.

[GB.DB.SQLITE2]
* BUG: Fix ignored system call return values.

[GB.DB.SQLITE3]
* BUG: Fix ignored system call return values.

[GB.DB.NET]
* BUG: Fix ignored system call return values.

[GB.V4L]
* BUG: Remove some unused local variables.


git-svn-id: svn://localhost/gambas/trunk@4105 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-07 19:43:11 +00:00
Benoît Minisini
6e6d9fd916 [CONFIGURATION]
* BUG: Remove generated ltmain.sh files.


git-svn-id: svn://localhost/gambas/trunk@4007 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-10 22:18:30 +00:00
Benoît Minisini
2fbf67cb29 [CONFIGURATION]
* NEW: Update FSF address in every source file.


git-svn-id: svn://localhost/gambas/trunk@3870 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-03 00:51:09 +00:00
Benoît Minisini
b936c83f0d [CONFIGURATION]
* NEW: Update copyright strings.

[DEVELOPMENT ENVIRONMENT]
* NEW: Display menu shortcuts inside the form editor.


git-svn-id: svn://localhost/gambas/trunk@3670 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-21 00:04:10 +00:00
Benoît Minisini
26b363c96f [WIKI CGI SCRIPT]
* NEW: Button to "flattr" Gambas.

[INTERPRETER]
* BUG: Fix some possible uses of unitialized values.

[COMPILER]
* BUG: Fix a possible crash when having 63 arguments passed by reference 
  to a function.

[GB.DB.SQLITE3]
* BUG: Detect integer primary key whatever the case used to write 
  "integer".

[GB.GTK]
* BUG: Page setup is enabled in printer configuration dialog now.

[GB.QT4]
* BUG: The font size of printed texts is now correct.


git-svn-id: svn://localhost/gambas/trunk@3344 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-05 20:17:24 +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
b3db598050 [DEVELOPMENT ENVIRONMENT]
* BUG: Breakpoints are correctly reset when opening a new project.

[INTERPRETER]
* BUG: The GB.NewString(), GB.NewZeroString() and GB.TempString() API 
  signature has changed. All components have been updated accordingly.
* OPT: Many optimizations to speed up the interpreter.

[GB.EVAL]
* NEW: During syntax highlighting, the first character of class names is
  automatically converted to uppercase.


git-svn-id: svn://localhost/gambas/trunk@2992 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-06-04 23:48:53 +00:00
Benoît Minisini
4a544c567a [INTERPRETER]
* BUG: Use GB.ReturnNewZeroString() instead of GB.ReturnNewString() now. 
  All components using the old syntax should be fixed now.
* NEW: Start to manage structures.


git-svn-id: svn://localhost/gambas/trunk@2957 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-23 11:07:14 +00:00
Benoît Minisini
117f2ac635 [INTERPRETER]
* NEW: New GB.NewZeroString() API to create a Gambas string from a 
  null-terminated string. Components were modified to use it.
* OPT: Many optimizations everywhere.

[COMPILER]
* OPT: Many optimizations. The compiler should be noticeably faster.


git-svn-id: svn://localhost/gambas/trunk@2953 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-22 18:02:34 +00:00
Benoît Minisini
57aac2157c [DEVELOPMENT ENVIRONMENT]
* NEW: Search in current procedure has been implemented.
* OPT: The Hall Of Fame is now animated only if its tab is visible.

[WEB SITE MAKER]
* NEW: Added some example authors in the hall of fame.

[GB.DB.SQLITE2]
* BUG: Fix a memory leak when failing to open a database.

[GB.DB.SQLITE3]
* BUG: Fix a memory leak when failing to open a database.

[GB.FORM]
* BUG: The text in FontChooser relative size list is not wrapped anymore.

[GB.FORM.MDI]
* BUG: Some fixes in toolbar layouting.
* NEW: Some little design change in the toolbar configuration dialog.
* NEW: Toolbar separators are now automatically hidden if they are useless.

[GB.GTK]
* NEW: TextLabel.Wrap is a new property that tells if the text should be 
  wrapped. This property is set by default.

[GB.SDL.SOUND]
* BUG: The component now works correctly  with gb.qt4.

[GB.QT4]
* NEW: TextLabel.Wrap is a new property that tells if the text should be 
  wrapped. This property is set by default.



git-svn-id: svn://localhost/gambas/trunk@2899 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-20 01:21:07 +00:00