Commit graph

3539 commits

Author SHA1 Message Date
Benoît Minisini
c5e9a57f0a Fix 'Change' event in WebTextBox and WebTextArea.
[GB.WEB.GUI]
* BUG: WebTextBox: 'Change' event works again.
* BUG: WebTextArea: 'Change' event works again.
2022-10-05 20:58:33 +02:00
Benoît Minisini
8059d45fa6 ComboBox: Fix IDE default control size.
[GB.GUI.BASE]
* BUG: ComboBox: Fix IDE default control size.
2022-09-29 01:14:45 +02:00
Benoît Minisini
2962cb3f00 FontChooser: Display font preview correctly in dark mode.
[GB.FORM]
* BUG: FontChooser: Display font preview correctly in dark mode.
2022-09-29 00:06:12 +02:00
Benoît Minisini
d664f6728a WebDrawingArea: Correctly implement the Refresh() method.
[GB.WEB.GUI]
* BUG: WebDrawingArea: Correctly implement the Refresh() method.
2022-09-24 02:27:55 +02:00
Benoît Minisini
86539be37f Fix WebTree selection, and how WebTextBox and WebTextArea changes are handled. Add server port to the session cookie.
[GB.WEB.GUI]
* BUG: Session: Add the server port to the session cookie.
* BUG: WebTree: The Clear() method correctly triggers a refresh.
* OPT: WebTree: Don't trigger useless refreshes when selection changes.
* BUG: Accumulates WebTextBox and WebTextArea changes, and send them just before the next request.
2022-09-24 02:21:34 +02:00
Benoît Minisini
ec937fcbd6 DataSource: Prevent 'Save()' method to call itself.
[GB.DB.FORM]
* BUG: DataSource: Prevent 'Save()' method to call itself.
2022-09-23 23:49:38 +02:00
Benoît Minisini
74f80c0ef9 Merge branch 'master' of gitlab.com:gambas/gambas 2022-09-17 22:51:07 +02:00
Benoît Minisini
da046feb3f Add error location when displaying an error message in the generated HTML.
[GB.MARKDOWN]
* NEW: Add error location when displaying an error message in the generated HTML.
2022-09-17 22:50:44 +02:00
Benoît Minisini
1a433879f1 Update some icons.
[GB.FORM.STOCK]
* NEW: Update 'download' and 'upload' icons.
* NEW: Redraw 'inheritance', 'gradient' and 'network' icon.
2022-09-17 22:49:05 +02:00
gambix
65a5c53ea2 [GB.REPORT2]
* BUG: Remove the use of deprecated and removed function of DocumentView
  in ReportView. The page delection is available now
2022-09-17 14:02:25 +02:00
Benoît Minisini
c35d61bd7b Redraw 'download' and 'upload' icons.
[GB.FORM.STOCK]
* NEW: Redraw 'download' and 'upload' icons.
2022-09-06 10:29:20 +02:00
Benoît Minisini
5c347359cf Redesign the 'goto' panel.
[GB.FORM.EDITOR]
* NEW: TextEditor: Do not show the 'goto' panel if there is only one line.
* NEW: TextEditor: Redesign the 'goto' panel.
* NEW: TextEditor: Update French translation.
2022-09-03 14:29:49 +02:00
Benoît Minisini
620ad9c919 TerminalView: Compute the character width so that non-fixed font characters are not truncated.
[GB.FORM.TERMINAL]
* BUG: TerminalView: Compute the character width so that non-fixed font characters are not truncated.
2022-09-03 02:40:45 +02:00
Benoît Minisini
e5a0d48c2e Language.GetTranslations() method now browses the correct language files in executables.
[GB.UTIL]
* BUG: Language.GetTranslations() method now browses the correct language files in executables.
2022-08-26 17:01:54 +02:00
Benoît Minisini
f9207cb5a2 Raise the 'LayoutUpdated' D-Bus signal when the current desktop is 'Cinnamon', otherwise the menu is not refreshed.
[GB.DBUS.TRAYICON]
* BUG: Raise the 'LayoutUpdated' D-Bus signal when the current desktop is 'Cinnamon', otherwise the menu is not refreshed.
  Cinnamon seems to ignore the return value of the 'AboutToShow' event.
2022-08-26 16:51:09 +02:00
Benoît Minisini
0f99e553c9 Fix 'hibernate' and 'info' icons.
[GB.FORM.STOCK]
* NEW: Fix 'hibernate' and 'info' icons.
2022-08-26 00:20:11 +02:00
Benoît Minisini
9ae544c5b2 ListEditor: Add 'Grid' property.
[GB.FORM]
* NEW: ListEditor: Add 'Grid' property.
2022-08-26 00:19:31 +02:00
Benoît Minisini
c875154868 GridView: Take 'Rows.Padding' and 'Columns.Padding' properties into account when drawing cell contents.
[GB.GUI.BASE]
* BUG: GridView: Take 'Rows.Padding' and 'Columns.Padding' properties into account when drawing cell contents.
2022-08-26 00:18:39 +02:00
Benoît Minisini
72020e39a9 GridView: Add 'Rows.Padding' and 'Columns.Padding' properties. ListBox: Add 'Grid' property.
[GB.GUI.BASE]
* NEW: GridView: Add 'GridView.Columns.Padding' property for an additional cell horizontal padding.
* NEW: GridView: Add 'GridView.Rows.Padding' property for an additional cell vertical padding.
* NEW: ListBox: Add a 'Grid' property, that adds a grid and some padding inside cells when set.
2022-08-26 00:11:14 +02:00
Benoît Minisini
e2e2b55f68 DataView: Custom column alignment is taken into account now.
[GB.DB.FORM]
* BUG: DataView: Make blob editor fully translated.
* NEW: DataView: Custom column alignment is taken into account now.
* NEW: Update French translation.
2022-08-26 00:07:33 +02:00
Benoît Minisini
ada033d6dd Do not crash while checking if an animation must be triggered when 'Application.ActiveWindow' is invalid.
[GB.GUI.BASE]
* BUG: Do not crash while checking if an animation must be triggered when 'Application.ActiveWindow' is invalid.
2022-08-25 17:11:52 +02:00
Benoît Minisini
d1fabcfe38 TextEditor: Raise the 'Change' event when setting the 'Text' property.
[GB.FORM.EDITOR]
* BUG: TextEditor: Raise the 'Change' event when setting the 'Text' property.
2022-08-22 14:28:21 +02:00
Benoît Minisini
395e368d32 TextEditor: Raise the 'Change' event when loading a file, settings the bookmarks or the disabled breakpoints.
[GB.FORM.EDITOR]
* BUG: TextEditor: Raise the 'Change' event when loading a file, settings the bookmarks or the disabled breakpoints.
2022-08-20 16:34:33 +02:00
Benoît Minisini
441fd57ceb Add 'MouseDown', 'MouseUp', and 'MouseMove' events in DrawingArea. Add 'Enter' and 'Leave' events in WebControl.
[GB.WEB.GUI]
* NEW: WebControl: Implement 'Enter' and 'Leave' event.
* NEW: DrawingArea: Implement 'MouseDown', 'MouseUp', and 'MouseMove' events. At the moment 'MouseMove' are raised only when a button is pressed.
* BUG: Paint: Do not crash if no brush has been defined. Let the underlying driver use the default brush instead.
2022-08-11 18:34:26 +02:00
Benoît Minisini
9b66aa13ec Paint: Add 'LineCap', 'LineJoin', 'MiterLimit', 'LineDash' and 'LineDashOffset' properties.
[GB.WEB.GUI]
* NEW: Paint: Add 'LineCap', 'LineJoin', 'MiterLimit', 'LineDash' and 'LineDashOffset' properties.
* NEW: Paint: Add public constants for 'LineCap' and 'LineJoin' properties.
2022-08-09 23:59:22 +02:00
Benoît Minisini
5f958623a4 Continue 'Paint' implementation, and make the DrawingArea canvas resize automatically.
[GB.WEB.GUI]
* NEW: DrawingArea: The canvas now resizes automatically, and send its size to the server.
* NEW: Paint: Implement 'Width' and 'Height' properties.
* NEW: Paint: Add 'Translate()', 'Rotate()', 'Scale()' and 'Reset()' methods.
* NEW: Paint: Add write-only 'Operator' property. Not all composition modes are supported at the moment.
* BUG: Move focus frame when the window is resized.
2022-08-09 17:04:06 +02:00
Benoît Minisini
861eebaa7a Merge branch 'fix-dw-black' into 'master'
WebDrawingArea, fix using zero value Color.Black

See merge request gambas/gambas!274
2022-08-09 01:15:50 +00:00
Benoît Minisini
546989eb56 Fix component dependencies.
[GB.WEB.GUI]
* BUG: Fix component dependencies.
2022-08-09 03:13:35 +02:00
Benoît Minisini
687fa8460f Paint: Implement 'DrawImage' method.
[GB.WEB.GUI]
* NEW: Make the ';' explicit in internally generated javascript.
* NEW: Add 'gb.geom' as a new dependency.
* NEW: Paint: Implement 'DrawImage' method.
* BUG: Paint: Fix gradient generation routine in 'lib.js'.
* NEW: DrawingArea: Do not include the refresh code inside the main page HMTL.
2022-08-09 03:06:23 +02:00
Benoît Minisini
ecfbd41969 ComboBox: Settings the 'List' property does not raise the 'Click' event anymore.
[GB.GUI.BASE]
* BUG: ComboBox: Settings the 'List' property does not raise the 'Click' event anymore.
2022-08-09 02:47:53 +02:00
Bruce Steers
f1f23bcb93 WebDrawingArea, fix using zero value Color.Black
[GB.GUI.WEB]
* BUG: use IsNull() to check style as Color.Black is 0
2022-08-09 00:27:42 +01:00
Benoît Minisini
4930e6d406 ComboBox: Fix padding of borderless editable comboboxes.
[GB.GUI.BASE]
* BUG: ComboBox: Fix padding of borderless editable comboboxes.
* NEW: ComboBox: Always display the border when the popup is opened.
2022-08-09 01:16:09 +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
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