Commit graph

101 commits

Author SHA1 Message Date
Benoît Minisini
503211568d [GB.SDL]
* NEW: The default font is now embedded in the library.
* BUG: The default font rendering has been fixed.
* NEW: Window.Screenshot() now can take four optional arguments to define 
  a rectangular sub-part of the window to retrieve.


git-svn-id: svn://localhost/gambas/trunk@6390 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-07-20 02:46:17 +00:00
Benoît Minisini
e2c7abf46d [GB.SDL]
* NEW: Window.Screenshot() is a new method that returns a screenshot of the 
  window contents by reading the OpenGL color buffer.


git-svn-id: svn://localhost/gambas/trunk@6389 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-07-19 19:00:30 +00:00
Benoît Minisini
5318daf25a [GB.SDL]
* NEW: Window.Grabbed is a new property that allows to grab the input and 
  confine the mouse to the window.


git-svn-id: svn://localhost/gambas/trunk@6359 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-07-03 08:32:07 +00:00
Benoît Minisini
fbc194a849 [GB.SDL]
* NEW: Mouse.Show, Mouse.Hide and Mouse.Visible are two new static methods
  and one static property to hide or show the mouse cursor.


git-svn-id: svn://localhost/gambas/trunk@6318 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-06-15 11:57:20 +00:00
Benoît Minisini
b3ad0b38b0 [DEVELOPMENT ENVIRONMENT]
* BUG: Creating a new SDL project correctly checks all needed components.


git-svn-id: svn://localhost/gambas/trunk@6317 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-06-14 15:04:59 +00:00
Benoît Minisini
5e76433eeb [CONFIGURATION]
* NEW: Do not use deprecated autoconf macros anymore.
* NEW: The version information is now located in the 'version.m4' file in
  the source root directory.


git-svn-id: svn://localhost/gambas/trunk@6230 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-04-05 21:22:43 +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
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
dd754403d4 [GB.SDL]
* BUG: Restore fill pattern to solid after a Draw.Rect() or a 
  Draw.Ellipse(), otherwise Draw.Image() draws nothing!


git-svn-id: svn://localhost/gambas/trunk@6005 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-16 00:34:46 +00:00
Benoît Minisini
6bcbeb9406 [DEVELOPMENT ENVIRONMENT]
* NEW: '&' shortcuts are automatically removed from the translatable 
  captions of the following controls: Menu, Button, CheckBox, RadioButton, 
  ToolButton, ToggleButton, DataCheckBox. The leading "..." are removed
  too. Now, for example, "&About..." and "About" lead to the same 
  translated string. Consequently the number of translatable strings of the
  IDE project is 7% lower.
* NEW: All translations were updated according to the previous change. 
* NEW: Gambas fonts have been updated.
* BUG: The property help WebView now uses the same default font size (80%) 
  than the help window.
* NEW: A menu entry in the "Tools" menu allows to update all forms, so that
  the previous features can be tested easily. Save your projects before!
* NEW: Translation imports now automatically extracts translations from 
  strings having "&" shortcuts inside and leading dots ("...").

[WIKI CGI SCRIPT]
* BUG: Handle the new "XML" component requirement.

[GB.FORM]
* NEW: TabPanel[] got a new RichText property, that allows to define the 
  title of a tab as rich text.

[GB.FORM.MDI]
* NEW: If a window embedded in a Workspace has a public RichText property, 
  it will be used instead of the normal Text property as window title. This
  is some sort of dirty hack, so don't use it at the moment.

[GB.GTK]
* NEW: When a popup menu is shown, underscore shortcuts are automatically 
  assigned. This feature is a based on a new hidden property of the Menu 
  class named "_Text". So don't use this new property for your own needs!

[GB.GUI.AREA]
* NEW: The Shortcut class is a new class that allows to remove '&' 
  shortcuts from the translatable caption of the following controls: Menu, 
  Button, CheckBox, RadioButton, ToolButton, ToggleButton, DataCheckBox.

[GB.QT4]
* NEW: When a popup menu is shown, underscore shortcuts are automatically 
  assigned. This feature is a based on a new hidden property of the Menu 
  class named "_Text". So don't use this new property for your own needs!


git-svn-id: svn://localhost/gambas/trunk@5964 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-11-18 00:10:40 +00:00
Benoît Minisini
f372542c6d [GB.SDL]
* NEW: Use the Gambas monospace font as SDL default font now.


git-svn-id: svn://localhost/gambas/trunk@5937 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-11-03 14:34:32 +00:00
Benoît Minisini
6bd131719b [CONFIGURATION]
* NEW: Switch to version 3.5.90.

[GB.SDL]
* NEW: Rename the default SDL font file as "_default.ttf" to prevent 
  packaging conflicts.

[GB.QT4.OPENGL]
* BUG: Clear the GLArea widget with the control background color just before 
  raising the Draw event.

git-svn-id: svn://localhost/gambas/trunk@5933 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-11-01 23:16:53 +00:00
Benoît Minisini
8ad1afe673 [CONFIGURATION]
* NEW: Print disabled components individually.

[GB.QT4]
* BUG: ComboBox background color is correctly handled now.


git-svn-id: svn://localhost/gambas/trunk@4739 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-18 01:19:15 +00:00
Benoît Minisini
e2fac79ffb [CONFIGURATION]
* NEW: Replace the old "INCLUDES" directive by "xxx_CPPFLAGS" in all 
  Makefile.am files.

[GB.XML]
* BUG: Remove debugging flags from compilation flags.


git-svn-id: svn://localhost/gambas/trunk@4714 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-04 16:45:14 +00:00
Benoît Minisini
dd3b512daf [CONFIGURATION]
* NEW: Update copyrights.


git-svn-id: svn://localhost/gambas/trunk@4384 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-12-31 02:39:20 +00:00
Benoît Minisini
7466e544db [DEVELOPMENT ENVIRONMENT]
* NEW: Use Key.Escape instead of Key.Esc. Key.Esc will be removed sooner 
  or later.
* NEW: In the form editor, a control being created now has its handles.
* NEW: The form editor selection frame is transparent now.

[EXAMPLE]
* BUG: Fix Puzzle1To8 example key handling.

[GB.FORM]
* NEW: Use Key.Escape instead of Key.Esc.

[GB.GTK]
* NEW: Key.Code now returns zero when a modifier key is pressed. That way,
  you can detect if we are pressing (or releasing) a modifier key.
* BUG: Form key event handlers catch key events before the control now.

[GB.QT4]
* NEW: Key.Code now returns zero when a modifier key is pressed. That way,
  you can detect if we are pressing (or releasing) a modifier key.
* BUG: Form key event handlers catch key events before the control now.


git-svn-id: svn://localhost/gambas/trunk@4169 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-10-02 14:09:39 +00:00
Benoît Minisini
f17878075b [CONFIGURATION]
* NEW: Switch version to 2.99.4.

[INTERPRETER]
* OPT: Optimize a little case insensitive string comparison. Hash table
  code is consequently faster.

[GB.SDL]
* NEW: Comment old Cursor class implementation.


git-svn-id: svn://localhost/gambas/trunk@4109 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 20:23:15 +00:00
Laurent Carlier
f15115ca84 [GB.SDL]
* BUG: Disable Cursor handling, ad it's buggy and incomplete. Only default cursor is available.


git-svn-id: svn://localhost/gambas/trunk@4107 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 19:20:50 +00:00
Benoît Minisini
6e6d9fd916 [CONFIGURATION]
* BUG: Remove generated ltmain.sh files.


git-svn-id: svn://localhost/gambas/trunk@4007 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-10 22:18:30 +00:00
Benoît Minisini
ecc5e010b5 [DEVELOPMENT ENVIRONMENT]
* BUG: Starting a new search automatically resets the search list.

[EXAMPLES]
* NEW: New OpenGL examples from NeHe tutorials.
* BUG: Remove printing from BarCode example, it does not work anymore.

[GB.DB.FORM]
* NEW: Replace the DataComboMulti control by a DataComboView control. It is
  not completely well tested, but it works better than its predecessor.
* NEW: Data controls icons were redesigned.

[GB.GTK]
* BUG: Fix two crashes in GridView control.

[GB.SDL]
* BUG: Key[x] works correctly with letter keys now.


git-svn-id: svn://localhost/gambas/trunk@3967 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-03 19:39:41 +00:00
Benoît Minisini
e22b4f390b [GB.SDL]
* BUG: Redesign the way keyboard events are processed, so that SDL 
  constants are used. Consequently, all Key constants now work, but '1' and
  '&' have different codes on a french keyboard. Key.Text works too.
* NEW: Key.Repeat is a new static property for enabling keyboard 
  repetition.


git-svn-id: svn://localhost/gambas/trunk@3957 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-07-31 12:48:16 +00:00
Laurent Carlier
55535cd653 [GB.SDL]
* BUG: fix a typo in configure.ac


git-svn-id: svn://localhost/gambas/trunk@3930 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-07-06 22:06:18 +00:00
Laurent Carlier
ca33fb065f [GB.SDL]
* BUG: Add missing linking against libXcursor.


git-svn-id: svn://localhost/gambas/trunk@3929 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-07-06 22:04:45 +00:00
Laurent Carlier
053cc59560 [GB.SDL]
* BUG: SDL_ttf prior to 2.0.10 doesn't provide pkg-config file, so add manual checking of files.


git-svn-id: svn://localhost/gambas/trunk@3927 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-07-05 11:06:08 +00:00
Laurent Carlier
df9d98d39d [GB.SDL]
* BUG: Restore prefix GL in glew header inclusion for debian based packages.



git-svn-id: svn://localhost/gambas/trunk@3893 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-21 09:42:45 +00:00
Laurent Carlier
75cbb9774e [GB.SDL]
* BUG: Use pkg-config to properly detect dependencies.



git-svn-id: svn://localhost/gambas/trunk@3892 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-18 14:55:14 +00:00
Laurent Carlier
cc0be8b5ca [GB.SDL]
* BUG: Enable stencil buffer support.


git-svn-id: svn://localhost/gambas/trunk@3888 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-12 20:00:45 +00:00
Benoît Minisini
2fbf67cb29 [CONFIGURATION]
* NEW: Update FSF address in every source file.


git-svn-id: svn://localhost/gambas/trunk@3870 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-03 00:51:09 +00:00
Benoît Minisini
5e91ded94f [INTERPRETER]
* BUG: Fix the use of boolean in the interpreter API.
* NEW: Change the GB.New() API signature, and update all components 
  accordingly.


git-svn-id: svn://localhost/gambas/trunk@3846 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-05-16 02:16:22 +00:00
Benoît Minisini
19ff910be8 [GB.SDL]
* BUG: Compute the framerate differently and more accurately.
* BUG: Framerate limitation is more accurate now.
* NEW: Window.Framerate property is a Float number now.
* NEW: Manage the WAIT instruction.
* NEW: The event loop can ignore input events, as requested by the WAIT
  instruction, when it is called with no argument.


git-svn-id: svn://localhost/gambas/trunk@3772 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-16 21:00:33 +00:00
Benoît Minisini
bf7bd78dda [EXAMPLES]
* BUG: Restore BeastScroll example.

[GB.SDL]
* BUG: Remove my mistake in the Draw.Image() method.


git-svn-id: svn://localhost/gambas/trunk@3747 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-11 13:08:59 +00:00
Benoît Minisini
15762e3fb2 [GB.IMAGE]
* NEW: Implement Image.PaintImage().

[GB.IMAGE.IO]
* NEW: Loaded image are returned in the preferred format, as specified by
  gb.qt4, gb.gtk or gb.sdl.

[GB.SDL]
* BUG: Do not define the foreground color before drawing an image. It seems
  useless, isn't it?
* BUG: Fix a case mistake in the "Deactivate" event.


git-svn-id: svn://localhost/gambas/trunk@3746 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-11 00:57:03 +00:00
Laurent Carlier
c529c78553 [GB.SDL]
* NEW: Use now defaut BGRA image format internally, should avoid conversion when
       using with a majority of gb.image.xxxx components.
* BUG: Add missing defaut Image format declaration.


git-svn-id: svn://localhost/gambas/trunk@3743 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-10 16:39:02 +00:00
Laurent Carlier
2d98406be1 [GB.SDL]
* BUG: Now Joysticks events are part of the Window class.
* BUG: Joysticks events are managed like keyboard events. They are only raised when the 
       Window got keyboard input focus.


git-svn-id: svn://localhost/gambas/trunk@3738 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-08 14:28:37 +00:00
Laurent Carlier
39ac3f88cd [GB.SDL]
* NEW: Add basic mouse wheel management.


git-svn-id: svn://localhost/gambas/trunk@3729 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-02 18:13:19 +00:00
Laurent Carlier
9e7b057eb9 [GB.SDL]
* NEW: Now Mouse class gives mouse buttons and modifiers.



git-svn-id: svn://localhost/gambas/trunk@3728 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-02 17:28:48 +00:00
Laurent Carlier
2309afa94d [GB.SDL]
* NEW: Remove Mouse.RelativeX/Y properties, add Mouse.StartX/Y properties (same as gb.qt4).


git-svn-id: svn://localhost/gambas/trunk@3725 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-02 16:24:51 +00:00
Laurent Carlier
a358c6cb6a rearrange code to get more robustness in case of gb.sdl and gb.opengl mixed instructions.
git-svn-id: svn://localhost/gambas/trunk@3724 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-01 21:59:03 +00:00
Laurent Carlier
e0df4c8c48 [GB.SDL]
* NEW: Add Joystick.Index property, which returns the joystick's index (similar than
       Joysticks class)
* BUG: Cleanup Joystick class interface (again).


git-svn-id: svn://localhost/gambas/trunk@3720 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-01 15:15:36 +00:00
Benoît Minisini
034caa916e [GB.SDL]
* BUG: The Window.Resizable property works correctly now.
* NEW: Windows are resizable by default like in gb.qt4 or gb.gtk.


git-svn-id: svn://localhost/gambas/trunk@3719 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-01 15:00:31 +00:00
Laurent Carlier
73ea41ecc0 [GB.SDL]
* BUG: Add missing Handle property in Window class.


git-svn-id: svn://localhost/gambas/trunk@3718 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-01 14:55:10 +00:00
Laurent Carlier
ed13c4a083 [GB.SDL]
* BUG: Remove Fixed and Resizable constants from Window class, Window.Border property is now renamed
       in Window.Resizable use a boolean like gb.qt4 component.


git-svn-id: svn://localhost/gambas/trunk@3717 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-01 14:47:30 +00:00
Laurent Carlier
875cda43bd [GB.SDL]
* NEW: Remove glu dependency and the related code.


git-svn-id: svn://localhost/gambas/trunk@3713 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-01 08:11:44 +00:00
Laurent Carlier
8cfda6d797 [GB.SDL]
* NEW: Now Joystick class can manage hats and balls.
* NEW: Joystick's device that raised the event is available with Joystick.Device property.


git-svn-id: svn://localhost/gambas/trunk@3707 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-30 12:28:54 +00:00
Laurent Carlier
eefaaa5b6d [GB.SDL]
* BUG: Joystick_ButtonPressed() events are correctly raised now.


git-svn-id: svn://localhost/gambas/trunk@3706 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-30 10:15:28 +00:00
Laurent Carlier
93b73bef83 [GB.SDL]
* NEW: Joysticks class, to enumerate destected joysticks.
* NEW: Joystick class, to get events and infos from a joystick.



git-svn-id: svn://localhost/gambas/trunk@3705 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-30 10:05:21 +00:00
Benoît Minisini
69324eec4a [INTERPRETER]
* NEW: New API to return the Gambas installation path.

[GB.SDL]
* BUG: Use the Gambas installation path to find the default font.


git-svn-id: svn://localhost/gambas/trunk@3684 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-24 02:15:32 +00:00
Laurent Carlier
d62dac9b02 [GB.SDL]
* BUG: Remove useless inclusion of SDL_image header


git-svn-id: svn://localhost/gambas/trunk@3668 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-20 15:07:49 +00:00
Laurent Carlier
8cadb771d9 [GB.SDL]
* BUG: Remove deprecated support for Xft library.

First steps for drawing on Image with OpenGL, but currently disabled because it's buggy and doesn't work.


git-svn-id: svn://localhost/gambas/trunk@3667 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-20 15:03:00 +00:00
Laurent Carlier
43e6daa13b [GB.SDL]
* BUG: Component doesn't need SDL_image library anymore.


git-svn-id: svn://localhost/gambas/trunk@3657 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-17 10:24:51 +00:00