Commit graph

4095 commits

Author SHA1 Message Date
Benoît Minisini
a2c9e25e00 [COMPILER]
* BUG: Fix array creation operator when it has no arguments.

[INTERPRETER]
* BUG: Fix array creation operator when it has no arguments.


git-svn-id: svn://localhost/gambas/trunk@6114 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-28 16:17:40 +00:00
Radek Fryšták
412d19069c [DEVELOPMENT ENVIRONMENT]
* NEW: update czech translation.


git-svn-id: svn://localhost/gambas/trunk@6113 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-28 13:59:36 +00:00
Benoît Minisini
3768087f67 [COMPILER]
* BUG: Prevent NEW and READ from being used without an affectation.


git-svn-id: svn://localhost/gambas/trunk@6112 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-28 01:08:58 +00:00
Benoît Minisini
a02f6411a5 [GB.QT4]
* BUG: Correctly free the internal clipboard formats list when the 
  clipboard contents changes. This avoids possible crashes.


git-svn-id: svn://localhost/gambas/trunk@6111 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-28 00:24:57 +00:00
Benoît Minisini
2daefc5fa0 [INTERPRETER]
* BUG: Fix maximum number of array declaration in the same class.
* NEW: Array and Collection constructor operator [ ... ] now can take any 
  number of arguments. It is only limited by the maximum function size, 
  which leads for example to about 32000 elements for a short array.


git-svn-id: svn://localhost/gambas/trunk@6110 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-27 23:46:37 +00:00
Tobias Boege
3bece35d9b [GB.INOTIFY]
* NEW: Rename the Inotify class and descendants to PathWatch.
* NEW: Use array semantics instead of properties to manipulate event masks.
  These can operate on multiple flags simultaneously now.
* OPT: Determine the default event mask for a PathWatch object by the event
  handlers defined for it (* not working ATM).
* OPT: Save a string copy.



git-svn-id: svn://localhost/gambas/trunk@6109 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-27 21:14:58 +00:00
Benoît Minisini
000247d02c [GB.SDL.SOUND]
* NEW: Music.State is a new property that returns the music state as one of
  the following constant: Music.Stopped, Music.Playing or Music.Paused.


git-svn-id: svn://localhost/gambas/trunk@6108 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-27 18:46:09 +00:00
Benoît Minisini
d1aeb73fde [GB.SDL]
* BUG: Don't create a default TTF font for each draw event!


git-svn-id: svn://localhost/gambas/trunk@6107 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-27 13:00:36 +00:00
Benoît Minisini
b596527086 [GB.GUI.BASE]
* BUG: GridView: Dnd now works as expected even in multiple selection mode.


git-svn-id: svn://localhost/gambas/trunk@6106 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-26 23:24:21 +00:00
Benoît Minisini
52479d72c9 [GB.GTK]
* BUG: The MouseDrag event can be cancelled now, like with gb.qt4.

[GB.GTK3]
* BUG: The MouseDrag event can be cancelled now, like with gb.qt4.


git-svn-id: svn://localhost/gambas/trunk@6105 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-26 23:23:35 +00:00
Benoît Minisini
7b6ef84f3c [GB.QT4]
* BUG: Text can be drop on TextBox and TextArea controls again, unless 
  their Drop property is set. In that case, the dnd behaviour is entirely
  controled by Gambas.


git-svn-id: svn://localhost/gambas/trunk@6104 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-26 23:22:08 +00:00
Benoît Minisini
c334b258c1 [GB.QT4]
* BUG: Style.PaintBox() correctly honors its color argument again.


git-svn-id: svn://localhost/gambas/trunk@6103 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-26 23:19:55 +00:00
Benoît Minisini
e4dc284c55 [GB.GUI.BASE]
* NEW: ProgressBar: Add a Pulse property, that makes the control display a 
  pulsing frame instead of the normal progress bar.


git-svn-id: svn://localhost/gambas/trunk@6102 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-25 02:58:12 +00:00
Benoît Minisini
976b72d87f [DEVELOPMENT ENVIRONMENT]
* BUG: Packager: Ensure that *.deb changelog does not use lines longer than 
  80 columns.


git-svn-id: svn://localhost/gambas/trunk@6101 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-25 01:47:38 +00:00
Benoît Minisini
2f2ca62347 [GB.GTK]
* BUG: Controls inside TabStrip now are detected correctly and are not 
  insensitive anymore.

[GB.GTK3]
* BUG: Controls inside TabStrip now are detected correctly and are not 
  insensitive anymore.


git-svn-id: svn://localhost/gambas/trunk@6100 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-24 23:54:53 +00:00
Fabien Bodard
8bfa98f865 [GB.REPORT]
* BUG: The ReportBrush.Color function really return a ReportBrush class.


git-svn-id: svn://localhost/gambas/trunk@6099 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-23 10:32:48 +00:00
Benoît Minisini
1736610529 [DEVELOPMENT ENVIRONMENT]
* BUG: Read-only files now can be reloaded.
* BUG: Form editor: The lock button is now hidden if the form is read-only.
* BUG: Form editor: The read-only status is correctly refreshed in all 
  cases now.
* NEW: Add a "paste special" entry in the popup menu of the paste button.

git-svn-id: svn://localhost/gambas/trunk@6098 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-23 10:12:24 +00:00
Tobias Boege
119ce88c3b [GB.INOTIFY]
* NEW: All event signatures got a Boolean argument to support the IN_ISDIR
  flag set by the kernel indicating that the subject was a directory.



git-svn-id: svn://localhost/gambas/trunk@6097 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-22 14:51:56 +00:00
Benoît Minisini
dd3688c9f0 [DEVELOPMENT ENVIRONMENT]
* BUG: Write project configuration before making an executable or a source 
  archive, so that their contents is up to date.


git-svn-id: svn://localhost/gambas/trunk@6096 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-22 02:39:10 +00:00
Benoît Minisini
220f821d9f [GB.GTK]
* BUG: TrayIcon: Handle DblClick and MouseWheel events correctly.

[GB.GTK3]
* BUG: TrayIcon: Handle DblClick and MouseWheel events correctly.


git-svn-id: svn://localhost/gambas/trunk@6095 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-22 02:32:08 +00:00
Benoît Minisini
d2e0c0ec5f [GB.GTK3]
* BUG: Add an automatic widget grab on button press, because GTK+3 do not 
  them anymore!
* BUG: Handle both borderless TextBox and ComboBox controls. Add a specific
  fix for Clearlooks-Phenix theme.



git-svn-id: svn://localhost/gambas/trunk@6094 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-22 01:18:35 +00:00
Benoît Minisini
1a8485e3a6 [GB.GTK]
* NEW: TextArea: Remove extra margin around text.
* BUG: TextArea: Border is drawn as expected now.

[GB.GTK3]
* BUG: Style.FrameWidth is correctly computed now.
* BUG: Borderless TextBox are drawn as expected now.
* BUG: TextArea: Border is drawn as expected now.


git-svn-id: svn://localhost/gambas/trunk@6093 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-21 01:58:49 +00:00
Sebastian Kulesz
a760506fa0 [GB.LOGGING]
* BUG: Fix out-of-bounds error when using the formatter.


git-svn-id: svn://localhost/gambas/trunk@6092 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-20 19:55:06 +00:00
Benoît Minisini
1b018f7bf1 [GB.FORM]
* NEW: TabPanel: Using the mouse wheel on the tab buttons does not steal 
  the focus anymore.

[GB.GTK]
* NEW: Application.PreviousControl is a new property that returns the 
  previous control having the focus.

[GB.GTK3]
* NEW: Application.PreviousControl is a new property that returns the 
  previous control having the focus.

[GB.QT4]
* NEW: Application.PreviousControl is a new property that returns the 
  previous control having the focus.


git-svn-id: svn://localhost/gambas/trunk@6091 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-20 19:32:24 +00:00
Benoît Minisini
9e4aed45e4 [INTERPRETER]
* BUG: If an error is raised inside a TRY context, the Error.Backtrace 
  property is reset to NULL. It does not keep its previous value anymore.


git-svn-id: svn://localhost/gambas/trunk@6090 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-20 00:05:33 +00:00
Fabien Bodard
5dfef252d5 [GB.REPORT]
* NEW: A New widget ReportPageBreak allow to break a page when you need
* NEW: Report.Print take now an optional argument Printer that allow
  to give an externally initialised printer. In tis case the dialog is not
  shown.
* BUG: Now ReportLabel rotation work fine and the angle is given in Rad
* BUG: You can now add an argument to the _New sub. Be carrefull the _New 
  event is called one time only at the report loading.
* BUG: The custom size work but there is some bugs with the printer.configure
  that setup the page size to A4 :-/



git-svn-id: svn://localhost/gambas/trunk@6089 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-19 21:44:48 +00:00
Benoît Minisini
35062bb200 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix background of CoordBox controls.
* BUG: Image editor: Fix text tool.
* NEW: Image editor: Text alignment.
* BUG: Image editor: Scaling selection is done from the top left corner by 
  default, and from the selection center only if you press the SHIFT key.
* NEW: Image editor: The mouse wheel now zooms the image.
* BUG: Project property dialog: Fix component list layout.
* NEW: Some new backgrounds.

[GB.FORM]
* NEW: TabPanel: Now there are a left and a right arrow to navigate through 
  the tabs.


git-svn-id: svn://localhost/gambas/trunk@6088 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-19 20:25:16 +00:00
Benoît Minisini
f027f25706 [GB.QT4]
* BUG: TextLabel: Automatic size is correctly computed now. Apparently 
  there are internal changes in the Qt library that made it false.


git-svn-id: svn://localhost/gambas/trunk@6087 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-19 17:57:02 +00:00
Fabien Bodard
1fca41f693 [DEVELOPMENT ENVIRONMENT]
* BUG: The report editor take the ReportLabel rotate angle (in degree)
  into account.


git-svn-id: svn://localhost/gambas/trunk@6086 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-17 21:08:24 +00:00
Benoît Minisini
ef1143cd81 [GB.SDL]
* NEW: Remove the delay when 'Stop Event' is called during the Draw event 
  handler.
* NEW: The Gambas event loop is now called with a delay of 1 ms. So it will
  use a busy waiting instead of sleeping the process.


git-svn-id: svn://localhost/gambas/trunk@6085 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-16 22:05:12 +00:00
Benoît Minisini
de472c0e2a [COMPILER]
* NEW: Allow a CASE expression list to spread among the next line provided 
  that the current line ends with a comma.


git-svn-id: svn://localhost/gambas/trunk@6084 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-14 22:43:35 +00:00
Benoît Minisini
a5cdcbae28 [GB.GTK]
* BUG: The TextArea.Text property does not waste memory anymore.


git-svn-id: svn://localhost/gambas/trunk@6083 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-14 22:26:51 +00:00
Benoît Minisini
27694b5925 [GB.FORM]
* BUG: gb.form should compile correctly again

[GB.FORM.MDI]
* OPT: Workspace: Make the background flickering less.


git-svn-id: svn://localhost/gambas/trunk@6082 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-14 19:54:49 +00:00
Benoît Minisini
de0ff1afc1 [INTERPRETER]
* BUG: Correctly close the standard error output of an ending process if 
  its standard output has already been closed.


git-svn-id: svn://localhost/gambas/trunk@6081 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-14 12:06:39 +00:00
Benoît Minisini
8c6cf71838 [DEVELOPMENT ENVIRONMENT]
* NEW: ImageEditor: A text tool has been added.
* BUG: The "open terminal" and "open file browser" toolbar icons now work 
  as expected.

[WEBSITE MAKER]
* NEW: Update for 3.5.2 release.

[INTERPRETER]
* NEW: Successives spaces in a regular expression pattern now acts like a 
  single space.

[GB.DRAW]
* NEW: Paint.PathOutline is a new property that returns a array of polygons 
  corresponding to the current drawing path.

[GB.FORM]
* NEW: FontBox is a new control that allows to select a font from a text 
  field.
* NEW: The FontChooser control now adapts its interface if its height is 
  too small.

[GB.GTK]
* NEW: Paint.PathOutline is a new property that returns a array of polygons 
  corresponding to the current drawing path.

[GB.GUI.BASE]
* NEW: Add a little left and right padding to GridView cells.
* NEW: ListBox now uses the default selected background color.

[GB.QT4]
* NEW: Paint.PathOutline is a new property that returns a array of polygons 
  corresponding to the current drawing path.


git-svn-id: svn://localhost/gambas/trunk@6080 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-12 01:59:49 +00:00
Benoît Minisini
e18c2016e7 [GB.GTK]
* BUG: Menu.Children.Clear() works again.

[GB.GTK.OPENGL]
* BUG: GlArea can take the focus now.


git-svn-id: svn://localhost/gambas/trunk@6077 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-10 22:30:33 +00:00
Fabien Bodard
cf7da09a46 [GB.REPORT]
* BUG: The fixed elements at the end of the page are now computing correctly
  theire size.
* BUG: ReportLabel now use Paint.TextSize instead of Paint.TextExtend to get
  the text size.


git-svn-id: svn://localhost/gambas/trunk@6076 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-08 21:17:44 +00:00
Fabien Bodard
7c5aecff77 [GB.REPORT]
* BUG: Now ReportLabel take multiline text into account
  for it height computing.


git-svn-id: svn://localhost/gambas/trunk@6075 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-08 20:52:23 +00:00
Benoît Minisini
e28bd14ae3 [GB.GTK]
* BUG: Fix memory leak when loading images without alpha channel.


git-svn-id: svn://localhost/gambas/trunk@6071 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-08 00:00:31 +00:00
Benoît Minisini
ce4ac176ef [GB.OPENGL]
* BUG: GL.GetString() now raises an error if the glGetString() function 
  fails.


git-svn-id: svn://localhost/gambas/trunk@6070 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-07 20:45:18 +00:00
Benoît Minisini
00ae88f8dc [INTERPRETER]
* BUG: Be virtual even the first time when calling the [] operator!


git-svn-id: svn://localhost/gambas/trunk@6069 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-06 16:57:20 +00:00
Benoît Minisini
09210497db [GB.GTK3]
* BUG: Style.PaintPanel() does not crash anymore. But it does not draw the
  focus frame anymore... :-/


git-svn-id: svn://localhost/gambas/trunk@6068 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-06 00:48:49 +00:00
Benoît Minisini
e3dfc5b9f6 [GB.GTK]
* NEW: GTK3+ support continues.


git-svn-id: svn://localhost/gambas/trunk@6064 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-05 19:23:41 +00:00
Benoît Minisini
5b7b339424 [GB.QT4]
* BUG: Foreground and background colors now works as expected on ComboBox 
  and SpinBox controls.


git-svn-id: svn://localhost/gambas/trunk@6062 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-05 10:48:33 +00:00
Benoît Minisini
a7afee1bb8 [DEVELOPMENT ENVIRONMENT]
* BUG: Form editor: When double-clicking on a control, don't crash if a 
  there is a mistake in its default event declaration. Just display a 
  warning message on the standard error output.
* NEW: Option dialog: Use SwitchButton instead of ComboBox.
* NEW: Some new backgrounds.

[GB.FORM]
* BUG: SwitchButton now raises its Click event.


git-svn-id: svn://localhost/gambas/trunk@6060 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-05 09:22:11 +00:00
Benoît Minisini
0b2d37ca68 [DEVELOPMENT ENVIRONMENT]
* BUG: Image editor: Don't left the editor in an inconsistent state after a 
  paste has been done.


git-svn-id: svn://localhost/gambas/trunk@6059 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-05 09:19:08 +00:00
Benoît Minisini
9da017f719 [GB.FORM]
* NEW: SwitchButton is a new control that displays an ON/OFF button.

[GB.GTK]
* NEW: Rework Style.PaintBox() method.
* NEW: Style.StateOf() is a new method that returns the state flags of a 
  specific control.
* NEW: Style.BackgroundOf() is a new method that returns the actual 
  background color of a specific control.
* NEW: Style.ForegroundOf() is a new method that returns the actual 
  background color of a specific control.
* NEW: All state flag constants of the Draw class are now implemented in 
  the Style class.

[GB.GTK3]
* NEW: GTK3+ support continues! By te way, GTK3+ theming support is a 
  fucking nightmare.

[GB.QT4]
* NEW: Rework Style.PaintBox() method.
* NEW: Style.StateOf() is a new method that returns the state flags of a 
  specific control.
* NEW: Style.BackgroundOf() is a new method that returns the actual 
  background color of a specific control.
* NEW: Style.ForegroundOf() is a new method that returns the actual 
  background color of a specific control.
* NEW: All state flag constants of the Draw class are now implemented in 
  the Style class.

[GB.WEB]
* NEW: Session.Exist() is a new method that returns if a specific key is 
  stored in the session.


git-svn-id: svn://localhost/gambas/trunk@6058 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-05 00:08:06 +00:00
Benoît Minisini
28cdb922b6 [GB.GTK3]
* BUG: gb.gtk3 should finally compile with GTK+ 3.10. Maybe...


git-svn-id: svn://localhost/gambas/trunk@6057 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-02 21:38:37 +00:00
Benoît Minisini
018b33696b [INTERPRETER]
* BUG: Fix a crash when using CStr() on an object having a conversion 
  function.


git-svn-id: svn://localhost/gambas/trunk@6056 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-02 21:37:44 +00:00
Benoît Minisini
e0469073ab [GB.GSL]
* BUG: Polynomial: Create a new void polymonial does lead to a crash 
  anymore.


git-svn-id: svn://localhost/gambas/trunk@6055 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-02 21:18:08 +00:00