Commit graph

61 commits

Author SHA1 Message Date
gambas
f7cd9542c8 'Desktop.Type' property is now implemented in 'gb.gui.base'.
[GB.GTK]
* NEW: 'Desktop.Type' property is now implemented in 'gb.gui.base'.

[GB.GTK3]
* NEW: 'Desktop.Type' property is now implemented in 'gb.gui.base'.

[GB.QT4]
* NEW: 'Desktop.Type' property is now implemented in 'gb.gui.base'.

[GB.QT5]
* NEW: 'Desktop.Type' property is now implemented in 'gb.gui.base'.
2021-08-18 21:53:06 +02:00
gambas
46cdd482dc Fix startup initialization.
[GB.GTK3]
* BUG: Fix startup initialization.
2021-07-23 23:52:15 +02:00
gambas
212d0bdcb5 Forgot to comment a debugging variable declaration.
[GB.GTK3.WEBVIEW]
* BUG: Forgot to comment a debugging variable declaration.
2021-05-24 21:53:59 +02:00
gambas
866b512e0e Try to make Qt5 and GTK+3 webview raise their events the same way when loading pages.
[GB.GTK3.WEBVIEW]
* BUG: Try to make Qt5 and GTK+3 webview raise their events the same way when loading pages.

[GB.QT5.WEBVIEW]
* BUG: Try to make Qt5 and GTK+3 webview raise their events the same way when loading pages.
2021-05-24 21:33:57 +02:00
gambas
b01f603a4c Display the warning about calling the event loop during a keyboard event once.
[GB.GTK]
* NEW: Display the warning about calling the event loop during a keyboard event once.

[GB.GTK3]
* NEW: Display the warning about calling the event loop during a keyboard event once.

[GB.QT4]
* NEW: Display the warning about calling the event loop during a keyboard event once.

[GB.QT5]
* NEW: Display the warning about calling the event loop during a keyboard event once.
2021-05-14 01:19:29 +02:00
gambas
61ff5b9091 Disable a setting flag deprecated in WebKitGTK >= 2.32.0.
[GB.GTK3.WEBVIEW]
* BUG: Disable a setting flag deprecated in WebKitGTK >= 2.32.0.
2021-05-12 14:22:04 +02:00
gambas
25edb08f68 The GTK+3 GLArea control now works, by forcing the legacy mode.
[GB.GTK3.OPENGL]
* BUG: GLArea: Force legacy mode (OpenGL < 3.2), unless the 'GDK_GL' environment variale is already defined.
* BUG: GlArea: The control can now take the focus.
2021-05-02 00:31:54 +02:00
gambas
42673b0b2c New component that provides GlArea OpenGL control for 'gb.gtk3'. Does not work yet.
[GB.GTK3.OPENGL]
* NEW: New component that provides GlArea OpenGL control for 'gb.gtk3'. Does not work yet.
2021-04-30 21:44:30 +02:00
gambas
28ce6efc4c Don't remove file descriptors watches in the 'quit' hook to behave like Qt components.
[GB.GTK]
* BUG: Don't remove file descriptors watches in the 'quit' hook to behave like Qt components.

[GB.GTK3]
* BUG: Don't remove file descriptors watches in the 'quit' hook to behave like Qt components.
2021-04-30 00:33:20 +02:00
gambas
8002a21b1d Fix deferred arrangement because of a weird GTK+3 behaviour (2).
[GB.GTK3]
* BUG: Fix deferred arrangement because of a weird GTK+3 behaviour (2).
2021-04-18 23:47:56 +02:00
gambas
a41ae3d0bf WAIT instruction now processes all pending events.
[GB.GTK3]
* BUG: WAIT instruction now processes all pending events.
2021-03-30 13:17:07 +02:00
gambas
d65bd209d3 Remove Label and TextLabel controls. Support for UserControl_Font() handler. Some text size computation fixes.
[GB.GTK]
* NEW: Remove Label and TextLabel controls.
* NEW: Call UserControl_Font() handler when the UserControl font changes.
* BUG: Font size computation takes into account Pango ink rectangle.

[GB.GTK3]
* NEW: Remove Label and TextLabel controls.
* NEW: Call UserControl_Font() handler when the UserControl font changes.
* BUG: Font size computation takes into account Pango ink rectangle.

[GB.QT4]
* NEW: Remove Label and TextLabel controls.
* NEW: Call UserControl_Font() handler when the UserControl font changes.
* BUG: Border drawing routine now preserves paint color.
* BUG: All Paint text routines now workaround the font assignment bug.

[GB.QT5]
* NEW: Remove Label and TextLabel controls.
* NEW: Call UserControl_Font() handler when the UserControl font changes.
* BUG: Border drawing routine now preserves paint color.
* BUG: All Paint text routines now workaround the font assignment bug.
2021-03-06 13:17:35 +01:00
gambas
e0132ab1f2 Fix control enumerations.
[GB.GTK]
* BUG: Fix enumeration of all application controls.
* BUG: Fix enumeration of the controls of a specific window.

[GB.GTK3]
* BUG: Fix enumeration of all application controls.
* BUG: Fix enumeration of the controls of a specific window.
2021-03-06 13:17:35 +01:00
gambas
3d3fff17f7 Start to rework top-level window layout management.
[GB.GTK]
* BUG: Start to rework top-level window layout management.

[GB.GTK3]
* BUG: Start to rework top-level window layout management.
2021-03-06 13:17:35 +01:00
gambas
d900937949 Add an Orientation property to ScrollBar and Sldider that allows to define the orientation explicitly.
[GB.FORM]
* NEW: SliderBox: Use the new Slider.Orientation property.

[GB.GUI.BASE]
* NEW: ScrollArea: Use the new ScrollBar.Orientation property.

[GB.GTK]
* NEW: ScrollBar: Add orientation constants.
* NEW: ScrollBar: Orientation is a new property that allows to define the orientation explicitly.
* NEW: Slider: Orientation is a new property that allows to define the orientation explicitly.

[GB.GTK3]
* NEW: ScrollBar: Add orientation constants.
* NEW: ScrollBar: Orientation is a new property that allows to define the orientation explicitly.
* NEW: Slider: Orientation is a new property that allows to define the orientation explicitly.

[GB.QT4]
* NEW: ScrollBar: Add orientation constants.
* NEW: ScrollBar: Orientation is a new property that allows to define the orientation explicitly.
* NEW: Slider: Orientation is a new property that allows to define the orientation explicitly.

[GB.QT5]
* NEW: ScrollBar: Add orientation constants.
* NEW: ScrollBar: Orientation is a new property that allows to define the orientation explicitly.
* NEW: Slider: Orientation is a new property that allows to define the orientation explicitly.
2021-02-22 14:54:52 +01:00
gambas
f94a927e9c WebView: Implementing the Menu event automatically disables the default popup menu.
[GB.GTK3.WEBVIEW]
* NEW: WebView: Implementing the Menu event automatically disables the default popup menu.

[GB.QT4.WEBVIEW]
* NEW: WebView: Implementing the Menu event automatically disables the default popup menu.

[GB.QT5.WEBVIEW]
* NEW: WebView: Implementing the Menu event automatically disables the default popup menu.
2021-01-26 16:28:47 +01:00
gambas
b39e26a059 WebView: ExecJavascript() is a new method to run some javascript code in the browser and get the result.
[GB.GTK3.WEBVIEW]
* NEW: WebView: ExecJavascript() is a new method to run some javascript code in the browser and get the result.

[GB.QT4.WEBVIEW]
* NEW: WebView: ExecJavascript() is a new method to run some javascript code in the browser and get the result.

[GB.QT5]
* BUG: Forgot to implement the QT.GetDesktopScale() API.

[GB.QT5.WEBVIEW]
* NEW: WebView: ExecJavascript() is a new method to run some javascript code in the browser and get the result.
2021-01-25 08:05:25 +01:00
gambas
f588c83fda PictureBox now uses the new UserControl Draw pseudo-event and Frame container in now implemented in Gambas.
[GB.DRAW]
* NEW: Add PaintExtents W and H properties as synonymous of Width and Height.

[GB.GUI.BASE]
* NEW: PictureBox now uses the new UserControl Draw pseudo-event.
* NEW: Frame container in now implemented in Gambas.

[GB.GTK]
* NEW: Frame container in now implemented in Gambas.
* BUG: Style drawing routines now work correctly on UserControl.

[GB.GTK3]
* NEW: Frame container in now implemented in Gambas.

[GB.QT4]
* NEW: Frame container in now implemented in Gambas.

[GB.QT5]
* NEW: Frame container in now implemented in Gambas.
* BUG: Do not activate windows on Wayland, this is not supported.
2021-01-23 23:30:36 +01:00
gambas
bc170a2317 UserControl now can paint itself through a UserControl_Draw method.
[GB.GTK]
* NEW: UserControl now can paint itself through a UserControl_Draw method.

[GB.GTK3]
* NEW: UserControl now can paint itself through a UserControl_Draw method.
* BUG: Remove debugging message.

[GB.GUI.BASE]
* NEW: Separator: Use the new painting pseudo-event of UserControl.

[GB.QT4]
* NEW: UserControl now can paint itself through a UserControl_Draw method.

[GB.QT5]
* NEW: UserControl now can paint itself through a UserControl_Draw method.
2021-01-23 02:44:46 +01:00
gambas
b4ab1027d8 Separator is now a Gambas-made control.
[GB.GTK]
* NEW: Remove Separator control.
* BUG: Fix minimum size computation.

[GB.GTK3]
* NEW: Remove Separator control.
* BUG: Fix minimum size computation.

[GB.GUI.BASE]
* NEW: Separator is now a Gambas-made control.

[GB.QT4]
* NEW: Remove Separator control.

[GB.QT5]
* NEW: Remove Separator control.
2021-01-22 23:53:27 +01:00
gambas
01a666387f WebView: Finish event is correctly raised when the loaded URI is in the current page.
[GB.GTK3.WEBVIEW]
* BUG: WebView: Finish event is correctly raised when the loaded URI is in the current page.

[GB.QT4.WEBVIEW]
* BUG: WebView: Finish event is correctly raised when the loaded URI is in the current page.
* BUG: WebView: Start event is correctly raised.
* BUG: WebView: Cancelling the Start event now should cancel the load.

[GB.QT5.WEBVIEW]
* BUG: WebView: Finish event is correctly raised when the loaded URI is in the current page.
2021-01-22 21:04:56 +01:00
gambas
1c3e02257c Signal handlers are now checked only if requested explicitly by a component.
[INTERPRETER]
* OPT: Signal handlers are now checked only if requested explicitly by a component.

[GB.GTK]
* NEW: Request SIGCHLD handler check.

[GB.GTK3]
* NEW: Request SIGCHLD handler check.
2021-01-21 01:49:38 +01:00
gambas
d2349cdb6c Fix GTK+3 'get_preferred_height_and_baseline_for_width' overriding.
[GB.GTK3]
* BUG: Fix GTK+3 'get_preferred_height_and_baseline_for_width' overriding.
2021-01-18 23:01:07 +01:00
gambas
ab307322bf Do not crash if expanded widgets change during arrangement. Fix GTK+ window centering method.
[GB.GTK]
* BUG: Do not crash if expanded widgets change during arrangement.

[GB.GTK3]
* BUG: Remove platform-specific window centering method.
* BUG: Do not crash if expanded widgets change during arrangement.

[GB.QT4]
* BUG: Do not crash if expanded widgets change during arrangement.

[GB.QT5]
* BUG: Do not crash if expanded widgets change during arrangement.
2021-01-18 22:27:33 +01:00
gambas
8d652ed193 GTK+ fixes, especially for Wayland.
[GB.GTK]
* NEW: Add minimum size to buttons, TextBox and Slider controls.
* BUG: Handle key events before global shortcuts only for GtkEntry and GtkTextView widgets.
* BUG: Fix client decoration size computation.
* BUG: The size of a window is now always the size of its contents, without the decorations.

[GB.GTK3]
* NEW: Add minimum size to buttons, TextBox and Slider controls.
* BUG: Handle key events before global shortcuts only for GtkEntry and GtkTextView widgets.
* BUG: Fix client decoration size computation.
* BUG: The size of a window is now always the size of its contents, without the decorations.
* NEW: Centering a window is a now platform-specific.
2021-01-18 21:55:07 +01:00
gambas
a0a2d0379c MovieBox is now implemented in Gambas, through a new Animation class.
[DEVELOPMENT ENVIRONMENT]
* NEW: Support for the MovieBox Animation property.

[GB.GTK]
* NEW: Animation is a new class that represents an animated image.
* NEW: MovieBox has been removed.

[GB.GTK3]
* NEW: Animation is a new class that represents an animated image.
* NEW: MovieBox has been removed.

[GB.GUI.BASE]
* NEW: MovieBox is now implemented in Gambas.

[GB.QT4]
* NEW: Animation is a new class that represents an animated image.
* NEW: MovieBox has been removed.

[GB.QT5]
* NEW: Animation is a new class that represents an animated image.
* NEW: MovieBox has been removed.
2021-01-09 10:24:56 +01:00
gambas
a0b914a084 Do not include wayland specific includes if GDK_WINDOWING_WAYLAND is not defined.
[GB.GTK3]
* BUG: Do not include wayland specific includes if GDK_WINDOWING_WAYLAND is not defined.
2021-01-04 02:49:54 +01:00
gambas
e4da796e5b WebView: Fix declaration of WebView.Settings property.
[GB.GTK3.WEBVIEW]
* BUG: WebView: Fix declaration of WebView.Settings property.
2020-12-29 21:36:20 +01:00
gambas
2a26a5d8b0 The 'GB_GUI_PLATFORM' environment variable allows to override the default platform.
[GB.GTK3]
* NEW: The 'GB_GUI_PLATFORM' environment variable allows to override the default platform.

[GB.QT5]
* NEW: The 'GB_GUI_PLATFORM' environment variable allows to override the default platform.
2020-12-22 01:36:13 +01:00
gambas
d12c57041c Fix platform component detection.
[GB.GTK3]
* BUG: Fix platform component detection.
2020-12-21 23:04:12 +01:00
Benoît Minisini
7d81756ead Some fixes in merge with master.
[GB.GTK3]
* BUG: Some fixes in merge with master.
2020-12-21 06:35:40 +01:00
Benoît Minisini
eefb03c5ba Merge branch 'wayland' of https://gitlab.com/gambas/gambas into wayland 2020-12-21 05:19:07 +01:00
Benoît Minisini
a6311c6b63 Continue working on Wayland support.
[GB.GTK3]
* NEW: Support for specific platforms: X11 & Wayland.

[GB.GTK3.X11]
* NEW: This is the GTK+3 X11 platform component.

[GB.GTK3.WAYLAND]
* NEW: This is the GTK+3 Wayland platform component.
2020-12-21 04:54:14 +01:00
gambas
6b4b954cfa Get rid of unused code of native message boxes.
[GB.GTK]
* BUG: Get rid of unused code of native message boxes.

[GB.GTK3]
* BUG: Get rid of unused code of native message boxes.
2020-12-18 02:09:04 +01:00
gambas
d7dbc4ee58 Remove now useless source file symbolic links.
[GB.GTK3]
* BUG: Remove now useless source file symbolic links.
2020-11-24 21:39:58 +01:00
gambas
5c92dbd30f Remove deprecated Stock class.
[GB.GTK]
* BUG: Remove deprecated Stock class.

[GB.GTK3]
* BUG: Remove deprecated Stock class.
2020-11-17 09:32:53 +01:00
gambas
390c08078d Remove a debugging message.
[GB.GTK3.WEBVIEW]
* BUG: Remove a debugging message.
2020-11-17 09:32:34 +01:00
gambas
7eeb639f47 WebView.Clear() is a new method that resets the view.
[GB.GTK3.WEBVIEW]
* NEW: WebView: Clear() is a new method that resets the view.
* NEW: WebView: Cancelling the NewView event has the same effect as setting the NewView property to NULL.
2020-11-14 03:51:48 +01:00
gambas
52d7ddf745 WebView widget is now patched.
[GB.GTK3]
* NEW: Allow other GTK+3 components to patch their widget.

[GB.GTK3.WEBVIEW]
* NEW: WebView widget is now patched.
2020-11-09 03:31:34 +01:00
gambas
f7e6f5ba4a Work continues on the new WebView.
[GB.GTK3.WEBVIEW]
* NEW: WebSettings: The default settings object is common to all WebView.
* NEW: WebSettings: Font size properties are in points now.
* NEW: WebView: The NewView event is raised when a new WebView is requested for a new page.
* NEW: WebView: The NewView property must be set to the new WebView as the answer to the NewView event.
* NEW: WebView: The Link property returns the last hovered link.
* NEW: WebView: The Link event does not take any argument anymore.
2020-10-21 00:41:12 +02:00
gambas
df30233faa WebView: Implement events, and the Icon and Progress properties.
[GB.GTK3.WEBVIEW]
* NEW: WebView: Implement events.
* NEW: WebView: Implement the Icon and the Progress properties.

[GB.QT5.WEBVIEW]
* NEW: WebView: Implement events.
* NEW: WebView: Implement the Icon and the Progress properties.
2020-09-29 00:36:23 +02:00
gambas
d0befe9414 Forgot a class declaration.
[GB.GTK3.WEBVIEW]
* BUG: Forgot a class declaration.
2020-09-25 11:42:59 +02:00
gambas
8e37076a8f WebView: Fix settings implementation and add font settings.
[GB.GTK3.WEBVIEW]
* BUG: Forgot to add settings implementation source files.
* NEW: Implement fonts settings.
* BUG: Fix implementation of default settings.

[GB.QT5.WEBVIEW]
* BUG: Forgot to add settings implementation source files.
* NEW: Implement fonts settings.
* BUG: Fix implementation of default settings.
2020-09-25 02:55:29 +02:00
gambas
3e0b760dc6 Work on web browser components continue. New QT/GTK+ web browser switcher component.
[GB.GTK3.WEBVIEW]
* NEW: WebView: Add Title and Zoom properties.
* NEW: WebView: Add History property and history support.

[GB.GUI]
* NEW: Enhance debugging messages.

[GB.GUI.OPENGL]
* NEW: Fix debugging messages.

[GB.GUI.QT]
* NEW: Enhance debugging messages.

[GB.GUI.WEBVIEW]
* NEW: New QT/GTK+ web browser switcher component.

[GB.QT5.WEBVIEW]
* NEW: WebView: Add Title and Zoom properties.
* NEW: WebView: Add History property and history support.
2020-09-23 01:06:18 +02:00
gambas
6c713bbb6b Work on new web browser components in progress.
[GB.GTK3.WEBVIEW]
* NEW: Add SetHtml() method.
* NEW: Add Back(), Forward(), Stop() and Reload() methods.

[GB.QT5.WEBVIEW]
* NEW: Add SetHtml() method.
* NEW: Add Back(), Forward(), Stop() and Reload() methods.
2020-09-22 15:08:51 +02:00
gambas
b770395a3b Start development of new GTK+ and QT web browser components.
[DEVELOPMENT ENVIRONMENT]
* NEW: Add description of gb.gtk3.webview and gb.qt5.webview

[GB.GTK]
* NEW: Enhance gb.gtk API for child components like gb.gtk3.webview.

[GB.GTK3.WEBVIEW]
* NEW: Beginning of a new web browser component based on WebKitGTK.

[GB.QT5.WEBVIEW]
* NEW: Beginning of a new web browser component based on QWebEngineView.
2020-09-21 01:09:47 +02:00
gambas
dd121d669f Replace the message box native implementation by a Gambas implementation.
[GB.FORM.STOCK]
* NEW: Add a 128 pixel version of the 'delete' stock icon.

[GB.GTK]
* NEW: Message: Remove the message box native implementation.

[GB.GTK3]
* NEW: Message: Remove the message box native implementation.

[GB.GUI.BASE]
* NEW: Message: Implement the message boxes entirely in Gambas.

[GB.QT4]
* NEW: Message: Remove the message box native implementation.

[GB.QT5]
* NEW: Message: Remove the message box native implementation.
2019-06-05 03:08:22 +02:00
gambas
1bf70e1e75 PictureBox is now implemented in Gambas.
[GB.GTK]
* NEW: Remove PictureBox control.

[GB.GTK3]
* NEW: Remove PictureBox control.

[GB.GUI.BASE]
* NEW: PictureBox is now implemented in Gambas.
* NEW: PictureBox: Image is a new property that allows to display an Image instead of a Picture.
* NEW: PictureBox: Mode is a new property that defines how the image fills the control.

[GB.QT4]
* NEW: Remove PictureBox control.

[GB.QT5]
* NEW: Remove PictureBox control.
2018-10-03 16:06:54 +02:00
gambas
386ef35e44 Remove ScrollView control, add a Change event to the DrawingArea control, and propagate MouseWheel events automatically.
[GB.GTK]
* NEW: ScrollView: Remove ScrollView control.
* NEW: DrawingArea: Change is a new event that is raised when the Application.Animations or Application.Shadows property changes.
* NEW: MouseWheel events are now automatically propagated to the parent control if they are not handled by the child.
* BUG: ScrollBar: Correctly raise the Change event in all cases.
* BUG: Slider: Correctly raise the Change event in all cases.

[GB.GTK3]
* NEW: ScrollView: Remove ScrollView control.
* NEW: DrawingArea: Change is a new event that is raised when the Application.Animations or Application.Shadows property changes.
* NEW: MouseWheel events are now automatically propagated to the parent control if they are not handled by the child.
* BUG: ScrollBar: Correctly raise the Change event in all cases.
* BUG: Slider: Correctly raise the Change event in all cases.
2018-09-12 13:54:30 +02:00
gambas
ee674d9068 Many fixes to the GTK+3 components, and rewrite the SpinBox control in Gambas.
[GB.GTK]
* NEW: Remove the native SpinBox implementation.
* BUG: Add specific fixes for breeze and oxygen themes.

[GB.GTK3]
* NEW: Remove the native SpinBox implementation.
* BUG: ComboBox: Fix rendering.
* BUG: ComboBox: Use a GtkBox instead of the deprecated GtkAlignment.
* BUG: Style: Fix some paint methods and metric properties.
* BUG: Add specific fixes for breeze and oxygen themes.

[GB.GUI.BASE]
* NEW: SpinBox: New implementation of the control in Gambas.
* BUG: ProgressBar: Fix rendering with GTK+ components.

[GB.QT4]
* NEW: Remove the native SpinBox implementation.
* NEW: RadioButton: Fill the widget when the background color is set.
* BUG: Style: Fix some metric properties.

[GB.QT5]
* NEW: Remove the native SpinBox implementation.
* NEW: RadioButton: Fill the widget when the background color is set.
* BUG: Style: Fix some metric properties.
2018-09-04 15:56:23 +02:00