Commit graph

802 commits

Author SHA1 Message Date
Benoît Minisini
e6c400c46c [INTERPRETER]
* BUG: Fix 'gambas.h' header for new version of gcc.


git-svn-id: svn://localhost/gambas/trunk@7715 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-04-03 11:40:08 +00:00
Benoît Minisini
ff7bbe8a21 [DEVELOPMENT ENVIRONMENT]
* NEW: Add 'gb.form.terminal' to the component list.
* NEW: New component status icons.

[INTERPRETER]
* BUG: Correctly export Stream.Term description.
* NEW: Stream.Term.FlowControl is a new property that allows to set or retrieve if flow control is enabled on a terminal stream.

[GB.GTK]
* NEW: Change the name of 'NewChild' event argument.

[GB.GTK3]
* NEW: Change the name of 'NewChild' event argument.

[GB.QT4]
* NEW: Change the name of 'NewChild' event argument.

[GB.QT5]
* NEW: Change the name of 'NewChild' event argument.

[GB.FORM.TERMINAL]
* NEW: Support for the 'Set title' command.
* NEW: TerminalView now emits the Title event when the terminal requests a title change.
* NEW: Support for flow control. When output is suspended, the terminal contents becomes darker.
* BUG: Correctly update the scrollbar when switching between screens.


git-svn-id: svn://localhost/gambas/trunk@7714 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-04-03 10:54:21 +00:00
Benoît Minisini
79a4ea2a70 [INTERPRETER]
* BUG: Fix a crash on one error message thrown incorrectly.

[GB.FORM.TERMINAL]
* OPT: Optimize drawing routine. Still slow, but less flicker.
* NEW: TerminalView: Add a blink property that enables or disables cursor blink.

[GB.GTK]
* BUG: Use cairo_paint() instead of cairo_fill() when Paint.Operator is not Paint.OperatorOver. Is it a Cairo bug?

[GB.GTK3]
* BUG: Use cairo_paint() instead of cairo_fill() when Paint.Operator is not Paint.OperatorOver. Is it a Cairo bug?


git-svn-id: svn://localhost/gambas/trunk@7698 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-31 09:25:11 +00:00
Benoît Minisini
8e05c10ece [GB.GTK]
* BUG: Raise an error now when calling WAIT during a repaint event. This is
  -not- a good idea tha can crash everything.

[GB.GTK3]
* BUG: Raise an error now when calling WAIT during a repaint event. This is
  -not- a good idea tha can crash everything.


[GB.QT4]
* BUG: Raise an error now when calling WAIT during a repaint event. This is
  -not- a good idea tha can crash everything.

[GB.QT5]
* BUG: Raise an error now when calling WAIT during a repaint event. This is
  -not- a good idea tha can crash everything.


git-svn-id: svn://localhost/gambas/trunk@7511 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-12-10 23:14:17 +00:00
Benoît Minisini
055096a304 [DEVELOPMENT ENVIRONMENT]
* NEW: Support for 'WebCoord' property kind.
* NEW: WebForm family: Draw WebImage controls.
* NEW: CoordBox.Units is a new property that allows to define the units
  list.
* NEW: CoordBox.DefaultUnit is a new property that allows to define the
  default unit.
* BUG: CoordBox is now correctly not localized.

[GB.DB.FORM]
* BUG: Correctly define the default size of controls.

[GB.FORM.EDITOR]
* NEW: The Margin event is now raised on double click only.
* NEW: The line cache is now based on Picture, not on Image.

[GB.GTK]
* NEW: SvgImage.W is new property that is a synonymous of SvgImage.Width.
* NEW: SvgImage.H is new property that is a synonymous of SvgImage.Height.
* NEW: SvgImage.Paint() now takes optional X, Y, Width and Height
  arguments. These arguments define the target drawing rectangle, and the
  SVG image will be scaled to fit it.

[GB.GTK3]
* NEW: SvgImage.W is new property that is a synonymous of SvgImage.Width.
* NEW: SvgImage.H is new property that is a synonymous of SvgImage.Height.
* NEW: SvgImage.Paint() now takes optional X, Y, Width and Height
  arguments. These arguments define the target drawing rectangle, and the
  SVG image will be scaled to fit it.

[GB.GUI.BASE]
* NEW: Paint.StretchImage() is a new method that scales an image to fit a
  rectangle, keeping the image proportions.

[GB.QT4]
* NEW: SvgImage.W is new property that is a synonymous of SvgImage.Width.
* NEW: SvgImage.H is new property that is a synonymous of SvgImage.Height.
* NEW: SvgImage.Paint() now takes optional X, Y, Width and Height
  arguments. These arguments define the target drawing rectangle, and the
  SVG image will be scaled to fit it.

[GB.QT5]
* NEW: SvgImage.W is new property that is a synonymous of SvgImage.Width.
* NEW: SvgImage.H is new property that is a synonymous of SvgImage.Height.
* NEW: SvgImage.Paint() now takes optional X, Y, Width and Height
  arguments. These arguments define the target drawing rectangle, and the
  SVG image will be scaled to fit it.

[GB.WEB.FORM]
* NEW: WebControl: Width and Height properties now have the 'WebCoord'
  kind.


git-svn-id: svn://localhost/gambas/trunk@7503 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-12-05 11:14:30 +00:00
Benoît Minisini
1e32bb79dd [GB.DESKTOP.X11]
* BUG: Do not crash when some desktop properties are not defined by the
  window manager.

[GB.GTK]
* BUG: Initialize the root window event mask when setting the X11 event
  filter.

[GB.GTK3]
* BUG: Initialize the root window event mask when setting the X11 event
  filter.


git-svn-id: svn://localhost/gambas/trunk@7497 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-12-04 19:57:17 +00:00
Benoît Minisini
2343770b6f [GB.FORM.EDITOR]
* BUG: TextEditor: Fix 'page up' and 'page down' cursor moves.
* OPT: TextEditor: Each editor has now an internal line image cache to
  speed up redraws. This image cache is cleared as soon as the editor
  loses the focus, to save memory, or five seconds after the last redraw.


git-svn-id: svn://localhost/gambas/trunk@7456 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-07 20:57:54 +00:00
Benoît Minisini
d289c1d0ad [GB.GTK3]
* BUG: ScrollView with a border should not display scrollbars anymore when 
  they are void.


git-svn-id: svn://localhost/gambas/trunk@7420 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-17 23:27:35 +00:00
Benoît Minisini
c6ff0fe96f [GB.GTK]
* BUG: Control.Reparent() now works as expected when the new Parent 
  inherits UserContainer.
  
[GB.GTK3]
* BUG: Control.Reparent() now works as expected when the new Parent 
  inherits UserContainer.


git-svn-id: svn://localhost/gambas/trunk@7409 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-12 23:11:45 +00:00
Benoît Minisini
7f44f910de [GB.GTK]
* BUG: Fix ScrollView ClientWidth and ClientHeight properties.
* BUG: When searching for event targets, don't look at controls outside of 
  containers client area.

[GB.GTK3]
* BUG: Fix ScrollView ClientWidth and ClientHeight properties.
* BUG: When searching for event targets, don't look at controls outside of 
  containers client area.


git-svn-id: svn://localhost/gambas/trunk@7406 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-10 21:50:05 +00:00
Benoît Minisini
9e9514c318 [GB.GTK]
* BUG: Correctly initialize resolution when drawing on a DrawingArea.

[GB.GTK3]
* BUG: Correctly initialize resolution when drawing on a DrawingArea.


git-svn-id: svn://localhost/gambas/trunk@7405 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-10 14:04:46 +00:00
Benoît Minisini
fc66292f50 [GB.GTK]
* BUG: Setting PictureBox.Picture to NULL with PictureBox.Stretch set now 
  works as expected.
  
[GB.GTK3]
* BUG: Setting PictureBox.Picture to NULL with PictureBox.Stretch set now 
  works as expected.


git-svn-id: svn://localhost/gambas/trunk@7404 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-10 02:09:36 +00:00
Benoît Minisini
01a2b34270 [DEVELOPMENT ENVIRONMENT]
* NEW: Project exported control icons are thiner.

[INTERPRETER]
* NEW: Release classes having an array class if that array class has no 
  instance.

[GB.GUI.BASE]
* NEW: _Gui._Quit is a new method called by the GUI components during their
  "quit" hook. At the moment it releases Drag.Icon picture and voids the 
  Picture cache.


git-svn-id: svn://localhost/gambas/trunk@7403 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-10 02:02:12 +00:00
Benoît Minisini
b3e2e3bbdb [GB.GTK]
* BUG: Fix Image.Rotate() routine.

[GB.GTK3]
* BUG: Fix Image.Rotate() routine.


git-svn-id: svn://localhost/gambas/trunk@7378 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-03 01:02:18 +00:00
Benoît Minisini
ea481962b9 [GB.GTK]
* BUG: Try to fix popup menu behaviour in X11 TrayIcon context.


git-svn-id: svn://localhost/gambas/trunk@7353 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-27 13:29:49 +00:00
Benoît Minisini
703d1a1a7a [GB.GTK]
* BUG: Newly opened windows are centered by default, to mimic the gb.qt4
  and gb.qt5 behaviour.

[GB.GTK3]
* BUG: Newly opened windows are centered by default, to mimic the gb.qt4
  and gb.qt5 behaviour.



git-svn-id: svn://localhost/gambas/trunk@7343 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-25 21:13:05 +00:00
Benoît Minisini
bdd864f41a [DEVELOPMENT ENVIRONMENT]
* BUG: Fix windows using icons not existing anymore.
* NEW: Add dark theme versions of some icons.

[INTERPRETER]
* NEW: "../xxx" now refers to a file located in the parent archive, not
  necessarily the main project archive. "../../xxx" refers to the 
  grand-parent archive, and so on. A component written in Gambas that 
  receives a relative path is supposed to prefix it with "../" if he wants 
  to access it. Please report any incompatibility!
* NEW: File.IsRelative() is a new method that returns if a file is 
  relative, i.e. if it does not starts with '/' or '~'.
  
[GB.FORM]
* NEW: The Stock class does not use the Picture cache anymore. It is 
  useless as normally the Stock class is accessed from the Picture[]
  method.

[GB.FORM.MDI]
* BUG: When browsing actions, do not try to load an icon for actions that
  do not have one.

[GB.GTK]
* NEW: Remove the Picture[] array accessor and the Picture.Flush() method.
  They are now implemented in the 'gb.gui.base' component.
  
[GB.GTK3]
* NEW: Remove the Picture[] array accessor and the Picture.Flush() method.
  They are now implemented in the 'gb.gui.base' component.
  
[GB.GUI.BASE]
* NEW: The Picture[] array accessor and the Picture.Flush() method are now 
  implemented in that component.
* NEW: Remove support for theme specific icons.
* NEW: Add support for right-to-left specific icons. For example, if an
  icon is named 'abc-ltr.png', then it will be considered as a 
  'left-to-right' icon, and the 'abc-rtl.png' icon will be used if the 
  current langauge is right-to-left written.
* NEW: Add support for dark theme specific icons. An icon named 
  'abc-dark.png' will be the dark theme version of the 'abc.png' icon.

[GB.QT4]
* NEW: Remove the Picture[] array accessor and the Picture.Flush() method.
  They are now implemented in the 'gb.gui.base' component.
* NEW: Message boxes do not support theme specific icons automatically 
  anymore.
  
[GB.QT5]
* NEW: Remove the Picture[] array accessor and the Picture.Flush() method.
  They are now implemented in the 'gb.gui.base' component.
* NEW: Message boxes do not support theme specific icons automatically 
  anymore.


git-svn-id: svn://localhost/gambas/trunk@7304 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-12 23:21:44 +00:00
Benoît Minisini
e2dd8969a3 [GB.GTK]
* BUG: Remove the Screens.Primary property, it is useless (it is always 0).

[GB.GTK3]
* BUG: Remove the Screens.Primary property, it is useless (it is always 0).


[GB.QT4]
* BUG: Continue fixing modal dialog initial screen.
* BUG: Remove the Screens.Primary property, it is useless (it is always 0).

[GB.QT5]
* BUG: Continue fixing modal dialog initial screen.
* BUG: Remove the Screens.Primary property, it is useless (it is always 0).


git-svn-id: svn://localhost/gambas/trunk@7282 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-06 18:16:12 +00:00
Benoît Minisini
0704ce8f70 [DEVELOPMENT ENVIRONMENT]
* OPT: Code formatting is faster now by working on a temporary line buffer.

[WEBSITE MAKER]
* NEW: Update to 3.8.1 version.

[GB.GTK]
* NEW: Screens.Primary is a new property that returns the primary screen 
  number.

[GB.GTK3]
* NEW: Screens.Primary is a new property that returns the primary screen 
  number.

[GB.QT4]
* BUG: Continue fixing modal dialog initial screen.
* NEW: Screens.Primary is a new property that returns the primary screen 
  number.

[GB.QT5]
* BUG: Continue fixing modal dialog initial screen.
* NEW: Screens.Primary is a new property that returns the primary screen 
  number.


git-svn-id: svn://localhost/gambas/trunk@7281 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-06 15:12:38 +00:00
Benoît Minisini
631c2477f6 [GB.GTK]
* BUG: No GTK+ warning message anymore when a TextArea or TextBox gets the 
  focus using some input methods.

[GB.GTK3]
* BUG: No GTK+ warning message anymore when a TextArea or TextBox gets the 
  focus using some input methods.


git-svn-id: svn://localhost/gambas/trunk@7273 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-05 16:00:54 +00:00
Benoît Minisini
29ce64375f [GB.GTK]
* BUG: TextArea.Paste() and CTRL+V works correctly now.

[GB.GTK3]
* BUG: TextArea.Paste() and CTRL+V works correctly now.



git-svn-id: svn://localhost/gambas/trunk@7272 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-05 15:45:31 +00:00
Benoît Minisini
9c033b4860 [GB.GTK]
* BUG: Fix a uninitialized variable that can lead to a crash when creating
  a window.

[GB.GTK3]
* BUG: Fix a uninitialized variable that can lead to a crash when creating
  a window.


git-svn-id: svn://localhost/gambas/trunk@7237 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-25 12:57:03 +00:00
Benoît Minisini
dfcb60106e [DEVELOPMENT ENVIRONMENT]
* BUG: Some HiDPI fixes.

[GB.FORM]
* NEW: Stock icon default sizes ("small", "medium"...) are now proportional
  to Desktop.Scale by steps of 8 pixels. This is for HiDPI support.
* NEW: Wizard BeforeChange event can be cancelled now.

[GB.FORM.MDI]
* NEW: Toolbar tries to update the size of its icons when the font changes.

[GB.GTK]
* NEW: Window now raises a Font event when its font changes.

[GB.GTK3]
* NEW: Window now raises a Font event when its font changes.

[GB.GUI.BASE]
* NEW: TreeView items height padding is now proportional to Desktop.Scale.

[GB.QT4]
* NEW: Window now raises a Font event when its font changes.

[GB.QT5]
* NEW: Window now raises a Font event when its font changes.


git-svn-id: svn://localhost/gambas/trunk@7228 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-18 15:19:22 +00:00
Benoît Minisini
08c0e1037e [DEVELOPMENT ENVIRONMENT]
* NEW: Farm client: Always draw software icon to the left.

[GB.DB.MYSQL]
* NEW: Use the a void database name by default, instead of explicitly 
  connecting to the "mysql" database.

[GB.GTK]
* BUG: Window.NoTakeFocus works correctly now.

[GB.GTK3]
* BUG: Window.NoTakeFocus works correctly now.

[GB.QT4]
* BUG: Non modal windows opened on top of modal windows now are correctly 
  closable now.
* BUG: Default window title is correctly initialized now.

[GB.QT5]
* BUG: Non modal windows opened on top of modal windows now are correctly 
  closable now.
* BUG: Window.NoTakeFocus should work in all cases now.
* BUG: Default window title is correctly initialized now.


git-svn-id: svn://localhost/gambas/trunk@7205 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-01 09:13:03 +00:00
Benoît Minisini
9547ff52ec [GB.GTK]
* BUG: Key[] works again correctly.

[GB.GTK3]
* BUG: Key[] works again correctly.



git-svn-id: svn://localhost/gambas/trunk@7202 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-31 23:46:56 +00:00
Benoît Minisini
1b420fbf43 [DEVELOPMENT ENVIRONMENT]
* NEW: Farm client: Cleaner way of drawing software information.
* BUG: Farm client: Software URL works correctly now.

[WIKI CGI SCRIPT]
* NEW: Remove custom font in style sheet.

[GB.FORM]
* NEW: ImageView.Alignment is a new property that allows to define how the
  image is aligned when it is smaller than the view.
* NEW: UrlLabel: Display the link URL if the Text property is not set.

[GB.GTK]
* NEW: Font.H is now a synonymous of Font.Height.

[GB.GTK3]
* NEW: Font.H is now a synonymous of Font.Height.

[GB.QT4]
* NEW: Font.H is now a synonymous of Font.Height.

[GB.QT5]
* NEW: Font.H is now a synonymous of Font.Height.


git-svn-id: svn://localhost/gambas/trunk@7196 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-31 03:00:41 +00:00
Benoît Minisini
9d6820dd88 [DEVELOPMENT ENVIRONMENT]
* NEW: The system colors of the color choose dialog are now dynamically 
  filled from the Color class information. Consequently, you can add new 
  colors by extending and adding new color constants or properties to the 
  Color class in your project.
* BUG: Prevent a possible crash in the farm client request manager.

[GB.GTK]
* BUG: The color properties of the Color class are now correctly read-only.
* BUG: Add a forgotten source file header symbolic link.

[GB.GTK3]
* BUG: The color properties of the Color class are now correctly read-only.
* BUG: Add a forgotten source file header symbolic link.

[GB.QT4]
* BUG: The color properties of the Color class are now correctly read-only.

[GB.QT5]
* BUG: The color properties of the Color class are now correctly read-only.


git-svn-id: svn://localhost/gambas/trunk@7189 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-29 12:59:14 +00:00
Benoît Minisini
417bfb8685 [INTERPRETER]
* NEW: GB.GetReturnValue() is a new interpreter API that returns a pointer
  to the internal GB_VALUE slot where GB.ReturnXXX() functions store the
  return value.
* NEW: Allow a component to declare a GB_AFTER_INIT() exported method that
  is called just after all the components declared in the project are 
  completely loaded.
  
[GB.DBUS]
* NEW: DBus._HasSystemTray() is a new method that returns if the DBus 
  system tray is present. That method is used by the 'gb.gui.trayicon'
  component to know if 'gb.dbus.trayicon' must be loaded.
* BUG: Fix xml introspection analysis.

[GB.DBUS.TRAYICON]
* BUG: Remove debugging messages.
* BUG: TrayIcon icon data is sent correctly now.

[GB.GUI.TRAYICON]
* NEW: New component that you must check if you want to have system tray
  icons. It loads 'gb.dbus', use DBus._HasSystemTray() to know if it can
  load 'gb.dbus.trayicon'. Otherwise it tells the current GUI component to
  declare the old system tray implementation classes.

[GB.GTK]
* NEW: Let the new 'gb.gui.trayicon' deals with the dbus stuff, but keep
  the old system tray icon and use them on demand.

[GB.GTK3]
* NEW: Let the new 'gb.gui.trayicon' deals with the dbus stuff, but keep
  the old system tray icon and use them on demand.

[GB.QT4]
* NEW: Let the new 'gb.gui.trayicon' deals with the dbus stuff, but keep
  the old system tray icon and use them on demand.

[GB.QT5]
* NEW: Let the new 'gb.gui.trayicon' deals with the dbus stuff, but keep
  the old system tray icon and use them on demand.


git-svn-id: svn://localhost/gambas/trunk@7170 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-03 22:18:58 +00:00
Benoît Minisini
eb2b172425 [GB.DBUS.TRAYICON]
* NEW: Add TrayIcon MiddleClick event.

[GB.QT4]
* NEW: Add TrayIcon MiddleClick event.

[GB.QT5]
* NEW: Add TrayIcon MiddleClick event.

[GB.GTK]
* NEW: Add TrayIcon MiddleClick event.

[GB.GTK3]
* NEW: Add TrayIcon MiddleClick event.


git-svn-id: svn://localhost/gambas/trunk@7169 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-02 23:05:52 +00:00
Benoît Minisini
27cf0ca10a [GB.DBUS.TRAYICON]
* BUG: Setting the Picture of an hidden "Unity" TrayIcon keeps it hidden.

[GB.GTK]
* NEW: Remove TrayIcon Menu event.

[GB.GTK3]
* NEW: Remove TrayIcon Menu event.

[GB.QT4]
* NEW: Remove TrayIcon Menu event.

[GB.QT5]
* NEW: Remove TrayIcon Menu event.


git-svn-id: svn://localhost/gambas/trunk@7168 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-02 23:00:46 +00:00
Benoît Minisini
005c733d8d [INTERPRETER]
* BUG: Fix Object.Raise() method.

[DEVELOPMENT ENVIRONMENT]
* BUG: Replace a possible error while filling the toolbox by a warning 
  message.

[GB.DBUS]
* NEW: DBusValues is a new class that must be used when a DBus method canonical
  return several values. It works like DBusVariant.
* NEW: DBus.SplitSignature is new method that allows to split a DBus signature.
* NEW: DBusNull class is renamed as _DBusNull.
  
[GB.DBUS.TRAYICON]
* NEW: TrayIcon popup menu is now exported through the DBusMenu protocol,
  so that it becomes usable on Unity. Consequently, the Menu event will be
  removed.

[GB.DESKTOP]
* NEW: Remove the Desktop.Type property.
* NEW: Add support for Unity.

[GB.GTK]
* NEW: Desktop.Type is now implemented in the GUI components.

[GB.GTK3]
* NEW: Desktop.Type is now implemented in the GUI components.

[GB.QT]
* NEW: Desktop.Type is now implemented in the GUI components.

[GB.QT5]
* NEW: Desktop.Type is now implemented in the GUI components.


git-svn-id: svn://localhost/gambas/trunk@7164 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-02 14:26:10 +00:00
Benoît Minisini
aff968ac00 [GB.DBUS.TRAYICON]
* NEW: Hide the component.

[GB.GTK]
* NEW: Implement the TrayIcons.DeleteAll() method.
* NEW: Call TrayIcons.DeleteAll() at exit.

[GB.GTK3]
* NEW: Implement the TrayIcons.DeleteAll() method.
* NEW: Call TrayIcons.DeleteAll() at exit.

[GB.QT4]
* NEW: Call TrayIcons.DeleteAll() at exit.
* NEW: TrayIcon: Add support for Scroll event.

[GB.QT5]
* NEW: Call TrayIcons.DeleteAll() at exit.
* NEW: TrayIcon: Add support for Scroll event.


git-svn-id: svn://localhost/gambas/trunk@7155 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-29 02:26:23 +00:00
Benoît Minisini
930c7549d1 [INTERPRETER]
* NEW: Add a new GB.Component.Declare() API, that allows a component to
  dynamically register a class description.

[INFORMER]
* NEW: A component now can declare classes through a GB_OPTIONAL_CLASSES 
  public symbol. Theses classes are included into the information file,
  but are not automatically loaded as the ones defined through the 
  GB_CLASSES symbol.

[GB.FORM.STATUSICON]
* NEW: This component has been removed and replaced by gb.dbus.trayicon.
* NEW: This component now provide TrayIcon and TrayIcons classes that have
  exactly the same interface as the old ones.

[GB.DBUS]
* NEW: Remove the now useless DBusConnection.Raise(). The DBusConnection
  Register() and Unregister() are kept for backward-compatibility reason.
* NEW: Add DBus.Raise() and DBus[].Raise() to raise signals. At the moment,
  there is no difference between the two methods, as there no mean to
  indicate the sender raising a signal. I don't know yet how DBus decides
  which service sends a signal!

[GB.DBUS.TRAYICON]
* NEW: This component implements the tray icon DBus protocol. It is 
  automatically loaded by the GUI components.

[GB.GTK]
* NEW: Load the 'gb.dbus' and 'gb.dbus.trayicon' components if the current
  desktop is KDE >= 4. Otherwise, use the old TrayIcon implementation.
* BUG: Fix the old TrayIcon implementation, so that it matches the QT one.

[GB.GTK3]
* NEW: Load the 'gb.dbus' and 'gb.dbus.trayicon' components if the current
  desktop is KDE >= 4. Otherwise, use the old TrayIcon implementation.
* BUG: Fix the component name in deprecation warning messages.
* BUG: Fix the old TrayIcon implementation, so that it matches the QT one.

[GB.QT4]
* NEW: Load the 'gb.dbus' and 'gb.dbus.trayicon' components if the current
  desktop is KDE >= 4. Otherwise, use the old TrayIcon implementation.

[GB.QT5]
* NEW: Load the 'gb.dbus' and 'gb.dbus.trayicon' components if the current
  desktop is KDE >= 4. Otherwise, use the old TrayIcon implementation.


git-svn-id: svn://localhost/gambas/trunk@7154 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-29 01:46:51 +00:00
Benoît Minisini
0271f54897 [GB.GTK]
* BUG: Fix compilation error.

[GB.GTK3]
* BUG: Fix compilation error.



git-svn-id: svn://localhost/gambas/trunk@7146 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-26 11:22:40 +00:00
Benoît Minisini
f2f3401926 [DEVELOPMENT ENVIRONMENT]
* BUG: Code prettyfier should not move the cursor anymore.

[GB.DBUS]
* NEW: Support for sending signals.

[GB.QT4]
* NEW: Detect system tray with the Qt routine.

[GB.QT5]
* NEW: Detect system tray with the Qt routine.

[GB.GTK]
* NEW: Actually try to detect the system tray. Only the old protocol is 
  supported.

[GB.GTK3]
* NEW: Actually try to detect the system tray. Only the old protocol is 
  supported.


git-svn-id: svn://localhost/gambas/trunk@7145 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-25 23:09:39 +00:00
Benoît Minisini
db4d4afce6 [GB.FORM.EDITOR]
* NEW: TextEditor: Any selected text now goes to the selection clipboard
  automatically.
* NEW: TextEditor: The middle mouse button now pastes the selection 
  clipboard.

[GB.GTK]
* NEW: Clipboard.Current is a new property that tells if the Clipboard 
  methods and properties operate on the default clipboard or the selection
  clipboard.
  
[GB.GTK3]
* NEW: Clipboard.Current is a new property that tells if the Clipboard 
  methods and properties operate on the default clipboard or the selection
  clipboard.
  
[GB.GUI.BASE]
* NEW: ScrollArea: Draw the border around the scrollbars now.

[GB.QT4]
* NEW: Clipboard.Current is a new property that tells if the Clipboard 
  methods and properties operate on the default clipboard or the selection
  clipboard.
  
[GB.QT5]
* NEW: Clipboard.Current is a new property that tells if the Clipboard 
  methods and properties operate on the default clipboard or the selection
  clipboard.


git-svn-id: svn://localhost/gambas/trunk@7130 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-13 08:14:40 +00:00
Benoît Minisini
d64fbae8c7 [GB.GTK3]
* BUG: Dialog.SelectFont() does not crash anymore.


git-svn-id: svn://localhost/gambas/trunk@7126 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-09 20:49:34 +00:00
Benoît Minisini
a8b8ca57bc [GB.GTK3]
* BUG: Explicit call to gtk_printer_option_widget_get_type(), otherwise 
  printing crashes. But why???


git-svn-id: svn://localhost/gambas/trunk@7125 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-09 20:22:35 +00:00
Benoît Minisini
8d2e4c5262 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix initial cursor position at file loading.

[GB.FORM.EDITOR]
* BUG: Wrapping is correctly updated now when the margin width changes.
* NEW: The line indent is used for drawing all the wrapped lines of a text 
  line.
* NEW: The HOME and END keys take the wrapping into accoutn now.

[GB.GTK]
* BUG: Drawing text on an image now has the same result as drawing text on 
  the screen. They use the same hinting options.

[GB.GTK3]
* BUG: Drawing text on an image now has the same result as drawing text on 
  the screen. They use the same hinting options.


git-svn-id: svn://localhost/gambas/trunk@7124 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-09 11:27:13 +00:00
Benoît Minisini
6ec02aa5f7 [GB.GTK]
* BUG: Fix keyboard events handling.
* BUG: Fix enter and leave events handling.


git-svn-id: svn://localhost/gambas/trunk@7122 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-08 15:47:16 +00:00
Benoît Minisini
9261e84858 [DEVELOPMENT ENVIRONMENT]
* NEW: Use the "next" icon for the buttons that switch between the class 
  file and the form file.
* BUG: Fix all WebView font sizes.
* BUG: Open project dialog: Fix buttons layout.
* NEW: Take the gb.gui.qt.* components into account in the help system.
* NEW: Component chooser: New look. Don't use the round borders anymore.
* BUG: Project properties dialog: Do not display the libraries in the 
  component list anymore.
* BUG: Component chooser: Correctly uncheck component dependencies.

[GB.FORM.EDITOR]
* BUG: TextEditor: Fix detection of some monospace fonts.
* NEW: TextEditor: Draw a minus/plus sign for expanded/collapsed 
  procedures. Do not use Style.PaintArrow() anymore, it does not work 
  correctly with gb.gtk.
* BUG: TextEditor: Update cursor position when collapsing a function.

[GB.GTK]
* BUG: Paint.Font now behaves as expected if one of its property is set.
* BUG: Font.ToString() now uses the point as font size decimal separator.

[GB.GTK3]
* BUG: Paint.Font now behaves as expected if one of its property is set.
* BUG: TextBox.Mouse property works correctly again with GTK >= 3.14.
* BUG: Font.ToString() now uses the point as font size decimal separator.

[GB.GUI.BASE]
* NEW: GridView: Don't draw the last grid lines.
* NEW: GridView: The cursor is more visible.
* NEW: GridView: The scrollbars use the same background as the view.

[GB.QT4]
* BUG: Setting Paint.Font to NULL does not crash anymore. It resets the 
  font to its initial value taken at Paint.Begin.
  
[GB.QT5]
* BUG: Setting Paint.Font to NULL does not crash anymore. It resets the 
  font to its initial value taken at Paint.Begin.
* NEW: Closing a popup does not replay the mouse click anymore.


git-svn-id: svn://localhost/gambas/trunk@7110 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-04 17:16:07 +00:00
Benoît Minisini
a6cd2a6505 [DEVELOPMENT ENVIRONMENT]
* NEW: Don't use the 'gb.eval.highlight' component anymore. Highlighting is 
  inside 'gb.form.editor' now. This may change in the future.

[GB.EVAL.HIGHLIGHT]
* NEW: Mark the component as deprecated.

[GB.GTK]
* BUG: Row and column arrangement now work correctly with RTL language in 
  both normal and inverted modes.

[GB.GTK3]
* BUG: Right-to-left languages are taken into account by the arrangement
  routine correctly now.
* BUG: Row and column arrangement now work correctly with RTL language in 
  both normal and inverted modes.

[GB.QT4]
* BUG: Row and column arrangement now work correctly with RTL language in 
  both normal and inverted modes.

[GB.QT5]
* BUG: Row and column arrangement now work correctly with RTL language in 
  both normal and inverted modes.


git-svn-id: svn://localhost/gambas/trunk@7103 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-05-29 00:43:16 +00:00
Benoît Minisini
74f4993c5d [DEVELOPMENT ENVIRONMENT]
* BUG: Text editor: Fix text pasting.

[GB.FORM]
* BUG: Completion: The completion popup now can be clicked without being 
  closed, thanks to the new Window.Activate() method that gives the focus
  back to the completed text box.

[GB.FORM.EDITOR]
* BUG: TextEditor: Fix braces highlighting.
* BUG: TextEditor: Correctly disable procedure folding when the ShowExpand 
  property is FALSE.

[GB.FORM.MDI]
* NEW: Workspace: Rename an internal method that was in conflict with the 
  new Window.Activate() method.

[GB.GTK]
* NEW: Window.Activate is a new method that activates a window.

[GB.GTK3]
* NEW: Window.Activate is a new method that activates a window.

[GB.QT4]
* NEW: Window.Activate is a new method that activates a window.

[GB.QT5]
* NEW: Window.Activate is a new method that activates a window.
* BUG: Window.TakeFocus should work now.
* NEW: Add a new X11 helper function that allows to set the 
  _NEW_WM_USER_TIME property of a window, so that Window.TakeFocus can be
  implemented.


git-svn-id: svn://localhost/gambas/trunk@7097 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-05-24 14:24:14 +00:00
Benoît Minisini
b56f1804e5 [DEVELOPMENT ENVIRONMENT]
* NEW: Use the new TextEditor instead of the old Editor control. 
  Consequently, the 'gb.qt4.ext' component is not needed by the IDE 
  anymore.
* NEW: Option dialog: Put the fonts options in their own panel.
* NEW: Farm client: Add new categories.

[GB.FORM]
* NEW: Fix some breeze icons.

[GB.FORM.EDITOR]
* NEW: TextEditor: Development continues...

[GB.GTK]
* NEW: Font.Modified is a new property that returns if the font has been 
  modified, i.e. if one of its properties has been set. This property can 
  be freely reset. That way, it allows to implement the concept of "default
  font".
* BUG: Remove a GTK+ bug workaround in the Control.Refresh() method. Maybe 
  it is useless now.

[GB.GTK3]
* NEW: Font.Modified is a new property that returns if the font has been 
  modified, i.e. if one of its properties has been set. This property can 
  be freely reset. That way, it allows to implement the concept of "default
  font".
* BUG: Remove a GTK+ bug workaround in the Control.Refresh() method. Maybe 
  it is useless now.

[GB.GUI.BASE]
* BUG: GridView: Use the new Font.Modified property so that the initial 
  font of a cell is always the font of the GridView, even if it changed 
  after the cell has been filled.

[GB.QT4]
* NEW: Font.Modified is a new property that returns if the font has been 
  modified, i.e. if one of its properties has been set. This property can 
  be freely reset. That way, it allows to implement the concept of "default
  font".

[GB.QT5]
* NEW: Font.Modified is a new property that returns if the font has been 
  modified, i.e. if one of its properties has been set. This property can 
  be freely reset. That way, it allows to implement the concept of "default
  font".


git-svn-id: svn://localhost/gambas/trunk@7089 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-05-19 22:21:22 +00:00
Benoît Minisini
bec95180a1 [GB.GTK]
* OPT: Cache Pango layout in each painter so that it is not recreated at 
  each text drawing.
* BUG: Copying a control font now should works as expected.
* OPT: Paint.TextSize does not compute text size twice anymore.


git-svn-id: svn://localhost/gambas/trunk@7083 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-05-14 21:32:48 +00:00
Benoît Minisini
a572c6b9d1 [GB.GTK]
* NEW: The local Stock class has been deprecated. GTK+ stock icons are not 
  accessible anymore.

[GB.GTK3]
* NEW: The local Stock class has been deprecated. Deprecated GTK+ stock 
  icons are not accessible anymore.
* BUG: Fix warnings by not using deprecated functions. Only 
  GtkImageMenuItem is kept, because I didn't found a workaround yet of 
  GTK+3 dropping icons in menus!


git-svn-id: svn://localhost/gambas/trunk@7032 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-04-12 21:29:18 +00:00
Benoît Minisini
7dae6298bc [GB.GTK]
* BUG: Fix a crash when calling Dialog.SaveFile() with a void Dialog.Path.
* BUG: TextBox: Setting the Pos property during a KeyPress event now works
  in all cases.

[GB.GTK3]
* BUG: Fix a crash when calling Dialog.SaveFile() with a void Dialog.Path.
* BUG: TextBox: Setting the Pos property during a KeyPress event now works
  in all cases.


git-svn-id: svn://localhost/gambas/trunk@7007 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-28 20:42:30 +00:00
Benoît Minisini
7d514ba286 [GB.FORM]
* NEW: ValueBox now raises a Change event when its content changes.
* OPT: DocumentView: Don't scale the document image before drawing it! It 
  is slow with gb.qt4, and slow as hell with gb.gtk. Use the scaling 
  feature of Paint.DrawImage().
* NEW: DocumentView: Use a lighter page shadow.

[GB.GTK3]
* BUG: SpinBox: Use a larger minimum width.


git-svn-id: svn://localhost/gambas/trunk@6963 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-09 18:50:40 +00:00
Benoît Minisini
438800a393 [GB.GTK3]
* BUG: Correctly handle widget grabs, i.e. popups, modal dialogs...
* BUG: Read-only combo-boxes do not prevent windows to shrink vertically.
* NEW: ComboBox height can be smaller.
* BUG: SpinBox does not expand horizontally up to the right border of its 
  parent anymore.


git-svn-id: svn://localhost/gambas/trunk@6961 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-09 10:00:20 +00:00
Benoît Minisini
3c3b1b44a2 [GB.FORM]
* NEW: The Completion class now uses a top-level popup window and the new 
  TakeFocus property.
* BUG: Remove some unused variables and symbols.

[GB.GTK]
* BUG: Closing a window now should not lose FocusOut events anymore.
* BUG: Fix the Window.TakeFocus property.
  
[GB.GTK3]
* BUG: Fix the Window.TakeFocus property.


git-svn-id: svn://localhost/gambas/trunk@6941 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-02 22:27:42 +00:00
Benoît Minisini
3814eea878 [GB.GTK]
* NEW: Window.TakeFocus is a new property that indicates if the window will 
  take the focus the first time it is mapped.
  
[GB.GTK3]
* NEW: Window.TakeFocus is a new property that indicates if the window will 
  take the focus the first time it is mapped.
  
[GB.QT4]
* NEW: Window.TakeFocus is a new property that indicates if the window will 
  take the focus the first time it is mapped.
  

git-svn-id: svn://localhost/gambas/trunk@6937 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-02 20:14:35 +00:00
Benoît Minisini
a07a02c086 [GB.DRAW]
* BUG: The optional painting area is correclty reset after a call to 
  Paint.Reset().
 

git-svn-id: svn://localhost/gambas/trunk@6936 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-02 18:20:56 +00:00
Benoît Minisini
77563de5cb [DEVELOPMENT ENVIRONMENT]
* NEW: Update support list.

[GB.GTK]
* BUG: Fix a possible crash in input method management.

[GB.GTK3]
* BUG: Fix a possible crash in input method management.
* BUG: TextArea now has a minimum size, as GTK+3 crashes when they are too 
  small.


git-svn-id: svn://localhost/gambas/trunk@6913 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-25 21:23:14 +00:00
Benoît Minisini
d3cecd5e9f [GB.GTK]
* BUG: Fix a spurious warning.

[GB.GTK3]
* BUG: Fix a spurious warning.


git-svn-id: svn://localhost/gambas/trunk@6912 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-25 17:12:00 +00:00
Benoît Minisini
c728dafc8f [GB.GTK]
* BUG: Fix crash when using read-only ComboBox.

[GB.GTK3]
* BUG: Fix crash when using read-only ComboBox.


git-svn-id: svn://localhost/gambas/trunk@6911 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-25 17:06:41 +00:00
Benoît Minisini
7d2c75dcda [GB.GTK]
* BUG: Fix arrangement of ScrollView control.

[GB.GTK3]
* BUG: Fix arrangement of ScrollView control.


git-svn-id: svn://localhost/gambas/trunk@6910 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-25 02:35:51 +00:00
Benoît Minisini
e75bbafdb9 [GB.GTK]
* BUG: Do not crash when a piece of rich text contains the "</>" string.

[GB.GTK3]
* BUG: Do not crash when a piece of rich text contains the "</>" string.


git-svn-id: svn://localhost/gambas/trunk@6907 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-23 01:47:25 +00:00
Benoît Minisini
9d04f9cc58 [GB.GTK]
* BUG: Fix a possible GTK+ warning when drawing widget borders.
* BUG: Apply XIM workaround only on controls having their own input method.

[GB.GTK3]
* BUG: Fix a possible GTK+ warning when drawing widget borders.
* BUG: Apply XIM workaround only on controls having their own input method.


git-svn-id: svn://localhost/gambas/trunk@6906 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-23 00:46:53 +00:00
Benoît Minisini
2b4cbbb2cc [GB.GTK]
* BUG: The keyboard event management is being fixed again. Workaround the 
  strange behaviour of the XIM input method that raises keyboard events 
  twice.

[GB.GTK3]
* BUG: The keyboard event management is being fixed again. Workaround the 
  strange behaviour of the XIM input method that raises keyboard events 
  twice.


git-svn-id: svn://localhost/gambas/trunk@6905 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-23 00:21:34 +00:00
Benoît Minisini
7b6dd88035 [GB.GTK]
* BUG: Redesign the keyboard event management so that it works with all 
  input methods.
  
[GB.GTK3]
* BUG: Redesign the keyboard event management so that it works with all 
  input methods.


git-svn-id: svn://localhost/gambas/trunk@6904 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-22 21:06:50 +00:00
Benoît Minisini
9c7d9a6a1e [DEVELOPMENT ENVIRONMENT]
* NEW: Use specific gray icons for the debugging panel.
* BUG: Loading a new project correctly updates the desktop component 
  toolbar button.
* NEW: Balloon message have been replaced by the new MessageView control.

[GB.FORM]
* NEW: MessageView is a new control that implements an embedded 
  notification panel that is automatically hidden and shown if there is a 
  message to display.
* BUG: MenuButton: Draw the focus state correctly.

[GB.GTK]
* NEW: Now Frame can be replaced by any Panel-like containers in the IDE.

[GB.QT4]
* NEW: Now Frame can be replaced by any Panel-like containers in the IDE.


git-svn-id: svn://localhost/gambas/trunk@6879 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-02 20:08:18 +00:00
Benoît Minisini
f0822e71d1 [GB.FORM]
* BUG: TabPanel[].Closable works as expected now.

[GB.GTK]
* NEW: If the GB_X11_INIT_THREADS environment variable is defined to a non-
  null integer number, the X11 client library is initialized to support 
  multithreaded applications.

[GB.GTK3]
* NEW: If the GB_X11_INIT_THREADS environment variable is defined to a non-
  null integer number, the X11 client library is initialized to support 
  multithreaded applications.

[GB.GUI.BASE]
* NEW: The GridView automatic column resizing now uses Application.Busy and
  cannot run longer than five seconds.

[GB.QT4]
* NEW: If the GB_X11_INIT_THREADS environment variable is defined to a non-
  null integer number, the X11 client library is initialized to support 
  multithreaded applications.


git-svn-id: svn://localhost/gambas/trunk@6842 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-19 23:04:41 +00:00
Benoît Minisini
240b416dd8 [DEVELOPMENT ENVIRONMENT]
* NEW: Use the new filter feature of the ButtonBox control.
* NEW: Use the internal ComponentChooser control to replace the previous
  component selection in the project property dialog.

[GB.FORM]
* NEW: ButtonBox.Filter is a new property to make it act like a filter box.
  The new Filter event is raised when filtering must be triggered.
* NEW: ButtonBox.FilterMenu is a new property that allows to define the
  popup menu associated with the filter icon.

[GB.GTK]
* NEW: PictureBox.Padding is a new property that defines the inner padding 
  around the displayed picture.

[GB.GTK3]
* NEW: PictureBox.Padding is a new property that defines the inner padding 
  around the displayed picture.

[GB.GUI.BASE]
* BUG: GridView: Remove "Collapse" from the property list.

[GB.MEMCACHED]
* BUG: Fix a typo in a Memcached constant name.

[GB.QT4]
* NEW: PictureBox.Padding is a new property that defines the inner padding 
  around the displayed picture.


git-svn-id: svn://localhost/gambas/trunk@6819 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-09 08:53:49 +00:00
Benoît Minisini
5e92876cad [EXAMPLES]
* NEW: LCDLabel now uses gb.sdl2.audio.

[GB.FORM]
* BUG: The ToolPanel buttons now takes Style.FrameWidth into account.

[GB.GTK]
* BUG: Remove a debugging message.

[GB.QT4]
* BUG: Do not delete open windows later when the event loop is finished. 
  This is not supported by QT.


git-svn-id: svn://localhost/gambas/trunk@6797 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-02 14:31:23 +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
d3ebb6ccc8 [CONFIGURATION]
* NEW: Update the state of many components.

[DEVELOPMENT ENVIRONMENT]
* NEW: The project property dialog now uses an IconPanel.
* NEW: New design of the component tab in the project property dialog.

[GB.GUI.BASE]
* NEW: GridView: The background of the sorted column is now lighter.

[GB.QT4.WEBKIT]
* NEW: WebView.History is a new virtual access to get the number of entries 
  in the history, to set or get the current history entry index, and to get
  or set the history maximum capacity.


git-svn-id: svn://localhost/gambas/trunk@6788 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-01 11:46:48 +00:00
Benoît Minisini
ef0eae0250 [DEVELOPMENT ENVIRONMENT]
* NEW: Translation dialog: Add an option to replace existing translations 
  when importing an external translation file.
* OPT: Translation dialog: Closing the dialog is now faster.
* BUG: Farm server: Upgrading a software now does not raise en error 
  anymore.

[EXAMPLES]
* NEW: Update BeastScroll example to SDL2.

[GB.GTK]
* BUG: Implement the Invert property in vertical containers.

[GB.GTK3]
* BUG: Implement the Invert property in vertical containers.

[GB.QT4]
* BUG: Implement the Invert property in vertical containers.


git-svn-id: svn://localhost/gambas/trunk@6786 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-01 09:01:16 +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
4faa9876bf [DEVELOPMENT ENVIRONMENT]
* BUG: Fix initial focus of welcome dialog.

[INTERPRETER]
* BUG: Release standard i/o File objects before cleaning up the classes, to 
  avoid an incorrect "circular reference" message.

[GB.GTK]
* NEW: Link to the pthread library explicitly.
* NEW: WAIT inside a keybord handler does not raise an error anymore. It 
  just print a warning message and does nothing.

[GB.GTK3]
* NEW: Link to the pthread library explicitly.
* NEW: WAIT inside a keybord handler does not raise an error anymore. It 
  just print a warning message and does nothing.

[GB.UTIL]
* NEW: Date.EasterDay returns the Easter day of a specific year.

[GB.QT4]
* NEW: Link to the pthread library explicitly.
* NEW: WAIT inside a keybord handler does not raise an error anymore. It 
  just print a warning message and does nothing.

[GB.QT4.EXT]
* NEW: Editor.Font property now can take any font in the IDE.


git-svn-id: svn://localhost/gambas/trunk@6754 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-20 15:24:00 +00:00
Benoît Minisini
3c8efd56e9 [CONFIGURATION]
* NEW: Update chinese translations.

[EXAMPLES]
* NEW: Add screenshots, switch to 1.0 version, and publish.

[INTERPRETER]
* NEW: Allow WAIT to raise errors.

[GB.DESKTOP]
* NEW: DesktopWindow.Geometry is a new property that returns the geometry 
  of the window inside as a rectangle.
* NEW: DesktopWindow.Frame is a new property that returns the geometry 
  of the window outside (with the frame) as a rectangle.
* NEW: DesktopWindow.GetScreenshot() is a new method that returns a 
  screenshot of a window, with or without the frame.
* BUG: DesktopWindow X, Y, Width and Height properties return the window
  geometry without the frame.

[GB.GTK]
* NEW: Raise an error if WAIT is called during a keyboard event.

[GB.GTK3]
* NEW: Raise an error if WAIT is called during a keyboard event.

[GB.QT4]
* NEW: Raise an error if WAIT is called during a keyboard event.


git-svn-id: svn://localhost/gambas/trunk@6746 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-16 22:15:59 +00:00
Benoît Minisini
e6f3fb336e [GB.GTK]
* BUG: Menu opened through the PopupMenu property work correctly now.

[GB.GTK3]
* BUG: Menu opened through the PopupMenu property work correctly now.


git-svn-id: svn://localhost/gambas/trunk@6709 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-03 14:24:47 +00:00
Benoît Minisini
9926507f8d [GB.GTK]
* BUG: Fix warning with Slider or SpinBox when setting a minimum value 
  equal to the maximum value, or the contrary.

[GB.GTK3]
* BUG: Fix warning with Slider or SpinBox when setting a minimum value 
  equal to the maximum value, or the contrary.
* BUG: Paint.Reset() now works as expected on non-cached DrawingArea.


git-svn-id: svn://localhost/gambas/trunk@6629 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-11-11 01:46:28 +00:00
Benoît Minisini
2fd0373590 [GB.GTK]
* BUG: Fix an uninitialized variable.

[GB.GTK3]
* BUG: Fix an uninitialized variable.


git-svn-id: svn://localhost/gambas/trunk@6627 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-11-10 22:24:43 +00:00
Nigel Gerrard
506e7a468b [GB.GTK]
* BUG: Correct get_style function to use GType and not integer.
       Resolves issue with X Win crash in cygwin

[GB.GTK3]
* BUG: Correct get_style function to use GType and not integer.
       Resolves issue with X Win crash in cygwin


git-svn-id: svn://localhost/gambas/trunk@6626 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-11-10 21:33:40 +00:00
Benoît Minisini
300d36e7b6 [GB.GTK]
* BUG: Ensure that Clipboard.Paste() behaves the same as in gb.qt4.

[GB.GTK3]
* BUG: Ensure that Clipboard.Paste() behaves the same as in gb.qt4.


git-svn-id: svn://localhost/gambas/trunk@6589 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-30 02:03:27 +00:00
Benoît Minisini
2adf90242b [GB.GTK]
* BUG: Fix input method handling: key events cancellation and key repeat 
  are correctly taken into account now. The "X input method" does not work 
  (key events are internally sent four times!).

[GB.GTK3]
* BUG: Fix input method handling: key events cancellation and key repeat 
  are correctly taken into account now.


git-svn-id: svn://localhost/gambas/trunk@6585 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-27 23:43:56 +00:00
Benoît Minisini
c971d3e7ca [DEVELOPMENT ENVIRONMENT]
* NEW: Put the publishing configuration and registration in the option 
  dialog.

[GB.FORM]
* BUG: SwitchButton: Use a "disable" look for ON and OFF state when the
  Enabled property is FALSE.
* NEW: ListEditor is a new control that allows to edit the contents of a
  ListBox control.

[GB.GTK]
* BUG: Remove a debugging message.
* BUG: TextBox: Postpone the Change event so that replacing the selection 
  raises a unique Change event.

[GB.NET.SMTP]
* NEW: Add a Content-Disposition header to attachments.

[GB.WEB]
* NEW: The default response content type is now HTML with UTF-8 charset.


git-svn-id: svn://localhost/gambas/trunk@6574 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-25 14:32:48 +00:00
Benoît Minisini
2535f9ad76 [EXAMPLES]
* BUG: MoviePlayer: Use an embedder as mplayer container. It's the only 
  control that has its own X11 window in all toolkits.

[GB.GTK]
* BUG: Ensure that the Embedder background is painted.


git-svn-id: svn://localhost/gambas/trunk@6569 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-20 14:17:48 +00:00
Benoît Minisini
ec8627f540 [GB.GTK]
* BUG: Use GtkSelectionData accessor function.

[GB.GTK3]
* BUG: Use GtkSelectionData accessor function.



git-svn-id: svn://localhost/gambas/trunk@6563 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-18 22:27:13 +00:00
Benoît Minisini
892fa0be41 [GB.FORM]
* NEW: Add a copy menu entry to the FileChooser and DirChooser controls.

[GB.GTK]
* BUG: Clipboard.Copy() now works for all text formats.

[GB.GTK3]
* BUG: Clipboard.Copy() now works for all text formats.


git-svn-id: svn://localhost/gambas/trunk@6562 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-18 20:04:22 +00:00
Benoît Minisini
1ee8120382 [GB.GTK]
* BUG: Start fixing drag and drop.

[GB.GTK3]
* BUG: Start fixing drag and drop.
* BUG: Remove two symbolic links on source files that do not exist anymore.


git-svn-id: svn://localhost/gambas/trunk@6561 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-18 18:09:07 +00:00
Benoît Minisini
77ad93e7a6 [GB.GTK]
* BUG: Correctly interpret "&#xxx;" HTML entities in rich text.

[GB.GTK3]
* BUG: Correctly interpret "&#xxx;" HTML entities in rich text.


git-svn-id: svn://localhost/gambas/trunk@6560 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-18 13:38:22 +00:00
Benoît Minisini
d2b8cc6af9 [GB.GTK]
* BUG: Fix missing file in Makefile.am


git-svn-id: svn://localhost/gambas/trunk@6542 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-12 22:18:13 +00:00
Benoît Minisini
26f3daa0c5 [GB.FORM]
* NEW: FontChooser.ShowRelative is a new property that set if relative 
  sizes are allowed or not. They are allowed by default.

[GB.FORM.DIALOG]
* NEW: Dialog.FixedOnly is a new property to set if the font chooser will 
  show fixed fonts only.

[GB.QT4]
* BUG: DrawingArea.Clear now raises an error if the DrawingArea is cached 
  and if it currently being painted.

[GB.GTK]
* BUG: DrawingArea.Clear() works as expected now.
* BUG: DrawingArea.Clear now raises an error if the DrawingArea is cached 
  and if it currently being painted.

[GB.GTK3]
* BUG: DrawingArea.Clear now raises an error if the DrawingArea is cached 
  and if it currently being painted.
* BUG: No more warning printed when paiting or clearing a DrawingArea.


git-svn-id: svn://localhost/gambas/trunk@6528 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-10 19:23:44 +00:00
Benoît Minisini
05f20c33e4 [GB.GTK]
* BUG: Fix 'Menu' event and PopupMenu property behaviour. The default 
  behaviour of the control is cancelled if: the PopupMenu property is 
  defined, or if the 'Menu' event is stopped with STOP EVENT, of if a popup
  menu is displayed during the 'Menu' event handler.

[GB.GTK3]
* BUG: Fix 'Menu' event and PopupMenu property behaviour. The default 
  behaviour of the control is cancelled if: the PopupMenu property is 
  defined, or if the 'Menu' event is stopped with STOP EVENT, of if a popup
  menu is displayed during the 'Menu' event handler.

[GB.QT4]
* BUG: Fix 'Menu' event and PopupMenu property behaviour. The default 
  behaviour of the control is cancelled if: the PopupMenu property is 
  defined, or if the 'Menu' event is stopped with STOP EVENT, of if a popup
  menu is displayed during the 'Menu' event handler.


git-svn-id: svn://localhost/gambas/trunk@6519 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-04 12:56:02 +00:00
Benoît Minisini
efc902a82a [GB.GTK]
* BUG: Fix menu item drawing again.

[GB.GTK3]
* BUG: Fix menu item drawing again.


git-svn-id: svn://localhost/gambas/trunk@6478 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-09-15 03:40:50 +00:00
Benoît Minisini
3067da6c5d [DEVELOPMENT ENVIRONMENT]
* NEW: Support for the new Menu.Radio property.

[GB.DB]
* BUG: Add an explicit warning message when a connection password must be 
  retrieved and the 'gb.desktop' component is not loaded.

[GB.GTK]
* NEW: Menu has a new Radio property that defines if a menu item must act 
  as a radio button. All successive menu items having the Radio property 
  set are mutually exclusive.
* BUG: Fix how menu items are drawn.

[GB.GTK3]
* NEW: Menu has a new Radio property that defines if a menu item must act 
  as a radio button. All successive menu items having the Radio property 
  set are mutually exclusive.
* BUG: Fix how menu items are drawn.

[GB.QT4]
* NEW: Menu has a new Radio property that defines if a menu item must act 
  as a radio button. All successive menu items having the Radio property 
  set are mutually exclusive.


git-svn-id: svn://localhost/gambas/trunk@6477 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-09-15 03:28:41 +00:00
Benoît Minisini
7f5f591f89 [DEVELOPMENT ENVIRONMENT]
* NEW: Recent file list is now stored in the following file:
  '~/.local/config/gambas3/gambas3.recent.conf'
* BUG: Fix the CC mail address of the crash report.

[WIKI CGI SCRIPT]
* BUG: Correctly read information files of components having a class 
  defined both in the C/C++ part and in the Gambas part.

[GB.FORM]
* BUG: Fix the balloon drawing routine. It should never be transparent 
  anymore.

[GB.GTK]
* BUG: Automatic grabbing on mouse button press is now released if the 
  top-level window of the target control is hidden during the grab.

[GB.GTK3]
* BUG: Automatic grabbing on mouse button press is now released if the 
  top-level window of the target control is hidden during the grab.


git-svn-id: svn://localhost/gambas/trunk@6474 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-09-14 14:35:56 +00:00
Benoît Minisini
68c3701c55 [GB.GTK]
* BUG: Fix input method handling.

[GB.GTK3]
* BUG: Fix input method handling.


git-svn-id: svn://localhost/gambas/trunk@6469 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-09-13 12:41:31 +00:00
Benoît Minisini
37fc199475 [DEVELOPMENT ENVIRONMENT]
* BUG: Fixes in the new procedure list.
* NEW: Add the executable size in the project statistics.

[GB.FORM]
* NEW: Bookmark editor: Now you can edit the name of the bookmark by just 
  clicking inside the table.

[GB.GUI.BASE]
* NEW: The height argument of Paint.TrimText() and Paint.TrimRichText() is 
  now optional. It takes the font height if omitted.
* BUG: ScrollArea does not override the current clipping anymore. It fixed
  the TableView edit cell drawing artifacts with GTK+2. In other words,
  never assign Draw.ClipRect while drawing with GTK+2!
* NEW: ScrollArea border is now a plain border, and not a sunken one 
  anymore. I find it nicer.

[GB.GTK]
* BUG: Fix borderless TextBox padding to be the same as with gb.qt4.

[GB.GTK3]
* BUG: Fix borderless TextBox padding to be the same as with gb.qt4.
* BUG: Borderless TextBox has now always a flat background, whatever the 
  widget style.


git-svn-id: svn://localhost/gambas/trunk@6466 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-09-11 14:19:14 +00:00
Benoît Minisini
ebaf84261d [DEVELOPMENT ENVIRONMENT]
* BUG: Fix background color of code editor tooltip messages.

[GB.FORM]
* NEW: MenuButton now uses the new DrawingArea Font event.
* BUG: Fix FileChoose/DirChooser directory buttons layout.

[GB.GUI.BASE]
* NEW: Paint.TrimRichText() is a new method that trims some rich text to a
  specific size, adding ellipsis if needed.
* NEW: Use smaller arrows in TreeView and GridView headers.
* BUG: TreeView now should keep the selection correctly while an item is
  expanded or collapsed.

[GB.GTK]
* NEW: DrawingArea now raises a new Font event when its font changes.

[GB.GTK3]
* NEW: DrawingArea now raises a new Font event when its font changes.
* BUG: Style.PaintArrow() now works correctly.


git-svn-id: svn://localhost/gambas/trunk@6462 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-09-09 13:54:42 +00:00
Benoît Minisini
7e0011226b [INTERPRETER]
* NEW: System.Log() is a new method that send a message to the system log.
  Useful if you write a daemon.

[GB.FORM]
* NEW: New design of FileChooser and DirChooser.

[GB.GUI.BASE]
* BUG: Fix the automatic scrolling behaviour of GridView and all its 
  children classes.
* BUG: Fix new ligheter selection color of IconView.
* BUG: Fix automatic scrolling of newly expanded item in TreeView and 
  ColumnView.

[GB.GTK]
* BUG: Fix Style.ForegroundOf() method.

[GB.GTK3]
* BUG: Fix Style.BackgroundOf() method.

[GB.QT4]
* NEW: DrawingArea now raises a new Font event when its font changes.
* BUG: Controls now take the alpha component of foreground and background 
  colors into account.


git-svn-id: svn://localhost/gambas/trunk@6461 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-09-09 06:59:03 +00:00
Benoît Minisini
06c736add7 [GB.GTK]
* BUG: A reparented control does not lose its default foreground or 
  background color anymore.


git-svn-id: svn://localhost/gambas/trunk@6457 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-09-07 20:27:04 +00:00
Benoît Minisini
b90b6061b8 [DEVELOPMENT ENVIRONMENT]
* NEW: Changes in project open dialog design.

[GB.GTK]
* BUG: Fix auto-resized labels layout.

[GB.QT4]
* BUG: Auto-resized labels correctly update their size when their border 
  property is modified.


git-svn-id: svn://localhost/gambas/trunk@6452 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-09-06 09:34:34 +00:00
Benoît Minisini
f0c1464ff2 [GB.GTK]
* NEW: Remove useless gb.gtk exported functions.
* OPT: Prevent an unneeded image conversion in Paint.DrawImage().

[GB.GTK3]
* NEW: Remove useless gb.gtk3 exported functions.
* OPT: Prevent an unneeded image conversion in Paint.DrawImage().


git-svn-id: svn://localhost/gambas/trunk@6431 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-08-27 11:53:37 +00:00
Benoît Minisini
059a61ff3f [GB.GTK]
* BUG: Try to fix GTK+ keyboard events handling, whatever the input method 
  does with them.

[GB.GTK3]
* BUG: Try to fix GTK+ keyboard events handling, whatever the input method 
  does with them. Some problems specific to GTK+3 yet.


git-svn-id: svn://localhost/gambas/trunk@6424 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-08-23 12:21:03 +00:00
Benoît Minisini
6afea7421a [GB.GTK]
* NEW: Add an environment variable to debug keypress events.


git-svn-id: svn://localhost/gambas/trunk@6420 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-08-22 11:16:35 +00:00
Benoît Minisini
95d0f89346 [GB.GTK]
* BUG: Fix session management compilation.

[GB.GTK3]
* BUG: Fix session management compilation.



git-svn-id: svn://localhost/gambas/trunk@6394 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-07-21 22:49:03 +00:00
Benoît Minisini
ae23faf1a3 [GB.GTK]
* NEW: Support for automatic session management.

[GB.GTK3]
* NEW: Support for automatic session management.


git-svn-id: svn://localhost/gambas/trunk@6393 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-07-21 04:18:55 +00:00
Benoît Minisini
86c06592c3 [DEVELOPMENT ENVIRONMENT]
* BUG: Now the offline help on component symbols should be displayed 
  correctly in any case.
* NEW: Support for automatic session management.
* BUG: Some fixes in single file editing mode.

[INTERPRETER]
* NEW: Args.All is a new property that returns all the command-line 
  arguments as a string array. Not definitive: it may be removed in the
  future.

[GB.GTK]
* NEW: Application.Restart is a new property that allows to define the 
  application restart command for the session manager. Beware that it has
  no effect at the moment!

[GB.QT4]
* NEW: Support for automatic session management. Only gb.qt4 implements it
  at the moment.
* NEW: Application.Restart is a new property that allows to define the 
  application restart command for the session manager.



git-svn-id: svn://localhost/gambas/trunk@6392 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-07-20 14:41:54 +00:00