Commit graph

10541 commits

Author SHA1 Message Date
Benoît Minisini
a89ec9ec15 Debugger: Removing all breakpoints works again.
[DEVELOPMENT ENVIRONMENT]
* NEW: Debugger: Removing all breakpoints works again.
2022-08-08 17:26:29 +02:00
Benoît Minisini
47ae5e6e70 TextEditor: Setting the 'Breakpoint' property correctly raises the 'Change' event.
[GB.FORM.EDITOR]
* BUG: TextEditor: Setting the 'Breakpoint' property correctly raises the 'Change' event.
2022-08-08 17:25:58 +02:00
Benoît Minisini
654daa0724 Simplify and fix the PaintBrush implementation.
[GB.WEB.GUI]
* NEW: Color: Replace 'WebControl._GetColor()' by 'Color.ToHTML()'.
* NEW: Paint: Handle the 'PaintBrush' class directly in the Paint class. The paint driver job is just translating it into javascript.
* NEW: Paint: Remove the javascript generation routine from the Gradient class and move it to the paint driver.
* NEW: Paint: Add the 'Paint.Color' method that creates a color brush.
* NEW: Paint: Move the 'PaintBrush' type constants to the 'PaintDriver' class.
2022-08-08 16:20:45 +02:00
Benoît Minisini
f350d8171a Merge branch 'web-gui-brush' into 'master'
Add PaintBrush class with gradients to gb.web.gui

See merge request gambas/gambas!273
2022-08-08 12:32:33 +00:00
Bruce Steers
299f0b3232 Update Paint.ToHTML wiki help
[GB.WEB.GUI]
* OPT: Explain in help that Color.ToHTML() will return text only useable with CSS style assignments if alpha is used.
2022-08-08 12:17:46 +01:00
Bruce Steers
892d2a7ab6 Web Paint, handle colors in PaintBrush
[GB.WEB.GUI]
* NEW: handle colors with PaintBrush.class

I do not think colors is needed in PaintBrush as can simply be the argument for Fill/Stroke. I added it as GUI Paint class does it a similar way.
2022-08-08 10:38:21 +01:00
Bruce Steers
0d611f19ba Adjust WebPaint/Gradient methods.
[GB.WEB.GUI]
* OPT: do not Export Gradient.class
* OPT: Remove Paint.Brush property and replace with Paint.SetBrush() and hidden paint._GetBrush() methods
* OPT: Rename Color.ToJS() to Color.ToHTML()
* OPT: Hide PaintBrush methods for internal use only with relevant methods.
* OPT: Check for String datatype when checking Style argument.
* NEW: default to use Brush if Style is ommited from Fill() Stroke() methods
* OPT: Replace the gw.gradient.getvar() method of lib.js with gw.paint.makeGradient()
2022-08-08 10:20:54 +01:00
Benoît Minisini
bb46ed342a FileView: Remove 'Title' and 'ShowTitle' properties.
[GB.FORM]
* NEW: FileView: Remove 'Title' and 'ShowTitle' properties.
2022-08-08 02:43:24 +02:00
Benoît Minisini
8f41ac3148 IconView: Item shape now follows the icon size and the text size. Fix 'Selection' property.
[GB.GUI.BASE]
* NEW: IconView: Item shape now follows the icon size and the text size.
* BUG: IconView: Setting the 'Selection' property now work correctly.
2022-08-08 02:42:37 +02:00
Benoît Minisini
0c0256e190 TextLabel: Vertically centered TextLabels take the 'AutoResize' property into account correctly.
[GB.GUI.BASE]
* BUG: TextLabel: Vertically centered TextLabels take the 'AutoResize' property into account correctly.
2022-08-07 22:21:02 +02:00
Benoît Minisini
fda74fceaf Use VARCHAR for string fields up to 65535 characters maximum length.
[GB.DB.MYSQL]
* BUG: Use VARCHAR for string fields up to 65535 characters maximum length.
2022-08-07 20:36:35 +02:00
Benoît Minisini
bd52d1aff3 Project browser: Use the new DirBrowser control.
[DEVELOPMENT ENVIRONMENT]
* NEW: Project browser: Use the new DirBrowser control.
2022-08-07 20:33:49 +02:00
Benoît Minisini
9e37aa68da DirBrowser: A new control that displays an horizontal directory browser.
[GB.FORM]
* NEW: DirBrowser: A new control that displays an horizontal directory browser.
2022-08-07 20:33:10 +02:00
Benoît Minisini
0c68489ad1 IconView: 'Select' event is correctly raised again in single selection mode.
[GB.GUI.BASE]
* BUG: IconView: 'Select' event is correctly raised again in single selection mode.
2022-08-07 16:59:49 +02:00
Bruce Steers
b308a78efc Fix typo Colour should be Color , remove old debug statement
[GB.WEB.GUI]
* BUG: had typed Colour not Color (the curse of being English ;) )
* BUG: remove Debug Paint.Linewidth call as Linewidth is now ReadOnly
2022-08-07 10:09:55 +01:00
Bruce Steers
f1beb42fd1 Merge branch 'master' of https://gitlab.com/gambas/gambas into web-gui-brush 2022-08-07 09:52:30 +01:00
Bruce Steers
379012175d web.gui, Add RadialGradient(), create a Paint folder for all Paint classes. add Color.ToJS()
[GB.WEB.GUI]
* NEW: Paint.RadialGradient() Raidal (circular) gradients
* NEW: Color.ToJS(GBColor As Integer) As String. converts a gambas color integer into javascript code.
* OPT: create a Paint folder for all Paint related classes
2022-08-07 09:29:32 +01:00
Bruce Steers
3b9c9adc96 make New PaintBrush take arguments to create the brush imediately, add help
[GB.WEB.GUI]
* NEW: PaintBrush(Type, Value) can create the brush instantly
* NEW: add inline wiki help

just a tweak or 2
2022-08-06 23:54:17 +01:00
Bruce Steers
c57ab3a25c Add PainBrush.class to gb.web.gui
[GB.WEB.GUI]
* NEW: PaintBrush.class for Colors,Images,Gradients
* NEW: implement LinearGradient as a trial run
2022-08-06 23:10:30 +01:00
Benoît Minisini
583ced3d77 WebTree: Raise the 'Select' event in single selection mode.
[GB.WEB.GUI]
* BUG: WebTree: Raise the 'Select' event in single selection mode.
2022-08-06 19:26:00 +02:00
Benoît Minisini
122d963552 ComboBox: Setting the 'List' property now raises the 'Click' event if the first item is automatically selected.
[GB.GUI.BASE]
* BUG: ComboBox: Setting the 'List' property now raises the 'Click' event if the first item is automatically selected.
2022-08-06 19:05:44 +02:00
Benoît Minisini
6548c75a0e Does not crash anymore when a negative integer is used for the value of a floating point constant.
[COMPILER]
* BUG: Does not crash anymore when a negative integer is used for the value of a floating point constant.
2022-08-06 18:56:24 +02:00
Benoît Minisini
1d6636cfdb Finish project browser implementation.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update French translation.
* NEW: Project browser: Finish file commands implementation.
* NEW: Project browser: Add view split.
* NEW: Project browser: DnD support.
* BUG; Project browser: Display the same contents as the 'Data' folder of the project tree.
* NEW: File creation dialog: Now it is used for creating directories.
2022-08-06 18:07:13 +02:00
Benoît Minisini
b4ab4c0d04 Update 'language' icon.
[GB.FORM.STOCK]
* NEW: Update 'language' icon.
2022-08-06 18:02:35 +02:00
Benoît Minisini
c5f1d4603b Use the new support of file paths in the Drag.Paste() method.
[GB.FORM.TERMINAL]
* NEW: Use the new support of file paths in the Drag.Paste() method.
2022-08-06 18:01:59 +02:00
Benoît Minisini
ce88aab1c2 Automatic DnD support and a few other enhancements in FileView.
[GB.FORM]
* NEW: FileView: Add a 'ShowTitle' property, that toggles a title bar.
* NEW: FileView: 'Title' is a new property that allows to define the title displayed on top. By default it's the path of the current directory.
* NEW: FileView: Add a 'Filter' event, that allows to filter what is displayed file by file.
* NEW: FileView: 'Paths' is a new property that returns the absolute paths of all selected elements.
* NEW: FileView: Automatic support of drag & drop.
* NEW: FileView: 'Copy()' is a new method that copy the selected elements to the clipboard as a "text/uri-list".
* NEW: Update icon map.
2022-08-06 18:00:40 +02:00
Benoît Minisini
60daa96a2e Fix DnD support, IconView, and add automatic support for file paths array in clipboard.
[GB.GUI.BASE]
* NEW: Clipboard: Remove 'CopyPath()' and 'CopyPaths()' methods.
* NEW: Clipboard: 'Copy()' now can takes a file path array as soon as the mime type is "text/uri-list".
* NEW: Clipboard: 'Paste()' now returns a file path array as soon as the mime type is "text/uri-list".
* NEW: Drag: 'Drag()' now can takes a file path array as soon as the mime type is "text/uri-list".
* BUG: GridView: 'RowAt()' now returns rows at negative coordinates.
* BUG: GridView: Use 'Color.TextBackground' when the 'Background' property is set to 'Color.Default'.
* NEW: IconView: Add 'Scroll' event.
* NEW: IconView: Rubberband selection is more clever.
* NEW: IconView: Support for DnD.
* BUG: IconView: Use 'Color.TextBackground' when the 'Background' property is set to 'Color.Default'.
* NEW: ScrollArea: Automatic scrolling during DnD now should work as expected.
* NEW: Drag: The Dnd Frame now has a darker border.
2022-08-06 17:55:06 +02:00
Benoît Minisini
83aaf28641 DnD now takes the proxy control into account. Watcher now should finally raise their Show event correctly.
[GB.GTK]
* BUG: Setting the Drop property now acts on the proxy, and the DnD events are handled by the proxy first.
* BUG: Watcher now should finally raise their Show event correctly.

[GB.GTK3]
* BUG: Setting the Drop property now acts on the proxy, and the DnD events are handled by the proxy first.
* BUG: Watcher now should finally raise their Show event correctly.
2022-08-06 17:42:48 +02:00
Benoît Minisini
02a593dc23 DnD now takes the proxy control into account.
[GB.QT4]
* BUG: Setting the Drop property now acts on the proxy, and the DnD events are handled by the proxy first.

[GB.QT5]
* BUG: Setting the Drop property now acts on the proxy, and the DnD events are handled by the proxy first.
2022-08-06 17:40:17 +02:00
Benoît Minisini
bd94c90721 Welcome dialog: Fix project items layout.
[DEVELOPMENT ENVIRONMENT]
* BUG: Welcome dialog: Fix project items layout.
2022-08-04 00:11:54 +02:00
Benoît Minisini
c2a2b60790 Project browser: Implement file renaming. Lock the project tree while closing the current project, so that it raises no deferred events.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update French translation.
* NEW: Project browser: Implement file renaming.
* BUG: Lock the project tree while closing the current project, so that it raises no deferred events.
2022-08-03 13:52:21 +02:00
Benoît Minisini
386201347d FileView: Add a 'Rename' event that allows to implement a custom file renaming.
[GB.FORM]
* NEW: FileView: Add a 'Rename' event that allows to implement a custom file renaming.
2022-08-03 13:50:47 +02:00
Benoît Minisini
72481d964a IconView: fix a few problems.
[GB.GUI.BASE]
* BUG: IconView: UnselectAll() now always reset the current item.
* NEW: IconView: ESC key now unselects all items.
* BUG: IconView: Fix computation of text icon position when renaming.
2022-08-03 13:50:06 +02:00
Benoît Minisini
1179e3a0fc FileView: Correctly set the item texts so that renaming works as expected in all cases.
[GB.FORM]
* BUG: FileView: Correctly set the item texts so that renaming works as expected in all cases.
2022-08-03 12:57:00 +02:00
Benoît Minisini
4e0dcdc19d Toolbar: Configuring is a new property that returns if the toolbar is in configuration mode.
[GB.FORM.MDI]
* NEW: Toolbar: Configuring is a new property that returns if the toolbar is in configuration mode.
2022-08-03 11:38:45 +02:00
Benoît Minisini
5b1bafb69f Paint: Implement LineWidth as a write-only property.
[GB.WEB.GUI]
* NEW: Paint: Implement LineWidth as a write-only property.
2022-08-03 11:36:42 +02:00
Benoît Minisini
9382328db0 Project browser: Implement copy, cut, paste and delete actions.
[DEVELOPMENT ENVIRONMENT]
* NEW: Project browser: Handle paste actions by moving or copying files.
* NEW: Project browser: Implement file deletion.
* NEW: Redesign the unique file name generation function.
2022-08-03 11:35:26 +02:00
Benoît Minisini
2dd20ec882 FileView: Add Selected property that returns if at least one item is selected.
[GB.FORM]
* NEW: FileView: Add Selected property that returns if at least one item is selected.
2022-08-03 11:33:24 +02:00
Benoît Minisini
365fcd2b8c TreeView, ColumnView, ListView, IconView: Add a Selected property that returns if at least one item is selected.
[GB.GUI.BASE]
* NEW: TreeView, ColumnView, ListView, IconView: Add a Selected property that returns if at least one item is selected.
2022-08-03 11:32:57 +02:00
Benoît Minisini
e323b08347 FileView: Correctly refresh icons on icon theme change.
[GB.FORM]
* BUG: FileView: Correctly refresh icons on icon theme change.
2022-08-03 10:06:38 +02:00
Benoît Minisini
62330a4992 Clipboard: PastePaths() method is a new method that does the contrary as CopyPaths().
[GB.GUI.BASE]
* NEW: Clipboard: PastePaths() method is a new method that does the contrary as CopyPaths().
2022-08-03 10:05:41 +02:00
Benoît Minisini
3a8c36a823 Project browser: Add a space in the toolbar for the project tree workspace button.
[DEVELOPMENT ENVIRONMENT]
* BUG: Project browser: Add a space in the toolbar for the project tree workspace button.
* OPT: Welcome dialog: Load and show the welcome dialog only if needed.
2022-08-03 02:54:57 +02:00
Benoît Minisini
ecbc19cdd4 Project browser: Correctly initialize toolbar state.
[DEVELOPMENT ENVIRONMENT]
* BUG: Project browser: Correctly initialize toolbar state.
* NEW: Update French translation.
* BUG: Form editor: Fix multicontainer menu icon.
2022-08-03 00:45:15 +02:00
Benoît Minisini
179de49ffb Fix menu relayout after the 'Show' event has been handled..
[GB.GTK]
* BUG: Fix menu relayout after the 'Show' event has been handled..

[GB.GTK3]
* BUG: Fix menu relayout after the 'Show' event has been handled..
2022-08-03 00:42:29 +02:00
Benoît Minisini
74be963d5b Add a project browser. Not finished yet!
[DEVELOPMENT ENVIRONMENT]
* NEW: Update French translation.
* NEW: Add a project browser.
* NEW: Add a button that toggles the new project browser.
* BUG: Use the 'paste-special' stock icon where appropriate.
2022-08-02 17:41:01 +02:00
Benoît Minisini
c07451ee73 New stock icons 'export' and 'import'.
[GB.FORM.STOCK]
* NEW: New stock icons 'export' and 'import'.
2022-08-02 17:38:33 +02:00
Benoît Minisini
dadeb18e32 New stock icon 'import' and 'export'. Enhance FileView control.
[GB.FORM]
* NEW: New stock icon 'import' and 'export'.
* NEW: FileView: Add a Refresh event that triggers just after the FileView has refreshed its contents.
* NEW: FileView: Add FileCount, DirCount and TotalSize properties, to get statistics on the current directory contents.
* NEW: FileView: Add a permission column in detailed view mode.
* NEW: FileView: Display a 'lock' emblem on non-readable files in icon view mode.
2022-08-02 17:38:07 +02:00
Benoît Minisini
40918a8363 TreeView: treeview items now have a Selectable property. If set to FALSE, the item is not selectable anymore.
[GB.GUI.BASE]
* BUG: GridView: Take custom row border into account correctly.
* NEW: IconView: Selection is new property that returns an array of the keys of all selected items.
* NEW: IconView: Selection is updated during rubberband selection.
* NEW: ColumnView: The extra columns have now a default horizontal padding.
2022-08-02 17:35:35 +02:00
Benoît Minisini
1d3ace3178 Remove a debugging message.
[GB.MEDIA]
* BUG: Remove a debugging message.
2022-08-02 16:55:53 +02:00
Benoît Minisini
e65aed8ba9 Correctly send wheel events to widgets that handle them when the associated control is a proxy.
[GB.QT4]
* BUG: Correctly send wheel events to widgets that handle them when the associated control is a proxy.

[GB.QT5]
* BUG: Correctly send wheel events to widgets that handle them when the associated control is a proxy.
2022-08-02 03:36:49 +02:00