Commit graph

5337 commits

Author SHA1 Message Date
Benoît Minisini
be68b85700 [CONFIGURATION]
* BUG: Add gb.web.form to the list of components to compile.


git-svn-id: svn://localhost/gambas/trunk@7478 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-15 03:13:14 +00:00
Benoît Minisini
25cdbaa492 [DEVELOPMENT ENVIRONMENT]
* NEW: Form editor: Decide that a control has a parent according to its
  constructor, not to its Virtual state.
* BUG: Form editor: Correctly handle color properties with an alpha value.
* NEW: The '_HiddenControls' property of form controls now can hide
  controls from any other components.

[BENCHMARKS]
* NEW: Do less repeats in the 'string 'benchmark.
* NEW: Update the Gambas version of 'mandelbrot' and 'polynom' benchmarks.

[GB.WEB.FORM]
* NEW: A small Color class.
* BUG: WebButton now uses the 'gw-button' CSS class.
* BUG: Fix WebCheckBox rendering.
* NEW: WebRadioButton is a new control that implements a radio button.
* NEW: WebTimer is a new virtual control that implements a timer on the
  browser client side.
* NEW: Implement read-write WebComboBox.
* NEW: WebControl now has Background and Foreground properties.
* BUG: Hidden controls do not refresh. A control is hidden if it is not
  visible or if one of its parent is not visible.
* NEW: Controls can render JavaScript code.
* NEW: WebTextBox now uses the 'gw-textbox' CSS class.


git-svn-id: svn://localhost/gambas/trunk@7477 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-14 23:22:10 +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
90c8b0df40 [GB.FORM]
* BUG: Stock: Fix breeze icon theme support.


git-svn-id: svn://localhost/gambas/trunk@7475 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-13 14:18:27 +00:00
Benoît Minisini
20a827d9d2 [GB.WEB.FORM]
* NEW: Enabled is now a property of the WebControl class.
* NEW: Hidden controls are not rendered anymore.
* NEW: WebCheckBox is a new control that implements a check box.
* NEW: WebComboBox is a new control that implements a combo-box. It is
  only read-only at the moment.


git-svn-id: svn://localhost/gambas/trunk@7474 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-12 19:27:04 +00:00
Benoît Minisini
0f1511be42 [DEVELOPMENT ENVIRONMENT]
* NEW: Form editor: Text property is now applied for "draw with" controls.


git-svn-id: svn://localhost/gambas/trunk@7473 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-12 19:23:49 +00:00
Benoît Minisini
badd6fd945 [GB.FORM]
* BUG: Stock: Fix how theme-specific icons are handled. They are now tried
  on every possible size and other non theme-specific icons are ignored.


git-svn-id: svn://localhost/gambas/trunk@7472 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-12 19:21:35 +00:00
Fabien Bodard
69b29177f8 [DEVELOPMENT ENVIRONMENT]
* BUG: Allow the short command for chromium.



git-svn-id: svn://localhost/gambas/trunk@7471 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-12 13:29:08 +00:00
Benoît Minisini
619a92e8f7 [DEVELOPMENT ENVIRONMENT]
* BUG: Components can now use proxy controls to be displayed in the form
  editor even if they don't depend on a GUI component.
* BUG: Component containers arrangement is now based on the symbol names of
  the Arrange class, not on the symbol values.

[WIKI CGI SCRIPT]
* NEW: Automatic generation of IDE dependencies.

[GB.DESKTOP]
* BUG: Remove a debugging stop.

[GB.WEB.FORM]
* NEW: WebTabPanel is a new TabStrip-like container.
* NEW: Support for multi-containers.
* NEW: WebControl.Ignore is a new property that makes a control use CSS
  absolute position.
* NEW: Emit refresh code before event javascript reply.


git-svn-id: svn://localhost/gambas/trunk@7470 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-12 02:27:09 +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
5489dc01ee [GB.UTIL]
* BUG: Class.Stat() can now be used several times correctly.


git-svn-id: svn://localhost/gambas/trunk@7466 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-11 01:21:10 +00:00
Benoît Minisini
046e1873f6 [DEVELOPMENT ENVIRONMENT]
* BUG: Don't crash if the VERSION file is incorrect. Display an error
  message instead.

[GB.FORM]
* NEW: MessageView: Ignore a message if its contents is the same as the
  currently displayed message.


git-svn-id: svn://localhost/gambas/trunk@7465 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-11 01:06:35 +00:00
Benoît Minisini
3ec3e2b9b5 [GB.WEB.FORM]
* NEW: Button.Enabled is a new property that allows to disable a button.
* BUG: Fix container style generation.
* NEW: WebControl have a Width and Height properties now, which are
  synoymous for their style property counterparts.
* OPT: WebControl do not send events if there are no event handler inside
  the server code.
* NEW: WebTextBox is a new control that implements a text box.
* NEW: New 'update' message from the client to update a control property in
  the server.
* NEW: WebForm.Close() is a new method that resets the form state, and try
  to close it. Note that the browser prevent windows to be closed by a
  script if they haven't been opened by a script.
* NEW: Control refresh in the browser tries to preserve the current active
  element and its selection.


git-svn-id: svn://localhost/gambas/trunk@7464 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-11 00:45:49 +00:00
Benoît Minisini
e6c8ed8cff [DEVELOPMENT ENVIRONMENT]
* BUG: Contextual help (F2) on classes belonging to the project works
  correctly now.


git-svn-id: svn://localhost/gambas/trunk@7463 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-11 00:18:14 +00:00
Benoît Minisini
5e9a9a2d10 [GB.WEB.FORM]
* BUG: Application state is now stored correctly and support different
  forms at the same time.


git-svn-id: svn://localhost/gambas/trunk@7462 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-10 04:27:36 +00:00
Benoît Minisini
fe1aaed25d [DEVELOPMENT ENVIRONMENT]
* BUG: Don't raise an error while filling the editor procedure combo-box.
  Just fill it with nothing.
* BUG: Use the true family name as class name for the root control of a
  form.

[GB.HTTPD]
* NEW: The standard error output of CGI scripts is not redirected to the
  HTTP client anymore, so that the IDE catch debugging messages printed by
  the DEBUG instruction.

[GB.UTIL.WEB]
* NEW: JS is a new class that quotes a string for javascript when used as a
  static function.

[GB.WEB.FORM]
* NEW: Control can raise events from the browser to the application.
* NEW: Control properties changed during an event are stored in the session
  to make them permanent.
* NEW: Refreshing a control during an event sends the updated HTML to them
  browser.


git-svn-id: svn://localhost/gambas/trunk@7461 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-10 03:57:44 +00:00
Benoît Minisini
bd73d5ddcf [GB.FORM.EDITOR]
* OPT: TextEditor: Try to detect if the desktop is remote, and disable all
  optimizations based on image caches in that case.


git-svn-id: svn://localhost/gambas/trunk@7460 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-09 23:40:47 +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
Tobias Boege
8b58e07941 [GB.NET.CURL]
* NEW: HttpClient.Head() is a new method to issue a HTTP HEAD request.



git-svn-id: svn://localhost/gambas/trunk@7458 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-08 19:57:18 +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
2343770b6f [GB.FORM.EDITOR]
* BUG: TextEditor: Fix 'page up' and 'page down' cursor moves.
* OPT: TextEditor: Each editor has now an internal line image cache to
  speed up redraws. This image cache is cleared as soon as the editor
  loses the focus, to save memory, or five seconds after the last redraw.


git-svn-id: svn://localhost/gambas/trunk@7456 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-07 20:57:54 +00:00
Benoît Minisini
2cec42ba01 [GB.FORM.EDITOR]
* OPT: Refresh only the concerned lines when the selection changes.


git-svn-id: svn://localhost/gambas/trunk@7455 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-05 22:51:19 +00:00
Benoît Minisini
f3c7a87dcf [GB.DB.POSTGRESQL]
* BUG: Don't send '00-00-0000' for date/time values whose year is zero.
  Just send the time to the PostgreSQL server.


git-svn-id: svn://localhost/gambas/trunk@7454 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-05 16:39:18 +00:00
Benoît Minisini
0e417f489a [DEVELOPMENT ENVIRONMENT]
* BUG: Packager: Extra directories are now correctly defined in Debian
  packages.


git-svn-id: svn://localhost/gambas/trunk@7450 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-03 18:57:20 +00:00
Benoît Minisini
0f5e67b85e [GB.QT4]
* BUG: Disable warning messages when rendering a SVG file.

[GB.QT5]
* BUG: Disable warning messages when rendering a SVG file.


git-svn-id: svn://localhost/gambas/trunk@7449 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-03 16:13:45 +00:00
Benoît Minisini
9d7e77214b [WEB SITE MAKER]
* NEW: New look.

[WIKI CGI SCRIPT]
* NEW: Hall of fame is now generated from the wiki.
* NEW: Accounts are now managed by the bugtracker.
* NEW: Registration is now managed by the bugtracker.


git-svn-id: svn://localhost/gambas/trunk@7448 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-03 13:09:23 +00:00
Benoît Minisini
8a8e5cbdd6 [DEVELOPMENT ENVIRONMENT]
* BUG: Software farm: Remove sort by vote.
* BUG: Use the 'file' stock icon at correct size when making a project file
  icon.


git-svn-id: svn://localhost/gambas/trunk@7447 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-03 09:31:50 +00:00
Benoît Minisini
5ab0ae6858 [GB.FORM]
* BUG: Fix stock icon templates.
* NEW: Print each loaded stock icon when Stock.Debug is set.


git-svn-id: svn://localhost/gambas/trunk@7446 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-03 09:15:51 +00:00
Benoît Minisini
0b70c0d37c [BENCHMARKS]
* NEW: Add a new 'string' benchmark.


git-svn-id: svn://localhost/gambas/trunk@7442 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-03 02:02: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
ebaf5d5ac8 [BENCHMARKS]
* NEW: Do less iterations in benchmarks to get the result faster.
* BUG: Fix 'sort.pl' bench.


git-svn-id: svn://localhost/gambas/trunk@7438 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-31 01:02:58 +00:00
Benoît Minisini
8a0146801b [DEVELOPMENT ENVIRONMENT]
* BUG: Packager: Correctly handle descriptions having newlines inside.


git-svn-id: svn://localhost/gambas/trunk@7437 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-30 23:58:31 +00:00
Benoît Minisini
6e6631bdf7 [WEB SITE MAKER]
* NEW: New website design, beta version.


git-svn-id: svn://localhost/gambas/trunk@7436 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-26 14:49:39 +00:00
Fabien Bodard
715a38f607 [SCRIPTER]
* BUG: Now code in arg is correctly quoted.
  


git-svn-id: svn://localhost/gambas/trunk@7435 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-25 16:42:57 +00:00
Benoît Minisini
6114149896 [DEVELOPMENT ENVIRONMENT]
* BUG: Reloading a class or module file now keep the breakpoints.


git-svn-id: svn://localhost/gambas/trunk@7434 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-24 21:28:02 +00:00
Benoît Minisini
ff78386557 [DEVELOPMENT ENVIROMNENT]
* BUG: Use MaskBox with a filter to enter vendor name and vendor prefix in
  option dialog, packager wizard.
* BUG: Use MaskBox with a filter to enter software farm tags.

[WIKI CGI SCRIPT]
* NEW: Black & white colors and layout redesign.
* OPT: Add cache headers to the responses.


git-svn-id: svn://localhost/gambas/trunk@7433 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-24 21:20:08 +00:00
Benoît Minisini
bd3dfd4fa4 [GB.FORM]
* NEW: MaskBox.Filter is a new property that takes a LIKE regular 
  expression describing the allowed characters. By default all characters
  are allowed.
* NEW: MaskBox now raises the Filter event with a character as argument. If
  this event is stopped, then the character is not allowed. By default all
  characters are allowed.

[GB.WEB]
* NEW: Request.Referer is a new property that returns the request referer.
* NEW: Request.UserAgent is a new property that returns the request user 
  agent.


git-svn-id: svn://localhost/gambas/trunk@7432 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-24 21:09:13 +00:00
Benoît Minisini
cb58f0f072 [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly fix the library "Compatible until" option of the project 
  property dialog.


git-svn-id: svn://localhost/gambas/trunk@7430 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-21 21:16:43 +00:00
Benoît Minisini
0b2383c255 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix the library "Compatible until" option of the project property 
  dialog.
* NEW: Don't display the wiki language combo-box in the help browser.


git-svn-id: svn://localhost/gambas/trunk@7429 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-21 21:14:33 +00:00
Benoît Minisini
5f9e87da54 [GB.OPENAL]
* BUG: Fix return value of Al.GetBufferi(), Al.GetSourcei() and 
  Al.GetListeneri().


git-svn-id: svn://localhost/gambas/trunk@7428 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-21 20:25:44 +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
297a3a6a15 [DEVELOPMENT ENVIRONMENT]
* NEW: Allow project directories to be moved.


git-svn-id: svn://localhost/gambas/trunk@7425 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-18 13:16:04 +00:00
Benoît Minisini
ff932bc1c6 [DEVELOPMENT ENVIRONMENT]
* BUG: Cutting & pasting source files now works as expected.
* NEW: A child class is now displayed in the project tree under its parent 
  class only if they are in the same directory. Consequently, dragging a 
  child class to any directory is now possible.


git-svn-id: svn://localhost/gambas/trunk@7424 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-18 09:43:06 +00:00
Benoît Minisini
39e1c4b060 [DEVELOPMENT ENVIRONMENT]
* BUG: Reloading a file now correctly resets the procedure combo.
* BUG: Reverting a form now reverts the class file too.


git-svn-id: svn://localhost/gambas/trunk@7423 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-18 09:09:32 +00:00
Benoît Minisini
c06e1339d6 [DEVELOPMENT ENVIRONMENT]
* NEW: Larger connection properties dialog.


git-svn-id: svn://localhost/gambas/trunk@7422 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-18 00:39:53 +00:00