Commit graph

3192 commits

Author SHA1 Message Date
gambas
04d6ec0532 WebForm.Shortcuts is a new property that allows to declare a list of shortcuts the browser won't see.
[GB.WEB.GUI]
* BUG: Keyboard events work again.
* NEW: WebForm.Shortcuts is a new property that allows to declare a list of shortcuts the browser won't see.
2021-08-26 04:14:41 +02:00
gambas
a981bb3792 Menu shortcuts do not propagate to the browser.
[GB.WEB.GUI]
* NEW: Menu shortcuts do not propagate to the browser.
2021-08-26 02:09:43 +02:00
gambas
5b8ef31f96 Finish implementing keyboard event and menu shortcuts management.
[GB.WEB.GUI]
* NEW: Key.Code returns the name of the pressed key, while Key.Text now returns the text associated with the key if there is.
* NEW: Key.Shortcut returns the shortcut string associated with a keyboard event.
* BUG: Fix Key.Control property.
* NEW: Handle WebMenu.Shortcut property.
* BUG: Use 'keydown' DOM event instead of 'keypress', as 'keypress' is deprecated.
* NEW: Setting WebTextArea.Text now automatically moves the cursor and the scrollbar to the end of the text.
2021-08-25 02:50:26 +02:00
gambas
333985260e 'Desktop.Type', 'Desktop.Types', and 'Desktop.Is()' are now implemented in 'gb.gui.base'.
[GB.GUI.BASE]
* NEW: 'Desktop.Type', 'Desktop.Types', and 'Desktop.Is()' are now implemented here.
2021-08-18 21:49:58 +02:00
gambas
835884698e Message: Correctly define the message title for standard message box style.
[GB.GUI.BASE]
* BUG: Message: Correctly define the message title for standard message box style.
2021-08-18 12:11:42 +02:00
gambas
a0579cb76e Splitter: Fix how the panels follow the mouse on resize.
[GB.GUI.BASE]
* BUG: Splitter: Fix how the panels follow the mouse on resize.
2021-08-11 05:52:47 +02:00
gambas
ef6bda2873 Update 'xdg-utils' scripts to version 1.1.3+.
[GB.DESKTOP]
* NEW: Update 'xdg-utils' scripts to version 1.1.3+.
2021-08-08 17:20:02 +02:00
gambas
b2d0a542f9 MaskBox: Fix cursor move when inserting a character in a filled mask pattern.
[GB.FORM]
* NEW: ButtonBox: Raise the Validate event.
* BUG: MaskBox: Fix cursor move when inserting a character in a filled mask pattern.

* BUG: MaskBox: Handle space separators correctly when setting the Text property.
2021-08-02 23:11:16 +02:00
gambas
caac660a58 Workspace: Activating an unknown window is nw silently ignored.
[GB.FORM.MDI]
* BUG: Workspace: The Add() method now can safely move a window from a workspace to another workspace.
* BUG: Workspace: Activating an unknown window is nw silently ignored.
2021-08-02 22:22:42 +02:00
gambas
d0b66b1ca5 Résolution du conflit. 2021-07-31 01:05:12 +02:00
gambas
f06903c160 Fix 'javacript' and 'CSS' highlighting.
[GB.EVAL.HIGHLIGHT]
* BUG: Add 'set' keyword to javascript highlighting.
* NEW: Add some CSS keywords to CSS highlighting.
2021-07-31 01:04:23 +02:00
gambas
eea30eafca Start implementing keyboard event and menu shortcuts management.
[GB.WEB.GUI]
* NEW: Start implementing keyboard event and menu shortcuts management.
* OPT: WebSpinBox: Do not force a refresh when the value has been changed by the browser.
2021-07-31 00:59:37 +02:00
Benoît Minisini
db4b9ee512 Merge branch 'AddConsoleHighlighting' into 'master'
[Texthighlighter] - Add ANSI console highlight support

See merge request gambas/gambas!236
2021-07-30 00:11:15 +00:00
gambas
fbf3479c32 MaskBox: Handle space separators correctly when setting the Text property.
[GB.FORM]
* BUG: MaskBox: Handle space separators correctly when setting the Text property.
2021-07-24 21:38:41 +02:00
gambas
a5032e801f Fix desktop standard paths computation when there is no explicit configuration file.
[GB.DESKTOP]
* BUG: Fix desktop standard paths computation when there is no explicit configuration file.
2021-07-24 19:15:44 +02:00
gambas
09e22e254f TrayIcon: Change the icon name each time the Picture property changes, to force the system tray to reload it.
[GB.DBUS.TRAYICON]
* BUG: TrayIcon: Change the icon name each time the Picture property changes, to force the system tray to reload it.
2021-07-24 18:32:49 +02:00
gambas
61f79d6e3b Don't crash when hitting Backspace at the beginning of the editable text.
[GB.FORM]
* BUG: MaskBox: Don't crash when hitting Backspace at the beginning of the editable text.
2021-07-23 00:24:27 +02:00
gambas
53e39e8b87 MaskBox: Make cursor moves more clever.
[GB.FORM]
* NEW: MaskBox: Make cursor moves more clever.
2021-07-22 04:09:34 +02:00
gambas
a56d819286 Add Request.Scheme property. Take HTTP headers into account to detect 'https'.
[GB.WEB]
* NEW: Request.Scheme is a new property that replaces Application.Protocol.
* NEW: Request.Scheme now returns '"https"' according to the contents of the 'REQUEST_SCHEME' or 'X_FORWARDED_PROTO' headers passed to the CGI script.
2021-07-15 14:29:12 +02:00
Brian G
10431e6b80 Change ToConsole to ToANSI to more correctlty reflect fuctionality
[gb.eval.Highlight]
* NEW: Rename ToConsole to ToANSI to more correctly reflect functionality
* NEW: Update Unit text to reflect new name
2021-07-14 09:36:28 -07:00
gambas
46cbe053e2 ButtonBox: Remove workaround for TAB key.
[GB.FORM]
* BUG: ButtonBox: Remove workaround for TAB key.
2021-07-14 04:39:48 +02:00
gambas
b6d39c70a9 Fix MaskBox.
[GB.FORM]
* BUG: MaskBox: Text that do not have the same size as the mask are not valid anymore.
* BUG: MaskBox: The Text property now must match the mask when set. If the set text is smaller than the mask, it is completed with the default characters.
* BUG: MaskBox: Characters moves should be handled better now.
2021-07-10 04:39:21 +02:00
gambas
42005272a9 ListEditor: Fix crash when checking for duplicates if the Unique property is TRUE.
[GB.FORM]
* BUG: ListEditor: Fix crash when checking for duplicates if the Unique property is TRUE.
2021-07-08 23:12:39 +02:00
gambas
4cd5ac969e WebComboBox: Editable combo-box Click event should now trigger again as expected for the first list element.
[GB.WEB.GUI]
* BUG: WebComboBox: Editable combo-box Click event should now trigger again as expected for the first list element.
2021-07-05 21:50:11 +02:00
gambas
67e13ac22e TextEditor: Highlighted text drawing routine should not enter an infinite loop anymore when the highlighted color information is incoherent.
[GB.FORM.EDITOR]
* BUG: TextEditor: Highlighted text drawing routine should not enter an infinite loop anymore when the highlighted color information is incoherent.
2021-07-04 17:48:02 +02:00
gambas
a4f96ba0a1 MaskBox should work correctly again.
[GB.FORM]
* BUG: MaskBox: It should work correctly again.
* NEW: MaskBox: Prompt is a new property that allows to define the character displayed for void entries among a few choices.
2021-07-03 08:34:28 +02:00
gambas
650dd0a018 MenuButton: Fix GTK+3 warnings on hidden shortcut buttons.
[GB.FORM]
* BUG: MenuButton: Fix GTK+3 warnings on hidden shortcut buttons.
* NEW: DirChooser & FileChooser: Do not use a Watcher to initialize the popup menu.
2021-06-28 19:32:26 +02:00
gambas
a079acdbd4 TableView: Fix editing control position and size.
[GB.FORM]
* BUG: TableView: Fix editing control position and size.
2021-06-25 19:00:02 +02:00
gambas
5b648e3191 GridView: Fix current cell cursor size and width.
[GB.GUI.BASE]
* BUG: GridView: Fix current cell cursor size and width.
2021-06-25 18:59:30 +02:00
gambas
dabdbdd238 Fix background of disabled ButtonBox. Fix behaviour of MaskBox copy & paste. Add Validate event to MaskBox.
[GB.FORM]
* BUG: ButtonBox: Disabled background is now drawn correctly.
* BUG: MaskBox: Fix behaviour with copy & paste.
* NEW: MaskBox: Allow default popup menu.
* NEW: MaskBox: Validate is a new event that allows to validate any change in control text and eventually cancel the change.
2021-06-25 12:25:31 +02:00
Brian G
e4ee382336 Add ANSI Terminal support to highligh functions
[GB.EVAL.HIGHLIGHT]
* NEW: Add ToConsole which generates ansii color text which can be printed to most consoles
* NEW: Unit test for Ansi color Console text
* NEW: Unit text for HTML color page
* NEW: Unit text for RTF Color text
2021-06-24 19:08:31 -07:00
Brian G
16dd6690ce Sync the project files before change
[GB.EVAL.HIGHLIGHT]
* OPT: sync project changes
2021-06-24 19:07:59 -07:00
gambas
81cc2c8ca9 MaskBox: Modifier keys do not hide selection anymore.
[GB.FORM]
* BUG: MaskBox: Modifier keys do not hide selection anymore.
2021-06-22 19:42:36 +02:00
gambas
e3ee5a4139 FileView: Selection property now does return file names without any rich text formatting.
[GB.FORM]
* BUG: FileView: Selection property now does return file names without any rich text formatting.
2021-06-21 19:16:02 +02:00
gambas
000a5d29b7 WebComboBox: Use the 'input' event instead of the 'change' event to implement the Click Gambas event.
[GB.WEB.GUI]
* BUG: WebComboBox: Use the 'input' event instead of the 'change' event to implement the Click Gambas event.
2021-06-21 13:35:10 +02:00
gambas
1cc95c2353 TabPanel: ShowTabBar is a new property that toggles the tab bar visibility.
[GB.FORM]
* NEW: TabPanel: ShowTabBar is a new property that toggles the tab bar visibility.
2021-06-19 02:21:05 +02:00
gambas
3b906ba10a MenuButton: Disable the hidden shortcut button when the control has the focus, so that TAB focus navigation works.
[GB.FORM]
* NEW: MenuButton: Disable the hidden shortcut button when the control has the focus, so that TAB focus navigation works.
* NEW: MenuButton: Draw the control with both 'Hovered' and 'Focus' style flag when the control has the focus.
2021-06-18 14:34:25 +02:00
gambas
78b6bfbf92 Update 'start' and 'end' icons.
[GB.FORM.STOCK]
* NEW: Update 'start' and 'end' icons.
2021-06-16 03:28:21 +02:00
gambas
f9a51f632a Add 'inheritance' stock icon.
[GB.FORM.STOCK]
* NEW: Add 'inheritance' stock icon.
2021-06-16 01:52:33 +02:00
gambas
09dd6a7009 MenuButton: The background color is now used for coloring the button background.
[GB.FORM]
* NEW: MenuButton: The background color is now used for coloring the button background.
* BUG: MenuButton: Fix how style flags are used for drawing the control.
2021-06-16 01:51:54 +02:00
gambas
6e69b9c00a Do not allow window titlebar to be moved outside of the visible area.
[GB.WEB.GUI]
* BUG: Fix combo-box layout.
* BUG: Do not allow window titlebar to be moved outside of the visible area.
2021-06-15 17:00:37 +02:00
gambas
2613dfab3a TerminalView: Ignore errors if resizing the running process virtual terminal fails.
[GB.FORM.TERMINAL]
* BUG: TerminalView: Ignore errors if resizing the running process virtual terminal fails.
2021-06-14 00:18:02 +02:00
Benoît Minisini
03210a1dde Merge branch 'MediaViewFix' into 'master'
MediaView, also hide spacer panel when hiding controls

See merge request gambas/gambas!230
2021-06-13 20:31:04 +00:00
gambas
c32df65c35 Some GTK+ fixes for SpinBox and ButtonBox when the font is small. Fix ButtonBox border drawing.
[GB.GUI.BASE]
* BUG: SpinBox: Clamp the vertical padding so that the inner textbox works on GTK+ with small fonts.

[GB.FORM]
* BUG: ButtonBox: Clamp the vertical padding so that the inner textbox works on GTK+ with small fonts.
* BUG: ButtonBox: Fix border drawing according to the widget state (focus and hovering).
2021-06-10 03:23:47 +02:00
gambas
c2ee03d50b FileChooser: Correctly restore the ShowDetailed property from settings.
[GB.FORM]
* BUG: FileChooser: Correctly restore the ShowDetailed property from settings.
2021-06-04 23:34:30 +02:00
gambas
51a744b4ef File dialog geometry is now correctly saved when Dialog.Key is not set.
[GB.FORM.DIALOG]
* BUG: File dialog geometry is now correctly saved when Dialog.Key is not set.
2021-06-04 23:31:19 +02:00
gambas
fcff765e08 File dialog: Handle the case when AutoExt is TRUE and Filter is void.
[GB.FORM.DIALOG]
* BUG: File dialog: Handle the case when AutoExt is TRUE and Filter is void.
2021-06-04 20:25:15 +02:00
gambas
f5e0934089 ListBox: Use a case insensitive natural sort, so that it sorts like ListView.
[GB.GUI.BASE]
* BUG: ListBox: Use a case insensitive natural sort, so that it sorts like ListView.
2021-05-25 23:13:41 +02:00
Bruce Steers
d1892dd188 MediaView, also hide spacer panel when hiding controls
[GB.FORM.MEDIA]
* BUG: also hide spacer panel when hiding controls.

when hiding the controls the spacer stayed, leaving a bar on the bottom of the window, even in fullscreen.
This gives clean fullscreen
2021-05-25 10:45:24 +01:00
gambas
ee51a4a1cf Spinner: Make the "Circle" spinner less dark.
[GB.FORM]
* NEW: Spinner: Make the "Circle" spinner less dark.
2021-05-24 21:45:54 +02:00