Commit graph

871 commits

Author SHA1 Message Date
Benoît Minisini
a0f12eea97 [GB.QT4]
* BUG: ComboBox: Assigning zero to the Index property now works correctly in all cases if the ComboBox is editable.

[GB.QT5]
* BUG: ComboBox: Assigning zero to the Index property now works correctly in all cases if the ComboBox is editable.


git-svn-id: svn://localhost/gambas/trunk@7580 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-01-16 16:49:08 +00:00
Benoît Minisini
e1ee3f7115 [GB.QT4]
* BUG: Window.Border property works correctly again.


git-svn-id: svn://localhost/gambas/trunk@7515 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-12-12 11:39:20 +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
fca1fb8e0e [DEVELOPMENT ENVIRONMENT]
* BUG: Fix image selection when the allowed image root directory is the
  '.public' special directory.
* NEW: Replace 'WebformImage' property kind by 'WebImage'.
* BUG: Form editor: Fix automatic arrangement.
* NEW: Form editor: Allow background and foreground toolbar buttons for
  WebForms.
* BUG: WebImage can display SVG files too.

[GB.WEB.FORM]
* NEW: Add some new color constants to the Color class.

[GB.GEOM]
* NEW: Move the declaration of alignment constants there.
* NEW: Rect.Stretch() is a new method that stretches a rectangle so that it
  fits inside another rectangle frame while keeping its proportions.
* NEW: RectF.Stretch() is a new method that stretches a rectangle so that
  it fits inside another rectangle frame while keeping its proportions.


git-svn-id: svn://localhost/gambas/trunk@7505 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-12-05 18:44:58 +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
759dabeb81 [GB.GTK]
* BUG: Fix crashes on desktops not defining some X11 properties.

[GB.GTK3]
* BUG: Fix crashes on desktops not defining some X11 properties.

[GB.QT4]
* BUG: Fix crashes on desktops not defining some X11 properties.

[GB.QT5]
* BUG: Fix crashes on desktops not defining some X11 properties.


git-svn-id: svn://localhost/gambas/trunk@7480 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-16 14:31:24 +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
0f5e67b85e [GB.QT4]
* BUG: Disable warning messages when rendering a SVG file.

[GB.QT5]
* BUG: Disable warning messages when rendering a SVG file.


git-svn-id: svn://localhost/gambas/trunk@7449 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-11-03 16:13:45 +00:00
Benoît Minisini
657266cf4b [GB.QT4]
* BUG: Draw masked windows the same way as in gb.gtk.

[GB.QT5]
* BUG: Draw masked windows the same way as in gb.gtk.


git-svn-id: svn://localhost/gambas/trunk@7417 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-17 18:36:53 +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
156ca6984b [DEVELOPMENT ENVIRONMENT]
* NEW: Form editor: Draw toolbar icons of project exported controls larger, 
  so that they are more readable.
* BUG: Form editor: Set the Design property of controls the later as 
  possible. That way it is propagated to inner controls that are created
  after because of a control property.

[GB.QT4]
* BUG: Style.Name now returns "Breeze" if the patched breeze style is used.

[GB.QT5]
* BUG: Style.Name now returns "Breeze" if the patched breeze style is used.


git-svn-id: svn://localhost/gambas/trunk@7402 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-09 23:08:48 +00:00
Benoît Minisini
64e95ed8e1 [GB.FORM.MDI]
* NEW: Use more granular sizes for stock icons, so that they are not too 
  small for some font sizes.

[GB.QT4]
* BUG: Desktop.Scale is now updated before window Font events are sent.
  
[GB.QT5]
* BUG: Desktop.Scale is now updated before window Font events are sent.


git-svn-id: svn://localhost/gambas/trunk@7380 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-03 23:57:14 +00:00
Benoît Minisini
becf3487d4 [GB.QT4]
* BUG: Don't send a move request for windows whose initial position is 
  X = 0 and Y = 0, as gb.gtk does.
  
[GB.QT5]
* BUG: Don't send a move request for windows whose initial position is 
  X = 0 and Y = 0, as gb.gtk does.
  

git-svn-id: svn://localhost/gambas/trunk@7377 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-02 23:23:22 +00:00
Benoît Minisini
e115c34a66 [DEVELOPMENT ENVIRONMENT]
* NEW: List property dialog: Invert button.
* BUG: Image editor: Many bug fixes in draw, erase, and line tool.
* NEW: New icons for networking controls.

[GB.DB.FORM]
* NEW: New icon for DataSource control.

[GB.QT4]
* BUG: DrawingArea now can be resized during a paint event as soon as it is 
  not cached.

[GB.QT5]
* BUG: DrawingArea now can be resized during a paint event as soon as it is 
  not cached.


git-svn-id: svn://localhost/gambas/trunk@7375 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-01 20:55:19 +00:00
Benoît Minisini
afd98e3f55 [CONFIGURATION]
* NEW: Redraw many control icons.


git-svn-id: svn://localhost/gambas/trunk@7366 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-29 12:53:38 +00:00
Benoît Minisini
dee14e9672 [GB.QT4]
* NEW: Add one more test for XFCE desktop detection.


git-svn-id: svn://localhost/gambas/trunk@7365 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-29 00:14:00 +00:00
Benoît Minisini
222f066b69 [GB.GTK]
* BUG: Fix detection of XFCE desktop.

[GB.GTK3]
* BUG: Fix detection of XFCE desktop.

[GB.QT4]
* BUG: Fix detection of XFCE desktop.

[GB.QT5]
* BUG: Fix detection of XFCE desktop.


git-svn-id: svn://localhost/gambas/trunk@7361 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-27 21:58:32 +00:00
Benoît Minisini
ade4524d67 [DEVELOPMENT ENVIRONMENT]
* BUG: Property sheet: Fix text property edit dialog.
* BUG: Property sheet: Double-clicking on read-only properties does not 
  open the text property edit dialog anymore.
  
[GB.DEBUG]
* BUG: Fix profiler error messages.
  
[GB.QT4]
* BUG: Startup forms with Visible property set to FALSE are not shown at
  startup anymore.
  
[GB.QT5]
* BUG: Startup forms with Visible property set to FALSE are not shown at
  startup anymore.


git-svn-id: svn://localhost/gambas/trunk@7355 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-27 15:11:50 +00:00
Benoît Minisini
0a9262a2d8 [GB.FORM]
* NEW: Use Desktop.Type to get the current desktop.

[GB.GTK]
* NEW: Assume that the contents of XDG_CURRENT_DESKTOP is the current 
  desktop as soon as other detection methods have failed.

[GB.GTK3]
* NEW: Assume that the contents of XDG_CURRENT_DESKTOP is the current 
  desktop as soon as other detection methods have failed.

[GB.QT4]
* NEW: Assume that the contents of XDG_CURRENT_DESKTOP is the current 
  desktop as soon as other detection methods have failed.

[GB.QT5]
* NEW: Assume that the contents of XDG_CURRENT_DESKTOP is the current 
  desktop as soon as other detection methods have failed.


git-svn-id: svn://localhost/gambas/trunk@7345 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-25 22:47:37 +00:00
Benoît Minisini
8a1d5903e0 [GB.QT4]
* BUG: Remove a debugging message.

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


git-svn-id: svn://localhost/gambas/trunk@7332 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-23 19:08:37 +00:00
Benoît Minisini
957e31dea8 [GB.QT4]
* BUG: Window.TakeFocus works again.

[GB.QT5]
* BUG: Window.TakeFocus works again.


git-svn-id: svn://localhost/gambas/trunk@7319 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-17 22:13:38 +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
57b1daf05d [GB.FORM.EDITOR]
* NEW: TextEditor: Some ANSI codes are taken into account by the Print() 
  method.
* OPT: TextEditor: Print() modifications are not put in the undo buffer.

[GB.QT4]
* BUG: The parent window of a modal window is correctly set now.
* BUG: Window.Visible property does nothing when set with its current 
  value.

[GB.QT5]
* BUG: The parent window of a modal window is correctly set now.
* BUG: Window.Visible property does nothing when set with its current 
  value.


git-svn-id: svn://localhost/gambas/trunk@7299 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-12 15:57:55 +00:00
Benoît Minisini
807893eed8 [GB.QT4]
* BUG: Fix initial window screen again.

[GB.QT5]
* BUG: Fix initial window screen again.


git-svn-id: svn://localhost/gambas/trunk@7286 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-07 00:30:33 +00:00
Benoît Minisini
70c569d138 [DEVELOPMENT ENVIRONMENT]
* BUG: Don't define an initial position to the tips window.

[GB.QT4]
* BUG: Yes, initial screen of new windows needs to be fixed again.

[GB.QT5]
* BUG: Yes, initial screen of new windows needs to be fixed again.


git-svn-id: svn://localhost/gambas/trunk@7285 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-07 00:01:00 +00:00
Benoît Minisini
ad812ae32e [GB.QT4]
* BUG: Guess what: continue fixing modal dialog initial screen...

[GB.QT5]
* BUG: Guess what: continue fixing modal dialog initial screen...


git-svn-id: svn://localhost/gambas/trunk@7284 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-06 22:54:56 +00:00
Benoît Minisini
f40a9f1054 [GB.QT4]
* BUG: Continue fixing modal dialog initial screen...

[GB.QT5]
* BUG: Continue fixing modal dialog initial screen...


git-svn-id: svn://localhost/gambas/trunk@7283 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-06 22:34:17 +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
2429c746c0 [GB.QT4]
* BUG: Raise an error when calling Screen[] with an incorrect index.
* BUG: Fix modal dialog initial screen again.

[GB.QT5]
* BUG: Raise an error when calling Screen[] with an incorrect index.
* BUG: Fix modal dialog initial screen again.


git-svn-id: svn://localhost/gambas/trunk@7280 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-06 14:10:57 +00:00
Benoît Minisini
29306e8476 [GB.QT4]
* BUG: Modal dialogs now should be centered in the screen of their parent 
  window, not always in the main screen anymore.

[GB.QT5]
* BUG: Modal dialogs now should be centered in the screen of their parent 
  window, not always in the main screen anymore.


git-svn-id: svn://localhost/gambas/trunk@7279 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-06 13:19:46 +00:00
Benoît Minisini
8ad98f6207 [GB.QT4]
* NEW: Breeze widget theme patch to fix its bugs on small TextBox, ComboBox 
  and SpinBox controls.

[GB.QT5]
* NEW: Breeze widget theme patch to fix its bugs on small TextBox, ComboBox 
  and SpinBox controls.


git-svn-id: svn://localhost/gambas/trunk@7259 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-01 02:47:09 +00:00
Benoît Minisini
2c312b8551 [GB.QT4]
* BUG: Correctly initialize window properties when showing it in all cases.


git-svn-id: svn://localhost/gambas/trunk@7241 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-25 23:17:38 +00:00
Benoît Minisini
0ed5209b0b [GB.QT4]
* BUG: Revert change from r7227 to see if it fixes Karl Reinl's problems.


git-svn-id: svn://localhost/gambas/trunk@7236 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-24 20:56:20 +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
Adrien Prokopowicz
3b82e9aaf1 [GB.QT4]
* BUG: Workaround a race condition in X11 which prevents window attributes
  from being correctly set when setting a child DrawingArea's background
  color right afterwards.

git-svn-id: svn://localhost/gambas/trunk@7227 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-16 19:31:41 +00:00
Benoît Minisini
0b478e2d81 [GB.QT4]
* BUG: Newly created ToolButton does not resize its parent unexpectedly 
  anymore.
  
[GB.QT5]
* BUG: Newly created ToolButton does not resize its parent unexpectedly 
  anymore.


git-svn-id: svn://localhost/gambas/trunk@7215 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-01 16:44:06 +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
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
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
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
3fda289f8c [GB.FORM.EDITOR]
* NEW: TextEditor: Ctrl+Delete now deletes the word right to the cursor.


git-svn-id: svn://localhost/gambas/trunk@7158 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-29 19:24:19 +00:00
Benoît Minisini
d3f35cf7c8 [GB.QT4]
* BUG: TrayIcon: Correctly raise Scroll event.

[GB.QT5]
* BUG: TrayIcon: Correctly raise Scroll event.


git-svn-id: svn://localhost/gambas/trunk@7156 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-29 02:34:46 +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
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