Commit graph

4140 commits

Author SHA1 Message Date
Benoît Minisini
513aac869e [GB.GTK]
* BUG: Paint.TextSize() and Paint.RichTextSize() now correctly take into 
  account the device resolution.

[GB.GTK3]
* BUG: Paint.TextSize() and Paint.RichTextSize() now correctly take into 
  account the device resolution.
* BUG: Printer.Configure() now correctly returns FALSE if the "Print" 
  button has been pressed.


git-svn-id: svn://localhost/gambas/trunk@6162 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-16 18:00:32 +00:00
Benoît Minisini
ed9f8be54e [GB.FORM]
* NEW: LCDLabel: Support for new characters.

[GB.GTK]
* BUG: Rich text support is more robust now: it can handle self-closed 
  markups.

[GB.GTK3]
* BUG: Rich text support is more robust now: it can handle self-closed 
  markups.

[GB.MEDIA]
* BUG: According to the GStreamer documentation, you can send an EOS 
  message only while playing.

[GB.QT4]
* BUG: Rich text paragraph margins are now proportional to the font size.


git-svn-id: svn://localhost/gambas/trunk@6161 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-16 15:06:21 +00:00
Benoît Minisini
551ff27eee [GB.MEDIA]
* NEW: If the MediaControl type contains a '/' character, then a 
  MediaFilter is created using that type as filter.
* NEW: Properties having the "Caps" type are now handled everywhere.


git-svn-id: svn://localhost/gambas/trunk@6160 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-16 00:04:44 +00:00
Benoît Minisini
92bd9756a8 [GB.MEDIA]
* BUG: Fix how the end of stream is sent when stopping a pipeline.


git-svn-id: svn://localhost/gambas/trunk@6159 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-15 13:18:28 +00:00
Benoît Minisini
fbf7420851 [GB.MEDIA]
* NEW: MediaPipeline constructor now takes the message bus polling 
  frequency as an optional argument.
* NEW: MediaPipeline.Stop() now force EOS on sources before stopping the
  pipeline.


git-svn-id: svn://localhost/gambas/trunk@6158 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-15 12:38:25 +00:00
Benoît Minisini
33ccdc039a [GB.COMPLEX]
* BUG: Conversion from complex to number now returns the real part if the 
  imaginary part is null, and raises an error otherwise. It does not return
  the complex modulus anymore. Use Abs() for that.


git-svn-id: svn://localhost/gambas/trunk@6157 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-14 23:17:45 +00:00
Benoît Minisini
7406ebb743 [GB.GSL]
* BUG: Conversion from complex to number now returns the real part if the 
  imaginary part is null, and raises an error otherwise. It does not return
  the complex modulus anymore. Use Abs() for that.


git-svn-id: svn://localhost/gambas/trunk@6156 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-14 23:16:24 +00:00
Bruce Bruen
e83fe0bcd0 [GB.DESKTOP]
[BUG] Small change to xdg-email for LXDE so it doesn't open the
  web browser if there is a default email application.

git-svn-id: svn://localhost/gambas/trunk@6155 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-13 11:56:04 +00:00
Benoît Minisini
66ce4042d2 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix the analyze of exported classes that override a class from a 
  component.


git-svn-id: svn://localhost/gambas/trunk@6154 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-13 00:47:54 +00:00
Benoît Minisini
d4f34166dd [DEVELOPMENT ENVIRONMENT]
* NEW: Menu shortcut for defining a class or a form as startup class has 
  been removed from the editor (but not from the project tree).
* NEW: A new menu to run a specific form as if it was the startup class.

[WIKI]
* NEW: The wiki is almost finished. Tuning is needed, as the automatic 
  conversion between the old wiki syntax and the new markdown syntax cannot 
  be perfect. Not yet done: history, registration, to do list.

[EXAMPLES]
* NEW: WaveGenerator: Set the "is-live" property of the 'audiotestsrc' 
  plugin.
* NEW: WaveGenerator: Use the 'autoaudiosink' output instead of a specific 
  one.
* NEW: WaveGenerator: Allow to choose the wave form.

[INTERPRETER]
* NEW: A new '-s' command-line option to override the startup class defined 
  in the project.

[GB.FORM]
* NEW: MaskBox has a new ShowDefault property. When set, the maskbox does 
  not hide its contents anymore when losing the focus if its value was the 
  default value.

[GB.GTK]
* BUG: Control Move() and MoveScaled() method do not try to resize the 
  control anymore if their width and height arguments are omitted.

[GB.MARKDOWN]
* BUG: Bug fixes, tuning...

[GB.MEDIA]
* NEW: MediaControl: An enumeration property can be set through its integer 
  value now.


git-svn-id: svn://localhost/gambas/trunk@6153 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-12 22:26:02 +00:00
Fabien Bodard
06803f31e1 [GB.REPORT]
BUG: Now Duplex modes are correctly setting in ReportPreview
BUG: ReportFrame set clipping inside the borders



git-svn-id: svn://localhost/gambas/trunk@6152 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-12 17:34:27 +00:00
Benoît Minisini
a3286b55eb [GB.COMPRESS.ZLIB]
* BUG: Fix file compression routine when the file size is a multiple of the 
  internal buffer size.


git-svn-id: svn://localhost/gambas/trunk@6151 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-12 16:27:35 +00:00
Tobias Boege
d4ec08a74c [DEVELOPMENT ENVIRONMENT]
* NEW: FMakePatch: Save chosen paths (old source archive, old project, patch
  file name) in the project's .settings.
* NEW: FPatch: Save last loaded patch in .settings.
* NEW: Re-read the entire project after patching/reverting since a patch can
  change version numbers, components used, etc..
* BUG: Patch: the gambas-patch-ignore file is now chmod'd to rw-------.



git-svn-id: svn://localhost/gambas/trunk@6149 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-12 14:34:45 +00:00
Fabien Bodard
b1078f7ae8 [GB.REPORT]
* OPT: BE CAREFFULL, Now if ReportObject Width and Height are not
  set, then the ReportObject si autoResized. This will help
  a lot new users to understand the report layout.
* BUG: Some bugs corrected on the reportPreview.
* NEW: Begin to implement a Shadow for ReportFrame Objects.
  It have the same way to work than the CSS3 box shadow.
  XOffset, YOffset, Spread, Color. Actually only the class 
  have been implemented... I need to say to the engine how to use
  it :-)
  


git-svn-id: svn://localhost/gambas/trunk@6148 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-12 14:09:24 +00:00
Tobias Boege
da8305456c [GB.INOTIFY]
* NEW: Rename the PathWatch class to Watch.
* NEW: Generalise the events raised by the class for future portability.
* NEW: Add static properties Name, IsDir, Unmount and Cookie and remove the
  corresponding event handler arguments.
* NEW: Do not automatically reference a Watch anymore to keep it sane.
* BUG: Automatic detection of watch events works now (#6115).
* BUG: Invalidate Watch objects when the kernel tells us to.
* BUG: Don't enter an infinite loop if some event bits are not recognised.
* OPT: Use hash tables to improve lookups.



git-svn-id: svn://localhost/gambas/trunk@6147 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-09 21:23:05 +00:00
Benoît Minisini
5a61180b86 [CONFIGURATION]
* NEW: Dutch translation updated in many places.

[DEVELOPMENT ENVIRONMENT]
* NEW: New option to run a program inside a true virtual terminal, but its 
  standard error output is redirected to the IDE console.

[WIKI]
* NEW: New Gambas wiki CGI script. It aims at replacing the current wiki. 
  Currently in development...

[INTERPRETER]
* NEW: A new '-t' hidden command-line argument to support redirecting the
  standard error output to a named pipe.

[GB.IMAGE]
* BUG: Link with the mathematic library as the pow() function is used for
  the image gamma filter.

[GB.MARKDOWN]
* NEW: Markdown.Line is a new property that returns the current line if an 
  error occurs while converting markdown syntax to HTML.
* NEW: Support for custom commands "{@...}".
* NEW: The quote characters has the same effect as the backquote character, 
  except that markdown is allowed inside.

[GB.QT4]
* BUG: Clipboard.Paste() now returns the image when there is both image and 
  text inside the clipboard.



git-svn-id: svn://localhost/gambas/trunk@6146 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-09 16:00:13 +00:00
Benoît Minisini
69b70827b5 [GB.WEB]
* BUG: Fix the JSON.Decode() method signature.
* BUG: JSON.Null is now a read-only property.

git-svn-id: svn://localhost/gambas/trunk@6145 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-09 10:55:26 +00:00
Fabien Bodard
18d2bb3f5f [GB.REPORT]
OPT: Add icons for ReportDrawingArea and ReportViewer widget


git-svn-id: svn://localhost/gambas/trunk@6144 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-09 08:28:35 +00:00
Fabien Bodard
f376a6909c [GB.REPORT]
* BUG: The custom panel is now enabled when report.paper
  is custom.


git-svn-id: svn://localhost/gambas/trunk@6143 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-09 08:05:57 +00:00
Fabien Bodard
0d97cd6716 [GB.REPORT]
* NEW: A new widget ReportDrawingArea allow to draw freely on
  the report page. It have an event draw that provide the size of 
  the drawing (depending on the paint device resolution too.
  Sometime you  can use ReportUnits.DesktopScale ratio to fix 
  the size). 
  A cached property, allow to call the event only when the device
  resolution change, it is usefull when a draw need a lot of
  computing.
* NEW: MTool and Units have been merged to create a new shared 
  module: ReportUnits. It provide functions for unit convertions
 depended on paint resolution (for pixel convertion use it in a
 paint session)
 A property DesktopScale provide a ratio between Desktop pixel
 size and printer size.
* BUG: Add again forgotten files.



git-svn-id: svn://localhost/gambas/trunk@6142 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-09 07:21:49 +00:00
Fabien Bodard
db51ba6c2d [GB.REPORT]
BUG: Remove an accidentaly forgotten debug line.


git-svn-id: svn://localhost/gambas/trunk@6141 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-08 06:20:06 +00:00
Benoît Minisini
a2f19c2558 [EXAMPLES]
* NEW: Add a new WaveGenerator example that plays a sinusoid wave whose
  frequency can be modified in realtime with a slider.
* BUG: SmallWiki: Backport fixes from gb.markdown.

git-svn-id: svn://localhost/gambas/trunk@6140 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-08 02:32:47 +00:00
Benoît Minisini
115fd6c470 [GB.MEDIA]
* BUG: When a MediaPipeline is freed, the pipeline is first stopped before 
  being put to the null state. Otherwise GStreamer freezes.


git-svn-id: svn://localhost/gambas/trunk@6139 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-08 02:30:00 +00:00
Benoît Minisini
e89cf75bac [GB.GTK]
* BUG: Fix the default size of message boxes.


git-svn-id: svn://localhost/gambas/trunk@6138 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-07 22:25:04 +00:00
Fabien Bodard
67f41e9b3c [GB.REPORT]
BUG: Add missing files


git-svn-id: svn://localhost/gambas/trunk@6137 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-07 20:35:45 +00:00
Fabien Bodard
d7ae458ba6 [GB.REPORT]
* NEW: A new widget ReportView (Need polish for external use)
* NEW: A new report preview windows. It embedd all the printing tools
  and can reflect all the printing options in real time 
  Page size, Gray scale and a range property like in the known text 
  editors (1;3;8-9)
* OPT: many other improvement like the possibility now to a 
  report to be initialised with an or more arguments.
* BUG: the report custom size bug is solved.
* OPT: I need more and more user to debug and share ideas on this component.



git-svn-id: svn://localhost/gambas/trunk@6136 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-07 14:21:05 +00:00
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