Commit graph

1511 commits

Author SHA1 Message Date
Benoît Minisini
f2f26687a9 [INTERPRETER]
* BUG: Remove a debugging message.


git-svn-id: svn://localhost/gambas/trunk@7613 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-02-25 23:19:39 +00:00
Benoît Minisini
056190b68d [INTERPRETER]
* BUG: DateDiff() correctly returns zero when asking for the number of days between two timestamps having the same date.



git-svn-id: svn://localhost/gambas/trunk@7612 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-02-25 23:09:51 +00:00
Benoît Minisini
61064b6f6e [INTERPRETER]
* BUG: Week() now works correctly outside of UTC.


git-svn-id: svn://localhost/gambas/trunk@7611 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-02-25 22:59:49 +00:00
Benoît Minisini
c1eb854159 [CONFIGURATION]
* NEW: Detect the fstatat() system function.

[INTERPRETER]
* OPT: Dir() and RDir() are now 10-30% faster by using fstatat() and assuming that directories with just two hard links have no child directories (each sub-directory having one hard-link to its parent directory through the ".." entry).


git-svn-id: svn://localhost/gambas/trunk@7610 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-02-21 15:48:40 +00:00
Benoît Minisini
a282de2f75 [INTERPRETER]
* BUG: Libraries are also searched in the current directory without version or vendor, for backward-compatibility.


git-svn-id: svn://localhost/gambas/trunk@7606 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-02-21 10:49:15 +00:00
Benoît Minisini
91c76c32a9 [INTERPRETER]
* BUG: Correctly handle the current component interpreter variable when an error occurs.


git-svn-id: svn://localhost/gambas/trunk@7603 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-02-14 16:15:31 +00:00
Benoît Minisini
41b9cc5e36 [INTERPRETER]
* NEW: Library specific path can be relative now. It is then relative to the project executable path.
* NEW: Libraries are now searched in the '~/.local/share/gambas3/lib' directory even if we are not in debugging mode.


git-svn-id: svn://localhost/gambas/trunk@7602 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-02-10 21:45:33 +00:00
Benoît Minisini
f34f52b928 [INTERPRETER]
* NEW: New library management.

[COMPILER]
* NEW: New library management.


git-svn-id: svn://localhost/gambas/trunk@7592 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-02-01 02:18:49 +00:00
Benoît Minisini
8afaad6c00 [INTERPRETER]
* BUG: Case insensitive comparison is now coherent whether natural comparison is specified or not.


git-svn-id: svn://localhost/gambas/trunk@7587 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-01-25 23:28:18 +00:00
Benoît Minisini
cf2abcd76a [GB.DB]
* BUG: Take case-sensitive databases like postgresql into account in index fields.


git-svn-id: svn://localhost/gambas/trunk@7564 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-01-08 14:41:23 +00:00
Benoît Minisini
7d435cf968 [COMPILER]
* BUG: Remove compiler debugging messages.


git-svn-id: svn://localhost/gambas/trunk@7546 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-01-03 17:21:34 +00:00
Benoît Minisini
39ed4dd89e [INTERPRETER]
* NEW: Support for custom expression evaluators.

[GB.EVAL]
* NEW: You can now inheriting the Expression class to create a custom expression evaluator. You have to reimplement three methods: IsSubr(), that returns if a Gambas subroutine is allowed;
  IsIdentifier() that returns if a specific identifier is known; GetValue() that returns the value of an identifier. All other methods you add to the class become your specific subroutine,
  provided that you allow it in the IsIdentifier() method.


git-svn-id: svn://localhost/gambas/trunk@7545 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-01-03 16:44:24 +00:00
Benoît Minisini
66f5c498d2 [INTERPRETER]
* BUG: Shell$() does not try to convert into current locale anymore.


git-svn-id: svn://localhost/gambas/trunk@7542 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-01-02 11:11:52 +00:00
Benoît Minisini
a6f458e05c [INTERPRETER]
* NEW: _ready() is new special method that is called when an object construction is completly finished.

[COMPILER]
* NEW: Remove the call to _load() method in form constructors.

[GB.WEB.FORM]
* BUG: WebExpander: Remove a debugging message.
* NEW: WebForm.Debug is a new static property that, if set, dumps all exchanges between the server and the client in the browser console.
* NEW: Use the new _ready special method.
* NEW: WebLabel: Add the Border property.
* NEW: WebLabel: Alignment is a new property that defines the label horizontal alignment.
* NEW: A few changes in default style sheet.


git-svn-id: svn://localhost/gambas/trunk@7541 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-12-30 18:11:01 +00:00
Benoît Minisini
97ab7c0a3a [INTERPRETER]
* BUG: Correctly load optional exported classes at component loading.


git-svn-id: svn://localhost/gambas/trunk@7539 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-12-30 17:10:00 +00:00
Benoît Minisini
b9b46f3873 [CONFIGURATION]
* NEW: Add "-march=native" to the compilation flags. Maybe it could speed up then interpretrer a bit?

[DEVELOPMENT ENVIRONMENT]
* NEW: Connection editor: Update layout.
* NEW: Form editor: Clicking on the master selection selects the parent control.

[WEB SITE MAKER]
* NEW: Update for 3.8.4 version.

[GB.DB]
* BUG: Default values are now correctly taken into account by database templates.

[GB.DB.SQLITE3]
* BUG: Fix a possible uninitialized allocation of columns names.

[GB.UTIL]
* NEW: Class.Stat() class name argument now allows "../" in the name to search for classes in parent components.

[GB.WEB]
* NEW: Request.Language returns the main language requested by the HTTP client. This value can be directly assigned to System.Language.
* NEW: Session.Size returns the size of the session file in bytes.

[GB.WEB.FORM]
* NEW: Automatic management of favicon. The application favicon must be a file named "favicon.png" in the ".public" directory.
* NEW: The Align class for alignment constants.
* NEW: WebControl: Any control can raise a Message event now.
* NEW: The Message boxes now raise the "Message" event of the WebControl that opened the message box. If the event is not handled, then the event is raised by the WebForm of the control.
* NEW: The Select class for selection mode constants.
* BUG: WebComboBox: Define the default event.
* NEW: WebContainer: Indent is a new property that allows to add a left padding to the container.
* NEW: WebContainer: Extra children (those created after initialization) are now recreated with their event observer and event name, provided that the event observer is another WebControl.
* NEW: WebContainer: DeleteChildren() is a new method that deletes all container children.
* NEW: WebExpander: New container that implements an expander.
* NEW: WebForm: Teh application language now automatically switches to the language requested by the HTTP client.
* BUG: WebForm: Show() and ShowModal() method now raise the Open event.
* NEW: WebLabel: Add the Border property to the property list.
* NEW: WebLabel: Newlines in label text are automatically replaced by "<br>".
* NEW: WebTable: New control that implements an HTML table with automatic scrollbars. It gets its data through a Data event, and only displays the first hundred elements by default. A button allows to increase the number of displayed elements.
  The 'Mode' property allows to define the selection mode. When rows are selectable, an extra columns is added, with radion buttons on single selection mode, and checkboxes on multiple selection mode. The indexes of selected rows is returned by
  the 'Selection' property.
* BUG: Many fixes in the default stylesheet.


git-svn-id: svn://localhost/gambas/trunk@7536 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-12-27 18:16:32 +00:00
Benoît Minisini
f63e8caf6b [COMPILER]
* BUG: Optional exported classes are now correctly inserted into '*.list' files.


git-svn-id: svn://localhost/gambas/trunk@7535 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-12-22 20:41:18 +00:00
Benoît Minisini
fca1fb8e0e [DEVELOPMENT ENVIRONMENT]
* BUG: Fix image selection when the allowed image root directory is the
  '.public' special directory.
* NEW: Replace 'WebformImage' property kind by 'WebImage'.
* BUG: Form editor: Fix automatic arrangement.
* NEW: Form editor: Allow background and foreground toolbar buttons for
  WebForms.
* BUG: WebImage can display SVG files too.

[GB.WEB.FORM]
* NEW: Add some new color constants to the Color class.

[GB.GEOM]
* NEW: Move the declaration of alignment constants there.
* NEW: Rect.Stretch() is a new method that stretches a rectangle so that it
  fits inside another rectangle frame while keeping its proportions.
* NEW: RectF.Stretch() is a new method that stretches a rectangle so that
  it fits inside another rectangle frame while keeping its proportions.


git-svn-id: svn://localhost/gambas/trunk@7505 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-12-05 18:44:58 +00:00
Benoît Minisini
e525d08dd7 [INTERPRETER]
* BUG: Object.Raise() now works correctly with events having arguments.


git-svn-id: svn://localhost/gambas/trunk@7486 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-21 05:00:27 +00:00
Benoît Minisini
8d24b22411 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix the function that detects if a control needs a parent.
* BUG: When adding every new file to the subversion repository, the
  '.gambas' directory is now correctly ignored.

[COMPILER]
* NEW: The _load() special method is now called just after the initial form
  creation is finished.

[GB.WEB.FORM]
* NEW: Message is a new class for displaying message boxes.
* BUG: Fix management of control names.
* NEW: Implement the WebContainer.Delete() method and WebWindow.Delete()
  methods. Child controls are now automatically deleted if their parent is
  also deleted.
* NEW: WebControl.Show() and WebControl.Hide() are two new methods that are
  synonymous of the Visible property.
* NEW: WebControl acts now like an collection-like array, so that you can
  store user data associated with a control in the session.
* NEW: WebControl.Reset() is a new method to reset the control user data.
* NEW: WebForm.ShowModal() shows a form as a modal window.
* NEW: WebForm.Show() does not take an optional parent anymore. Windows are
  always shown in the current form.
* NEW: Windows with no initial size are centered.
* NEW: WebImage is a new control that displays an image.
* NEW: WebLabel is a new control that displays a one-line vertically
  centered label.
* NEW: WebTextArea is a new control that implements a multi-line text area.


git-svn-id: svn://localhost/gambas/trunk@7482 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-18 01:29:28 +00:00
Benoît Minisini
2a9836fead [INTERPRETER]
* OPT: Optimize access to objects whose class is "simple", i.e. without
  parent, children, special check method, and not virtual.
* OPT: Detect when automatic conversion is useless in arithmetic and
  comparison operators.
* OPT: Optimize a bit inequality comparison operators.


git-svn-id: svn://localhost/gambas/trunk@7476 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-14 04:29:43 +00:00
Benoît Minisini
7723b72e66 [INTERPRETER]
* OPT: Subroutine table is faster to access now.
* OPT: Don't browse temporary directory at end if no temporary file has
  been used.


git-svn-id: svn://localhost/gambas/trunk@7469 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-11 03:40:50 +00:00
Benoît Minisini
adcb15514f [INTERPRETER]
* NEW: Collection.Default is a new property that allows to define the
  default value returned by a collection when a key has no value. Note that
  assigning the default value does not clear the key. You have to
  explicitly assign NULL for that.


git-svn-id: svn://localhost/gambas/trunk@7468 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-11 01:55:37 +00:00
Benoît Minisini
e6bc6243e1 [INTERPRETER]
* BUG: Application.Dir is correctly declared now. Consequently, it will
  work with JIT compiler.


git-svn-id: svn://localhost/gambas/trunk@7467 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-11 01:25:40 +00:00
Benoît Minisini
e719e777b4 [DEVELOPMENT ENVIRONMENT]
* NEW: Image selection dialog has now more options, and can choose image
  inside the ".public" directory.
* NEW: Image selection now depends on form family.

[INTERPRETER]
* NEW: Timer.Restart() is a new method that stops and starts again a timer.

[GB.FORM.EDITOR]
* NEW: TextEditor: Image line cache is now limited by the visible height.
* BUG: TextEditor: Don't use image line cache for lines too high.

[GB.WEB]
* BUG: WebPage.ToString() now works correctly.

[GB.WEB.FORM]
* NEW: Generate webform style sheet recursively.
* NEW: WebButton can have an icon with the Image property.
* NEW: WebHtml control is now usable.
* NEW: WebContainer Arrangement, Margin and Spacing properties.
* NEW: WebControl Expand property.
* NEW: WebContainer boolean Border property is there just for debugging.
* NEW: WebForm.Title property.


git-svn-id: svn://localhost/gambas/trunk@7459 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-09 01:41:20 +00:00
Benoît Minisini
ce6b2c35b3 [GB.UTIL]
* NEW: Class.Stat() is a new static method that returns information about
  a project class without loading it. At the moment you only get the parent
  class name and if the class is exported.

[GB.WEB.FORM]
* NEW: A new embryo component that aims at providing web application GUI
  controls, web application automatic user management (login & register),
  and many other features not yet decided.


git-svn-id: svn://localhost/gambas/trunk@7457 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-08 03:11:47 +00:00
Benoît Minisini
8c51cc2d2c [INTERPRETER]
* BUG: Fix Variant to Boolean conversion.


git-svn-id: svn://localhost/gambas/trunk@7441 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-02 15:54:13 +00:00
Benoît Minisini
217f075c8b [INTERPRETER]
* OPT: Collection access is faster now.
* OPT: LINE INPUT and INPUT are faster now.
* OPT: Conversions to Boolean, from and to Variant are faster now.


git-svn-id: svn://localhost/gambas/trunk@7440 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-02 03:24:44 +00:00
Benoît Minisini
26d137d850 [INTERPRETER]
* OPT: Some optimization in native array accessors.
* BUG: Fix a compilation warning.


git-svn-id: svn://localhost/gambas/trunk@7439 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-31 01:49:40 +00:00
Benoît Minisini
5a3264a97d [INTERPRETER]
* BUG: Ensure better entropy when initializing pseudo-random number 
  generator.
* NEW: Ensure a better hash key seed for hash tables.


git-svn-id: svn://localhost/gambas/trunk@7427 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-19 19:30:17 +00:00
Benoît Minisini
061bb35502 [INTERPRETER]
* BUG: Prevent the use of seed 0 for the random-number generator, by 
  replacing it by -1 if Randomize 0 is requested.


git-svn-id: svn://localhost/gambas/trunk@7426 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-18 21:10:13 +00:00
Benoît Minisini
9e5924c628 [INTERPRETER]
* BUG: Fix File.IsHidden() method for paths having "." or ".." element 
  inside.


git-svn-id: svn://localhost/gambas/trunk@7418 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-17 18:40:29 +00:00
Benoît Minisini
bc6493120e [INTERPRETER]
* NEW: File.IsHidden() is a new static method that returns if a path is 
  hidden, i.e. if its filename or one of its directory components starts 
  with a dot.

[GB.FORM]
* NEW: Setting an hidden path to a DirChooser or FileChooser automatically 
  toggles the ShowHidden property if needed.


git-svn-id: svn://localhost/gambas/trunk@7414 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-17 01:59:12 +00:00
Benoît Minisini
4508817f56 [DEVELOPMENT ENVIRONMENT]
* NEW: When compiling changes the project information metadata, only reload 
  forms.
* NEW: Support for future webforms.
* NEW: About dialog: Mouse wheel now scrolls the text in both direction.

[COMPILER]
* NEW:  Support for future webforms.


git-svn-id: svn://localhost/gambas/trunk@7407 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-11 08:18:22 +00:00
Benoît Minisini
01a2b34270 [DEVELOPMENT ENVIRONMENT]
* NEW: Project exported control icons are thiner.

[INTERPRETER]
* NEW: Release classes having an array class if that array class has no 
  instance.

[GB.GUI.BASE]
* NEW: _Gui._Quit is a new method called by the GUI components during their
  "quit" hook. At the moment it releases Drag.Icon picture and voids the 
  Picture cache.


git-svn-id: svn://localhost/gambas/trunk@7403 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-10 02:02:12 +00:00
Benoît Minisini
bc5933f905 [INTERPRETER]
* BUG: Fix a crash when trying twice accessing a collection without the 
  good number of arguments.


git-svn-id: svn://localhost/gambas/trunk@7395 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-08 00:55:44 +00:00
Benoît Minisini
f073b22eae [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly catch errors when reloading a file.

[INTERPRETER]
* BUG: Fix a possible crash when removing an element from an enumerated 
  collection.


git-svn-id: svn://localhost/gambas/trunk@7392 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-06 23:29:35 +00:00
Benoît Minisini
f19a549361 [CONFIGURATION]
* BUG: Forgot to put VERSION file in the source package file list.

[COMPILER]
* NEW: Trim the VERSION file before inserting into the ".startup" file.


git-svn-id: svn://localhost/gambas/trunk@7390 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-05 17:24:34 +00:00
Benoît Minisini
beeabd049f [DEVELOPMENT ENVIRONMENT]
* NEW: Put the WebView icon in the IDE.

[GB.FORM.EDITOR]
* OPT: Don't raise Cursor event if we are between calls to Begin / End or 
  during an undo or redo process.

[GB.GUI.QT.WEBKIT]
* NEW: No need to put the WebView icon there.


git-svn-id: svn://localhost/gambas/trunk@7367 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-29 15:03:16 +00:00
Benoît Minisini
afd98e3f55 [CONFIGURATION]
* NEW: Redraw many control icons.


git-svn-id: svn://localhost/gambas/trunk@7366 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-29 12:53:38 +00:00
Benoît Minisini
ade4524d67 [DEVELOPMENT ENVIRONMENT]
* BUG: Property sheet: Fix text property edit dialog.
* BUG: Property sheet: Double-clicking on read-only properties does not 
  open the text property edit dialog anymore.
  
[GB.DEBUG]
* BUG: Fix profiler error messages.
  
[GB.QT4]
* BUG: Startup forms with Visible property set to FALSE are not shown at
  startup anymore.
  
[GB.QT5]
* BUG: Startup forms with Visible property set to FALSE are not shown at
  startup anymore.


git-svn-id: svn://localhost/gambas/trunk@7355 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-27 15:11:50 +00:00
Benoît Minisini
0feacc4358 [GB.DBUS]
* BUG: Fix some memory leaks when using DBusObject and DBusVariant in a 
  method call or a reply.
* BUG: The message observer of a DBusObject may disappear while processing
  a message. Take that into account.


git-svn-id: svn://localhost/gambas/trunk@7352 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-27 02:39:16 +00:00
Benoît Minisini
966385aaa5 [GB.DB]
* BUG: Connections are now always searched in the main project archive.


git-svn-id: svn://localhost/gambas/trunk@7347 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-26 08:45:31 +00:00
Benoît Minisini
647c900268 [INTERPRETER]
* NEW: Relative paths beginning with ".../" always refer to files stored in 
  the main project archive.


git-svn-id: svn://localhost/gambas/trunk@7346 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-26 08:43:50 +00:00
Benoît Minisini
e838264954 [CONFIGURATION]
* BUG: Register mimetype icon with correct sizes.

[INTERPRETER]
* BUG: Fix Component.FindFromPath() method signature.


git-svn-id: svn://localhost/gambas/trunk@7340 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-25 18:35:44 +00:00
Benoît Minisini
faca7d2408 [CONFIGURATION]
* BUG: Uninstall correctly remove templates and XML appdata file.
* NEW: New Gambas icons.

[DEVELOPMENT ENVIRONMENT]
* BUG: New class CDocumentation that allows to handle distinct sets of 
  component metadata. That way, offline documentation does not interact 
  with automatic completion and method signature popups anymore.
* NEW: Project property dialog: Add two more environment variable 
  definitions.
* NEW: New Gambas icons.
* NEW: Remove now useless icons of the old project creation dialog.

[WIKI CGI SCRIPT]
* BUG: Fix and enhance automatic generation of Gambas application package 
  dependencies.


git-svn-id: svn://localhost/gambas/trunk@7336 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-24 23:52:22 +00:00
Benoît Minisini
efeed5e7a8 [GB.DB]
* BUG: Result in creation mode works again.


git-svn-id: svn://localhost/gambas/trunk@7335 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-24 15:03:09 +00:00
Benoît Minisini
85a0b1f02b [GB.DB]
* NEW: Finish support of "forward-only" Result objects.

[GB.DB.ODBC]
* NEW: Clean-up a bit the query_fill() function.


git-svn-id: svn://localhost/gambas/trunk@7334 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-24 00:22:57 +00:00
Benoît Minisini
dc46e9d20b [INTERPRETER]
* BUG: Val() correctly detect dates now, when the date or the time 
  separator is a space character.


git-svn-id: svn://localhost/gambas/trunk@7326 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-19 22:55:43 +00:00
Benoît Minisini
abf1ba8cbf [DEVELOPMENT ENVIRONMENT]
* NEW: New project creation dialog based on template projects located in
  '/usr/share/gambas3/template' and in '~/.local/share/gambas3/template'.
  These are default directories, they may change according to your gambas
  installation prefix and home directory configuration.

[TEMPLATES]
* NEW: Project templates. There are only two at the moment, others will
  come.

git-svn-id: svn://localhost/gambas/trunk@7321 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-18 00:41:43 +00:00