Commit graph

4314 commits

Author SHA1 Message Date
Tobias Boege
f24c9c7f3a [GB.NCURSES]
* BUG: Reset the "watched fd" variable when a watch ends.



git-svn-id: svn://localhost/gambas/trunk@6135 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-05 16:27:23 +00:00
Benoît Minisini
aadf50a477 [GB.GTK]
* BUG: The printer configuration dialog does not crash anymore.
* BUG: Remove some GLib warnings when displaying the printer configuration 
  dialog.


git-svn-id: svn://localhost/gambas/trunk@6134 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-05 01:06:37 +00:00
Tobias Boege
75f6bda782 [GB.NCURSES]
* NEW: Add Key.Esc constant to catch escape key (without needing to know
  that it's ASCII 0x1b).



git-svn-id: svn://localhost/gambas/trunk@6133 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-04 20:02:50 +00:00
Tobias Boege
f4c1e52c6d [GB.NCURSES]
* BUG: Initialise the Screen singleton's properties.



git-svn-id: svn://localhost/gambas/trunk@6132 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-04 19:42:05 +00:00
Tobias Boege
b598d4d94a [GB.NCURSES]
* BUG: Respect Window.Attributes when changing Window.{Fore,Back}ground.



git-svn-id: svn://localhost/gambas/trunk@6131 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-04 18:37:29 +00:00
Tobias Boege
3602e25387 [GB.NCURSES]
* BUG: Window.Ask() now returns the chosen letter (and not its index) as
  it's documented and ought to be (returning the index does not ease
  translation very much but makes program flow much less obvious).

[EXAMPLES]
* NEW: Pong: Update uses of Window.Ask().



git-svn-id: svn://localhost/gambas/trunk@6130 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-04 16:48:54 +00:00
Benoît Minisini
cd9babdeeb [EXAMPLES]
* NEW: Embed the gb.markdown code so that the example can be tested on the
  stable version of Gambas. This is temporary!


git-svn-id: svn://localhost/gambas/trunk@6128 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-03 18:32:43 +00:00
Benoît Minisini
1d2147f99c [DEVELOPMENT ENVIRONMENT]
* BUG: Don't freeze when loading an older version of a component project 
  that misses some classes implemented in the newer versions of the 
  component.


git-svn-id: svn://localhost/gambas/trunk@6127 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-02 14:38:51 +00:00
Benoît Minisini
ba56007672 [CONFIGURATION]
* BUG: Add gb.markdown to the 'order' file that lists all components 
  written in Gambas.


git-svn-id: svn://localhost/gambas/trunk@6125 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-02 14:14:02 +00:00
Benoît Minisini
15e64b9484 [GB.NET]
* NEW: SerialPort.InputBufferSize is a new property that returns the number 
  of bytes in the internal input buffer.
* NEW: SerialPort.OutputBufferSize is a new property that returns the 
  number of bytes in the internal output buffer.


git-svn-id: svn://localhost/gambas/trunk@6124 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-02 14:13:00 +00:00
Benoît Minisini
bf62a9ef5e [EXAMPLES]
* NEW: SmallWiki: Don't use the new Response.GetContentTypeFrom() method so
  that the example is usable on older versions of Gambas.
* NEW: SmallWiki: Add a drop shadow on the top header.


git-svn-id: svn://localhost/gambas/trunk@6123 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-02 03:53:08 +00:00
Benoît Minisini
193cbdca1d [DEVELOPMENT ENVIRONMENT]
* NEW: Add gb.markdown component.

[EXAMPLES]
* NEW: SmallWiki: Add support for images.
* BUG: SmallWiki: Many bug fixes and better style sheet.
* NEW: SmallWiki: Use the new gb.markdown component.

[GB.MARKDOWN]
* NEW: This is a new component that implements the Gambas Markdown markup 
  syntax.

[GB.WEB]
* NEW: Response.GetContentTypeFrom() is a new method that returns a MIME 
  type from a path.


git-svn-id: svn://localhost/gambas/trunk@6122 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-02 03:43:57 +00:00
Benoît Minisini
ee7adf9fd4 [EXAMPLES]
* SmallWiki: Add a few comments to explain how the wiki data is stored.


git-svn-id: svn://localhost/gambas/trunk@6121 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-01 23:22:29 +00:00
Benoît Minisini
081d4fc2ad [EXAMPLES]
* NEW: New SmallWiki example. This is a web application that implements a 
  wiki based on the Gambas markdown syntax in less than 25 Kb.


git-svn-id: svn://localhost/gambas/trunk@6120 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-01 23:17:14 +00:00
Benoît Minisini
458b289677 [GB.NET]
* NEW: Flushing a serial port stream now calls tcdrain() so that all 
  pending data is effectively sent.


git-svn-id: svn://localhost/gambas/trunk@6119 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-01 22:36:48 +00:00
Benoît Minisini
2d11aab2db [DEVELOPMENT ENVIRONMENT]
* BUG: Fix word separators in text editor automatic completion.

[EXAMPLES]
* NEW: Start a new Web application example.

[GB.FORM]
* NEW: DateChooser.MinValue is a new property that allows to define the 
  minimum date that can be selected.
* NEW: DateChooser.MaxValue is a new property that allows to define the 
  maximum date that can be selected.
* NEW: DateChooser: The mouse wheel allows to scroll months and days now.
* NEW: LCDLabel: Add support for some new characters.

[GB.GUI.BASE]
* BUG: Draw.End() now resets antialiasing to TRUE.


git-svn-id: svn://localhost/gambas/trunk@6118 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-01 14:25:26 +00:00
Benoît Minisini
b962f1cd90 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix automatic completion with non-ASCII characters.
* NEW: New background image.


git-svn-id: svn://localhost/gambas/trunk@6117 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-31 23:42:01 +00:00
Benoît Minisini
6bb4390500 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix how CoordBox control is drawn.
* BUG: Form editor: Property tool buttons are now hidden correctly.
* NEW: Form editor: Property tool buttons now work accordingly to the type
  of the edited form (Form, Report...).
* BUG: Image editor: The clipboard tab of the image toolbox is updated 
  correctly now.
* BUG: The GUI component menu button is updated correctly in all cases now.
* BUG: Text in ReportLabel is now drawn with antialiasing as expected.


git-svn-id: svn://localhost/gambas/trunk@6116 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-30 23:22:16 +00:00
Benoît Minisini
029fdc7a22 [INTERPRETER]
* NEW: The GB.CanRaise() API now does not take the locked status of the 
  parent object into account anymore. It really checks if an event has an 
  event handler.


git-svn-id: svn://localhost/gambas/trunk@6115 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-29 00:26:09 +00:00
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