Commit graph

36 commits

Author SHA1 Message Date
gambas
2742b48afa Support for "Wait 0" syntax. Fix support of "Wait" alone syntax in GTK+ components.
[GB.GTK]
* NEW: Support for "Wait 0" syntax.
* BUG: Fix support of "Wait" alone syntax.

[GB.GTK3]
* NEW: Support for "Wait 0" syntax.
* BUG: Fix support of "Wait" alone syntax.

[GB.SDL2]
* NEW: Support for "Wait 0" syntax.

[GB.QT4]
* NEW: Support for "Wait 0" syntax.

[GB.QT5]
* NEW: Support for "Wait 0" syntax.
2022-04-09 19:11:56 +02:00
gambas
5c39034418 Support for Wayland.
[GB.SDL2]
* NEW: The 'GB_GUI_PLATFORM' environement variable allows to select the platform between 'x11' or 'wayland'.
* NEW: By default, the SDL2 'wayland' video driver is used if the 'WAYLAND_DISPLAY' environment variable exists.
2020-12-22 01:52:01 +01:00
gambas
b1cddd6c3d Remove useless void line. 2020-06-29 20:23:37 +02:00
gambas
552ab50bf0 Support for the new WAIT EVENT instruction.
[GB.SDL2]
* NEW: Support for the new WAIT EVENT instruction.
2020-01-02 13:21:22 +01:00
gambas
f7292f3be8 Update default font with latest version of Gambas font.
[GB.SDL2]
* NEW: Update default font with latest version of Gambas font.
2019-08-03 00:33:46 +02:00
gambas
1ca4f8d790 Add greek and cyrillic characters to the default font.
[GB.SDL2]
* NEW: Add greek and cyrillic characters to the default font.
2019-05-24 02:36:10 +02:00
gambas
388bc70157 Don't crash when drawing one-character static strings.
[GB.SDL2]
* BUG: Don't crash when drawing one-character static strings.
2019-01-13 08:58:00 +01:00
gambas
3c75cea518 Font[] now assumes a default size of 10 points, so that you don't have to specify the font size when creating the Font object.
[GB.SDL2]
* NEW: Font[] now assumes a default size of 10 points, so that you don't have to specify the font size when creating the Font object.
2019-01-09 16:52:10 +01:00
gambas
d51800f858 Draw.Image() opacity argument works as expected now.
[GB.SDL2]
* BUG: Draw.Image() opacity argument works as expected now.
2019-01-05 18:13:08 +01:00
Laurent Carlier
b041e381e6 [GB.SDL2] fix detection with at least pkgconf 2.4.2 2018-06-05 17:40:28 +02:00
gambas
78ac58fb48 Don't free channels at library unloading, it crashes. Do that in the '_exit' method of the Channel class.
[GB.SDL2.AUDIO]
* BUG: Don't free channels at library unloading, it crashes. Do that in the '_exit' method of the Channel class.
2018-04-11 03:43:18 +02:00
gambas
09a0573e61 Replace my old sourceforge mail address by the new one.
[CONFIGURATION]
Replace my old sourceforge mail address by the new one.
2018-02-12 02:53:46 +01:00
gambas
caf54c5b75 Do not use mixer initialization constant if they are not defined.
[GB.SDL2.AUDIO]
* BUG: Do not use mixer initialization constant if they are not defined.
2018-01-14 23:23:19 +01:00
Laurent Carlier
8dc6679530 Remove 'missing' file ,generated by autotools, from the repository 2017-08-13 16:13:06 +02:00
Benoît Minisini
82eddfd5c9 [CONFIGURATION]
* NEW: Remove all 'depcomp' files. Apparently they are not used anymore by autoconf.

[INTERPRETER]
* BUG: Fix some gcc 6 warnings.

[GB.DEBUG]
* BUG: Fix some gcc 6 warnings.

[GB.GTK]
* BUG: Fix some gcc 6 warnings.
* BUG: Fix a ';' mistake in a focus management test.

[GB.GTK3]
* BUG: Fix some gcc 6 warnings.
* BUG: Fix a ';' mistake in a focus management test.

[GB.IMAGE]
* BUG: Fix some gcc 6 warnings.


git-svn-id: svn://localhost/gambas/trunk@8101 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-02-18 17:24:01 +00:00
Benoît Minisini
c19fd1bd29 [GB.SDL2]
* NEW: Window.Grabbed is a new property that return or set if the mouse is confined to the window.


git-svn-id: svn://localhost/gambas/trunk@8062 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-01-24 22:06:21 +00:00
Benoît Minisini
b225eba20f [CONFIGURATION]
* NEW: Update copyright year in all source files.


git-svn-id: svn://localhost/gambas/trunk@8056 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-01-13 03:29:42 +00:00
Benoît Minisini
8d43833241 [GB.SDL2]
* BUG: Image.Load() automatically converts loaded image to default SDL image format.


git-svn-id: svn://localhost/gambas/trunk@8035 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-01-01 19:57:13 +00:00
Benoît Minisini
82ccc3e220 [GB.SDL2.AUDIO]
* BUG: Remove unneeded references to Channel objects, which lead to memory leak.


git-svn-id: svn://localhost/gambas/trunk@7952 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-11-01 20:11:07 +00:00
Benoît Minisini
11ad557188 [GB.SDL2]
* BUG: Fix function name SDL_GetWindowID() in Window_Handle property.


git-svn-id: svn://localhost/gambas/trunk@7828 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-07-22 20:37:04 +00:00
Benoît Minisini
5ecb973af4 [DEVELOPMENT ENVIRONMENT]
* BUG: Image editor: Don't load the image twice.
* NEW: Do not open the welcome dialog if a project directory has been 
  specified in program arguments.
* NEW: Farm client: Paint the software names the same way everywhere.
* BUG: If the workspace was filled before
  the main window is visible, then the QT5 backing store starts displaying
  garbage. The workaround was to always show the main window before trying 
  to load any file.
* NEW: Add the environment variables to the system information.

[WIKI CGI SCRIPT]
* BUG: Fix some HTML syntax errors.

[INTERPRETER]
* BUG: Add the Rand() syntax description.

[GB.DB.POSTGRESQL]
* BUG: If PostgreSQL version is greater than 9.0, then force the bytea 
  output format to 'escape', as it was before.

[GB.EVAL.HIGHLIGHT]
* NEW: The TextHighlighter.ToHtml() method now takes the 'Alternate' style
  flag into account, and the generated HTML is less verbose.
* BUG: The WebPage highlighting has been fixed.

[GB.FORM]
* BUG: Completion: Fix a possible crash.
* BUG: TabPanel: Fix a possible crash.

[GB.SDL2]
* NEW: Window.Handle is a new property that returns the window handle.


git-svn-id: svn://localhost/gambas/trunk@7188 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-27 03:54:57 +00:00
Benoît Minisini
1b67769f30 [GB.SDL2.AUDIO]
* BUG: Setting music volume now works even if the music is not playing.
  Workaround an SDL2 deficiency.


git-svn-id: svn://localhost/gambas/trunk@6799 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-02 20:52:15 +00:00
Benoît Minisini
317dce6638 [GB.SDL2.AUDIO]
* NEW: Now Channel is creatable, and returns the first available channel 
  that has never been used.
* NEW: Channel now raises the Finish event when it has finished to play its 
  sound.
* NEW: Channel.Index is a new property that returns its channel number.

git-svn-id: svn://localhost/gambas/trunk@6795 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-02 12:32:57 +00:00
Benoît Minisini
4edd14b3db [GB.SDL2.AUDIO]
* NEW: Explicitely initialize each sound format support, and print a 
  warning for each failure.
* NEW: 'gb.sdl2.audio' does not require 'gb.sdl2' anymore.


git-svn-id: svn://localhost/gambas/trunk@6793 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-02 10:47:37 +00:00
Benoît Minisini
a5f2cb1575 [FARM SERVER]
* NEW: Software screenshot can be deleted by the client.

[INTERPRETER]
* NEW: The little interpreter sleep is now done inside the watch file 
  descriptor read callback only. So no need to implement it in each
  component event loop.

[GB.SDL2]
* BUG: The SDL event loop now calls the interpreter event loop so that 
  timers and watched file descriptor are correctly handled.


git-svn-id: svn://localhost/gambas/trunk@6792 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-02 03:44:30 +00:00
Benoît Minisini
7dca5a263a [GB.SDL2]
* NEW: Font.DefaultHeight is a new constant that returns the height of the 
  default font.

[GB.SDL2.AUDIO]
* NEW: Sound.Play method has been implemented.


git-svn-id: svn://localhost/gambas/trunk@6784 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-31 15:49:49 +00:00
Benoît Minisini
327ad6bacf [GB.SDL2.AUDIO]
* BUG: Fix Music.Volume property.


git-svn-id: svn://localhost/gambas/trunk@6782 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-31 13:38:28 +00:00
Benoît Minisini
c9d87bf8b9 [GB.SDL2]
* NEW: Channel.Distance is a new property that defines the channel 
  distance, between 0 (near) and 255 (far).
* NEW: Channel.Angle is a new property that defines the channel direction,
  0° being the front, 90° the right, 180° behind and 270° the left.
* NEW: Channel.Reverse is a new boolean property that reverses the channel
  stereo.
* NEW: Music.SoundFontPath is a new property to tell SDL the directories 
  where the MIDI sound font files are stored.


git-svn-id: svn://localhost/gambas/trunk@6780 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-30 23:10:56 +00:00
Benoît Minisini
f811768f78 [DEVELOPMENT ENVIRONMENT]
* NEW: Add gb.sdl2 and gb.sdl2.audio to the component list.

[EXAMPLES]
* NEW: Start porting SDL examples to gb.sdl2. They are not published to the 
  farm server yet.

[GB.UTIL]
* NEW: Raise an error if Date.EasterDay() is call for a year lower then 
  1583.

[GB.GTK]
* NEW: Ignore WAIT inside jkeyboard event handlers only if a duration is 
  specified.

[GB.GTK3]
* NEW: Ignore WAIT inside jkeyboard event handlers only if a duration is 
  specified.

[GB.QT4]
* NEW: Ignore WAIT inside jkeyboard event handlers only if a duration is 
  specified.

[GB.SDL2]
* NEW: OpenGL support.
* NEW: Window.Resizable has been implemented.


git-svn-id: svn://localhost/gambas/trunk@6779 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-30 17:36:02 +00:00
Benoît Minisini
14a735ac51 [GB.SDL2.AUDIO]
* NEW: The audio part of the SDL2 component. It's the old gb.sdl.sound 
  without the CD-Rom support, but with a few more features planned.


git-svn-id: svn://localhost/gambas/trunk@6778 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-30 15:56:19 +00:00
Benoît Minisini
ac239ebc89 [GB.SDL2]
* NEW: Implement Font.TextWidth() and Font.TextHeight().
* NEW: Add the default Gambas font.
* NEW: Add a texture cache in each Font object, that can store the last 128 
  drawn texts. When the cache is full, it is completely erased.
* BUG: Many fixes.

git-svn-id: svn://localhost/gambas/trunk@6776 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-29 21:49:05 +00:00
Benoît Minisini
1709cd1302 [GB.SDL2]
* NEW: Mouse and keyboard support.
* NEW: TTF fonts support.


git-svn-id: svn://localhost/gambas/trunk@6773 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-29 01:39:45 +00:00
Benoît Minisini
a434a994c0 [GB.SDL2]
* BUG: Forget some files.


git-svn-id: svn://localhost/gambas/trunk@6772 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-27 19:05:42 +00:00
Benoît Minisini
a8e23e8c23 [GB.SDL2]
* NEW: Image class.
* NEW: Can load images now, thanks to SDL_image.
* NEW: Image drawing, with optional opacity and rotation.


git-svn-id: svn://localhost/gambas/trunk@6771 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-27 11:24:05 +00:00
Benoît Minisini
7f06ab1316 [GB.SDL2]
* NEW: Add the event loop, the framerate limitation, the Draw class.
* NEW: 'SDL2_image' will be used for image I/O instead of 'gb.image.io'.


git-svn-id: svn://localhost/gambas/trunk@6770 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-27 08:33:25 +00:00
Benoît Minisini
6557ebfbc8 [GB.SDL2]
* NEW: Start rewriting the SDL component with SDL 2.


git-svn-id: svn://localhost/gambas/trunk@6769 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-26 17:34:32 +00:00