Commit graph

9850 commits

Author SHA1 Message Date
gambas
a62007de37 Class overriding is not retroactive anymore when the class already has instances.
[INTERPRETER]
* BUG: Class overriding is not retroactive anymore when the class already has instances.
* NEW: In tracing mode, indent the interpreter output according to the current stack depth.
2021-09-18 01:09:05 +02:00
gambas
afdf99b141 The 'Run' button now always run the project without arguments. To run the project with arguments, you have to use the 'Run with' dialog now.
[DEVELOPMENT ENVIRONMENT]
* NEW: The 'Run' button now always run the project without arguments. To run the project with arguments, you have to use the 'Run with' dialog now.
2021-09-17 22:49:46 +02:00
gambas
1ced61570a Rework the position history to fix some problems. Compiling the prpoject now automatically hides the error message tooltip.
[DEVELOPMENT ENVIRONMENT]
* BUG: Rework the position history to fix some problems.
* NEW: Compiling the prpoject now automatically hides the error message tooltip.
2021-09-17 10:31:15 +02:00
gambas
2906f04121 Desktop.RunAsRoot() now uses 'pkexec' by default. Desktop.RunAs() is a new method that allows to specify the username used for running a program.
[GB.DESKTOP]
* NEW: Desktop.RunAsRoot() now takes an optional argument to wait for the program ends, and now uses 'pkexec' by default.
* NEW: Desktop.RunAs() is a method similar as RunAsRoot() that takes the username used for running the program.
2021-09-14 20:53:02 +02:00
Benoît Minisini
4cb88fd57b Merge branch 'desktop-runasroot-pkexec' into 'master'
Update Desktop.class, add pkexec to Desktop.RunAsRoot() as gksu/kdesu/etc no longer exist

See merge request gambas/gambas!246
2021-09-14 18:10:46 +00:00
Bruce Steers
d8c8ada403 Merge branch 'master' of https://gitlab.com/gambas/gambas into desktop-runasroot-pkexec 2021-09-14 17:34:37 +01:00
gambas
1a3b36a3ef Fix csd size computation.
[GB.GTK]
* BUG: Fix csd size computation.

[GB.GTK3]
* BUG: Fix csd size computation.
2021-09-14 17:23:13 +02:00
gambas
a33b312136 Additional project references using relative paths are correctly handled now.
[DEVELOPMENT ENVIRONMENT]
* BUG: Additional project references using relative paths are correctly handled now.
2021-09-14 10:02:07 +02:00
gambas
2a751fcd46 Mark the component as stable.
[GB.FORM.TERMINAL]
* NEW: Mark the component as stable.
2021-09-14 09:51:31 +02:00
gambas
8ee4db628d Buffered streams read and write methods now correctly handle errors.
[INTERPRETER]
* BUG: Buffered streams read and write methods now correctly handle errors.
2021-09-13 19:52:24 +02:00
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