Commit graph

10190 commits

Author SHA1 Message Date
Bruce Steers
fabaee070b Merge branch 'master' of https://gitlab.com/gambas/gambas into desktop-runasroot-pkexec 2021-09-09 13:13:55 +01:00
gambas
0c0c658ad3 Merge branch 'master' of gitlab.com:gambas/gambas 2021-09-08 23:57:11 +02:00
gambas
fe227d5047 Deleting a control now correctly disables its associated shortcut.
[GB.WEB.GUI]
* BUG: Deleting a control now correctly disables its associated shortcut.
2021-09-08 23:57:00 +02:00
Benoît Minisini
e99079913c Merge branch 'ScripterBackPortBugFixes' into 'master'
Updates to fix issues with --convert-project

See merge request gambas/gambas!248
2021-09-07 23:55:22 +00:00
gambas
9b9cd35a42 Report editor: Fix CoordBox control for GTK+3.
[DEVELOPMENT ENVIRONMENT]
* BUG: Report editor: Use Style.FrameWidth for the padding of CoordBox, so that the control is usable with GTK+3.
* BUG: Report editor: Fix drawing of CoordBox background.
2021-09-07 01:25:51 +02:00
gambas
6ec0f69060 WebButton: Implement the 'Default' and 'Cancel' buttons.
[GB.WEB.GUI]
* NEW: Preload framework images and icons.
* NEW: WebButton: Implement the 'Default' and 'Cancel' buttons. They work only in the main form and in modal dialogs.
* NEW: WebTree: Clicking twice toggles the item expanded state.
2021-09-07 01:04:12 +02:00
gambas
f2ed77263b Menu shortcuts are now taken into account even if they are defined in an embedded form.
[GB.WEB.GUI]
* BUG: Menu shortcuts are now taken into account even if they are defined in an embedded form.
*
2021-09-05 21:51:16 +02:00
gambas
425cd63b56 TextEditor: Correctly reset the Alternate flag before starting highlighting text.
[GB.FORM.EDITOR]
* BUG: TextEditor: Correctly reset the Alternate flag before starting highlighting text.
2021-09-05 17:54:20 +02:00
gambas
acc85e3268 WebTable: The 'ShowHeader' property is deprecated but works as expected now.
[GB.WEB.GUI]
* BUG: WebTable: The 'ShowHeader' property is deprecated but works as expected now.
*
2021-09-03 01:36:10 +02:00
gambas
b96b698066 Continue WebTree implementation. Replace 'ShowHeader' and 'ShowRowNumber' by a 'Header' property in WebTable.
[GB.WEB.GUI]
* NEW: WebTable: Replace the 'ShowHeader' and 'ShowRowNumber' properties by a 'Header' property.
* NEW: WebTable: Draw the vertical header the same way as the horizontal header, and make it sticky.
* NEW: WebTable: Replace the 'DblClick' event by the 'Activate' event.
* NEW: WebTree: Implement the 'Activate' event.
* BUG: WebTree: The "select all" checkbox now works as expected.
*
2021-09-03 01:33:37 +02:00
gambas
423b02fcd6 Don't use 'qApp->sync()', it calls the event loop.
[GB.QT5.X11]
* BUG: Don't use 'qApp->sync()', it calls the event loop.
2021-09-01 21:16:51 +02:00
gambas
f68e2fe668 'zlib' inflate function sometimes returns an incorrect error code that lead to a crash.
[GB.COMPRESS.ZLIB]
* BUG: 'zlib' inflate function sometimes returns an incorrect error code that lead to a crash.
2021-09-01 17:29:00 +02:00
Bruce Steers
acc409a7cf Merge branch 'master' of https://gitlab.com/gambas/gambas into desktop-runasroot-pkexec 2021-09-01 15:10:29 +01:00
gambas
4a5e740b58 WebTree: Initial implementation of a tree control. Not finished yet!
[GB.WEB.GUI]
* NEW: WebTree: Initial implementation of a tree control. Not finished yet!
* BUG: WebTable: Fix table layout.
* BUG: Ensure that the pipe for writing the response is in blocking mode.
2021-09-01 01:12:27 +02:00
Bruce Steers
2a68ec6633 Pedantic but Wait was wait... 2021-08-31 16:45:51 +01:00
Bruce Steers
c9f5218300 Tweak Desktop.RunAsRoot(), remove an if condition for speed
[GB.DESKTOP]
* OPT: rearrange RunAsRoot code to remove an If(Condition,True,False) statement
2021-08-31 11:02:38 +01:00
Bruce Steers
2b72588ae1 Merge branch 'master' of https://gitlab.com/gambas/gambas into desktop-runasroot-pkexec 2021-08-31 00:47:36 +01:00
Bruce Steers
891c1b2ee6 Desktop.RunAsRoot(), Add pkexec to list of gui sudoers
[GB.DESKTOP]
* NEW: add pkexec as primary gui sudoer to RunAsRoot
* NEW: RunAsRoot has "Wait" argument (default is False)
* NEW: RunAsRoot has Username argument (default is root)
* OPT: Split Command if pkexec is used
2021-08-31 00:28:26 +01:00
gambas
6ae9c8f5cd Update German translation. Form editor: Make the property name column a bit larger.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update German translation.
* NEW: Form editor: Make the property name column a bit larger.
2021-08-30 19:54:05 +02:00
gambas
0e207fbf57 WebTable: ShowRowNumber is a new property that displays the row number in the first column of each row.
[GB.WEB.GUI]
* NEW: WebTable: ShowRowNumber is a new property that displays the row number in the first column of each row.
2021-08-30 19:30:43 +02:00
gambas
2c2b7d565d Tooltip and link properties of the Color class are now writable. Fix 'Key.Backspace' property name.
[GB.GTK]
* NEW: Tooltip and link properties of the Color class are now writable. Override them if the default widget theme colors are unreadable.
* BUG: Fix 'Key.Backspace' property name.

[GB.GTK3]
* NEW: Tooltip and link properties of the Color class are now writable. Override them if the default widget theme colors are unreadable.
* BUG: Fix 'Key.Backspace' property name.

[GB.QT4]
* NEW: Tooltip and link properties of the Color class are now writable. Override them if the default widget theme colors are unreadable.
* BUG: Fix 'Key.Backspace' property name.

[GB.QT5]
* NEW: Tooltip and link properties of the Color class are now writable. Override them if the default widget theme colors are unreadable.
* BUG: Fix 'Key.Backspace' property name.
2021-08-30 18:58:34 +02:00
gambas
6e5930ffab Form editor: Group property is now associated with a combo-box containing a list of already used group names.
[DEVELOPMENT ENVIRONMENT]
* NEW: Form editor: Group property is now associated with a combo-box containing a list of already used group names.
2021-08-30 18:26:25 +02:00
gambas
c919632832 Support for absolute URLs in WebImage and WebAudio. Add WebAudio.Loop property.
[GB.WEB.GUI]
* NEW: WebImage: The Image property can be an absolute URL now.
* NEW: WebAudio: The Audio property can be an absolute URL now.
* NEW: WebAudio: Add a Loop property to make the sound automatically loop.
2021-08-30 17:48:52 +02:00
gambas
ddc985ce08 Use 'qApp->sync()' instead of 'X11_flush()' to synchronize with the X11 server.
[GB.QT5.X11]
* NEW: Use 'qApp->sync()' instead of 'X11_flush()' to synchronize with the X11 server.
2021-08-30 13:24:48 +02:00
gambas
00a58515b0 SliderBox: Always set both the SpinBox and the Slider, so that they keep being synchronized when the SliderBox has been locked.
[GB.FORM]
* BUG: SliderBox: Always set both the SpinBox and the Slider, so that they keep being synchronized when the SliderBox has been locked.
2021-08-30 02:09:30 +02:00
gambas
ea04ca6e6a Rollback the previous commit, it breaks too many things.
[INTERPRETER]
* BUG: Rollback the previous commit, it breaks too many things.
2021-08-30 02:05:38 +02:00
gambas
742b65afc7 Locked objects now can receive events. Beware, this a test, as that change is not backward-compatible!
[INTERPRETER]
* NEW: Locked objects now can receive events. Beware, this a test, as that change is not backward-compatible!
2021-08-30 02:02:18 +02:00
gambas
7d9c268505 DirBox: Correctly raise the Change event each time the contents actually changes.
[GB.FORM]
* BUG: DirBox: Correctly raise the Change event each time the contents actually changes.
2021-08-30 00:57:10 +02:00
gambas
8d1d8bdf53 DBusConnection: Open() and Close() now allow to explicitly register to a bus.
[GB.DBUS]
* NEW: DBusConnection: Open() is a new method that allows to explicitly register to a bus.
* NEW: DBusConnection: Close() is a new method that allows to explicitly unregister from a bus.
2021-08-30 00:08:59 +02:00
Bruce Steers
01e086778d gb.desktop Final edit, remove unneeded variable declaration
[GB.DESKTOP]
* OPT: remove no longer needed variable declaration
2021-08-29 17:43:25 +01:00
Bruce Steers
db19b20fef Update Desktop.class, fix typo
[GB.DESKTOP]
* BUG: fix typo
2021-08-29 16:40:44 +00:00
Bruce Steers
e2e40c69e2 Update Desktop.class, fix pkexec not working on some programs
[GB.DESKTOP]
* BUG: Using Exec With [envs] was not working, used pkexec env method to pass DISPLAY and XAUTHORITY envs instead as it works.
* OPT: Also Split "Command" string for Exec or it fails if command has more than one arg.

Notes.
I found the prior method worked on pluma but not on any gambas applications. (they all reported unable to open display)
Using this "pkexec env"  method fixes that and makes it work on gambas applications and supports multiple arguments.
2021-08-29 16:38:06 +00:00
Bruce Steers
37d0c12352 Update Desktop.RunAsRoot()
[GB.DESKTOP]
* OPT: move test for pkexec to outside of kde/gnome check as it is independant so will be checked regardless if no other graphical sudo is found.
2021-08-29 04:25:47 +01:00
Bruce Steers
bc12c70673 Update Desktop.class, add pkexec as gksu no longer exists
[GB.DESKTOP]
* NEW: add pkexec to Desktop.RunAsRoot() command as gksu and gksudo no longer exist
2021-08-29 03:16:18 +00:00
gambas
469c04769f Desktop.Passwords: Fix KDE support. Use the 'Desktop.Type' property.
[GB.DESKTOP]
* BUG: Desktop.Passwords: Fix KDE support.
* NEW: Use the 'Desktop.Type' property.
2021-08-29 00:12:28 +02:00
gambas
dc0d0ccbe2 Fix desktop detection. The GridView 'Change' event now can be stopped to cancel a cursor move.
[GB.GUI.BASE]
* BUG: Fix KDE desktop detection, and do not crash if no desktop is detected.
* NEW: GridView: The 'Change' event now can be stopped to cancel a cursor move.
2021-08-29 00:11:09 +02:00
gambas
8500e51a73 Form editor: Menu editor properties now apply to all selected items (except the name).
[DEVELOPMENT ENVIRONMENT]
* NEW: Form editor: Menu editor properties now apply to all selected items (except the name).
2021-08-29 00:02:51 +02:00
gambas
eb5b601622 WebControl: Rename the 'RenderToString' method as 'ToHTML'.
[GB.WEB.GUI]
* NEW: WebControl: Rename the 'RenderToString' method as 'ToHTML'.
2021-08-27 16:08:36 +02:00
gambas
f72649186b WebControl: RenderToString() is a new method that return the generated HTML associated with the control as a string.
[GB.WEB.GUI]
* NEW: WebControl: RenderToString() is a new method that return the generated HTML associated with the control as a string.
2021-08-27 16:07:49 +02:00
gambas
239acafdf5 WebTable: If the Display property is negative, then the full contents is displayed in one shot.
[GB.WEB.GUI]
* NEW: WebTable: If the Display property is negative, then the full contents is displayed in one shot.
2021-08-27 13:30:36 +02:00
gambas
072bd1cc77 All UTF-8 charsets variants are now returned as "utf8".
[GB.DB.MYSQL]
* BUG: All UTF-8 charsets variants are now returned as "utf8".
2021-08-27 13:08:22 +02:00
gambas
96ebc59161 Args.Abort is a new property that tells if the program aborts or raises an error when an Args method fails. The property is TRUE by default.
[GB.ARGS]
* NEW: Args.Abort is a new property that tells if the program aborts or raises an error when an Args method fails. The property is TRUE by default.
2021-08-27 13:07:41 +02:00
gambas
8849435381 Creating a numeric field with a default value works correctly now.
[GB.DB.MYSQL]
* BUG: Creating a numeric field with a default value works correctly now.
2021-08-26 13:31:19 +02:00
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
a89f827a39 Key.Shortcut is a new property that returns a string describing the key of a keyboard event with all its modifiers.
[GB.GTK]
* NEW: Key.Shortcut is a new property that returns a string describing the key of a keyboard event with all its modifiers.

[GB.GTK3]
* NEW: Key.Shortcut is a new property that returns a string describing the key of a keyboard event with all its modifiers.

[GB.QT4]
* NEW: Key.Shortcut is a new property that returns a string describing the key of a keyboard event with all its modifiers.

[GB.QT5]
* NEW: Key.Shortcut is a new property that returns a string describing the key of a keyboard event with all its modifiers.
2021-08-24 01:54:41 +02:00
gambas
d550cdb246 New release of Debian (2). 2021-08-21 02:55:58 +02:00
gambas
3511d3208b New release of Debian. 2021-08-21 01:38:11 +02:00
gambas
588e192a05 Realize the window widget before trying to center it, as we need the monitor it is displayed on.
[GB.GTK]
* BUG: Realize the window widget before trying to center it, as we need the monitor it is displayed on.

[GB.GTK3]
* BUG: Realize the window widget before trying to center it, as we need the monitor it is displayed on.
2021-08-21 01:02:17 +02:00