Commit graph

5849 commits

Author SHA1 Message Date
Benoît Minisini
ded01083f2 [GB.FORM]
* BUG: SpinBar: Take Enabled and Design properties into account.
* NEW: SpinBar: Add the Border property.
* BUG: SpinBar: Fix many layout problems.
* NEW: SpinBar: Draw SpinBar border using style.
* BUG: SpinBar: Handle font changes.


git-svn-id: svn://localhost/gambas/trunk@7814 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-07-10 16:43:52 +00:00
Benoît Minisini
62863d13f4 [GB.IMAGE]
* BUG: ImageStat() now return the correct dimenstions of JPEG images.


git-svn-id: svn://localhost/gambas/trunk@7813 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-07-10 02:09:55 +00:00
Benoît Minisini
95fae906c3 [GB.GUI.BASE]
* BUG: GridView: Take Foreground property into account.


git-svn-id: svn://localhost/gambas/trunk@7812 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-07-08 16:09:37 +00:00
Benoît Minisini
56340ea4bd [GB.WEB.FORM]
* BUG: WebTextBox: Report the Text property to the server when the control has lost the focus.
* BUG: WebComboBox: Report the Text property to the server when the control has lost the focus.


git-svn-id: svn://localhost/gambas/trunk@7811 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-07-07 22:51:00 +00:00
Benoît Minisini
e2a1b7e3eb [GB.WEB.FORM]
* BUG: Setting focus on unknown elements is now silently ignored.


git-svn-id: svn://localhost/gambas/trunk@7810 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-07-07 22:38:19 +00:00
Benoît Minisini
5da4e95533 [GB.WEB.FORM]
* BUG: Don't try to refresh controls that are hidden.


git-svn-id: svn://localhost/gambas/trunk@7809 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-07-07 22:27:42 +00:00
Benoît Minisini
22da14f4ee [GB.WEB.FORM]
* OPT: WebContainer: optimisation of element insertion and deletion.
* BUG: WebLabel: Text contents is now kept on one line and cut.
* OPT: WebLabel: The Text property only refreshed the labels contents.
* NEW: WebControl: Dialog is a new event raised when a window opened with ShowModal() is closed.
* NEW: WebControl: SetFocus() method now takes an optional boolean argument that tells to highlight the focused control.
* NEW: The "/~dump" URL dumps the current session contents.
* NEW: Errors are now displayed in an alert box inside the browser.
* NEW: WebTable: The DblClick event is raised when clicking twice on a row.
* OPT: WebTable: Selecting a row now is faster, as it does not refresh the entire table anymore.
* NEW: WebTable: The Current property returns or sets the current selected row.
* BUG: WebTable: The Columns[].Wrap property now works as expected.
* NEW: WebTextBox: The Clear() method clears the text box contents.
* NEW: WebWindow: The Close() method now takes an optional argument that is sent to the Dialog event raise after the window has been closed, provided it has been shown modal.
* BUG: Focus should be correctly restored in all cases when a modal dialog is closed.


git-svn-id: svn://localhost/gambas/trunk@7808 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-07-07 21:52:59 +00:00
Benoît Minisini
2d5e1ac26a [INTERPRETER]
* BUG: The error backtrace is now reset only when raising a new error. Consequently, the information is now kept when an error is propagated.


git-svn-id: svn://localhost/gambas/trunk@7807 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-07-07 08:50:33 +00:00
Tobias Boege
20beab444e [GB.OPENSSL]
* NEW: Forward-compatibility with OpenSSL 1.1 (hopefully) (Bug #958).
* BUG: Clear buffers on stack before passing them to OpenSSL.
* BUG: Terminate return value of .Cipher.Method.Decrypt() properly.



git-svn-id: svn://localhost/gambas/trunk@7806 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-30 16:06:24 +00:00
Benoît Minisini
9c325f5e34 [GB.EVAL.HIGHLIGHT]
* NEW: Add missing symbol in css highlighting.

[GB.WEBFORM]
* NEW: Make gb.web.form translatable.
* NEW: Add the Scroll class to store the ScrollBar property constants.
* BUG: WebControl: Padding and Margin now use "rem" instead of "em".
* NEW: WebScrollView: Add the ScrollBar property to hide one or both scrollbars.
* NEW: WebScrollView: SetHeaders() is a new method that allows to define the headers of the ScrollView as two other WebScrollView controls whose scroll position will be automatically synchronized.
* NEW: WebScrollView now raises the Scroll event.
* NEW: WebTabPanel: ShowTabs is a new property that allows to hide the tabs.
* NEW: WebTable: Step is a new property that allows to define the number of rows that are loaded when reaching the table end.


git-svn-id: svn://localhost/gambas/trunk@7805 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-26 02:42:23 +00:00
Benoît Minisini
44f544e4cc [DEVELOPMENT ENVIRONMENT]
* BUG: Fix virtual controls management like HttpClient, FtpClient, and so on.


git-svn-id: svn://localhost/gambas/trunk@7804 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-21 21:11:57 +00:00
Benoît Minisini
82c20cf083 [GB.QT4]
* BUG: Workadounr Enter & Leave events QT madness.

[GB.QT5]
* BUG: Workadounr Enter & Leave events QT madness.


git-svn-id: svn://localhost/gambas/trunk@7803 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-21 01:06:20 +00:00
Benoît Minisini
f0a058e675 [GB.GTK3]
* BUG: Fix compilation with GTK+ version < 3.14.


git-svn-id: svn://localhost/gambas/trunk@7802 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-19 22:24:32 +00:00
Benoît Minisini
bad1f7398f [GB.GTK3]
* BUG: Checked menus are now drawn correctly with all widget themes.


git-svn-id: svn://localhost/gambas/trunk@7801 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-19 18:59:16 +00:00
Benoît Minisini
a4c9b03edb [DEVELOPMENT ENVIRONMENT]
* NEW: Add a button in the search list panel that closes it.


git-svn-id: svn://localhost/gambas/trunk@7800 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-13 07:53:41 +00:00
Benoît Minisini
b6becf78b8 [GB.WEB.FORM]
* NEW: WebCheckBox: Default event is "Click".
* NEW: WebRadioButton: Default event is "Click".
* NEW: WebControl: Add as specific class for disabled controls.
* NEW: WebControl.Enabled now return FALSE as soon as a parent is disabled.
* NEW: Disabled look for WebRadioButton and WebCheckBox.
* BUG: WebSpinBox minimum height is the same as WebTextBox.


git-svn-id: svn://localhost/gambas/trunk@7799 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-11 14:20:20 +00:00
Benoît Minisini
853862d756 [DEVELOPMENT ENVIRONMENT]
* NEW: Display SQLite library version in the system information dialog.


git-svn-id: svn://localhost/gambas/trunk@7798 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-07 00:17:32 +00:00
Benoît Minisini
c324389180 [COMPILER]
* NEW: Rename the internal class initialization method from "$load" to "@load", so that the valid identifier "$load" can be freely used by the user.


git-svn-id: svn://localhost/gambas/trunk@7797 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-07 00:08:11 +00:00
Benoît Minisini
3eb078c345 [GB.WEB.FORM]
* BUG: WebButton: Fix button image layout.
* NEW: WebTextBox: Handling the Completion event enables automatic completion. The CompleteWith() method must then be called to return to the web browser the list of completion elements.
* NEW: WebForm: Reload() is a new method that clears the session and reload the page, if the WebForm is it called on is the current one.


git-svn-id: svn://localhost/gambas/trunk@7796 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-05 20:58:11 +00:00
Benoît Minisini
dd61c608aa [GB.FORM.TERMINAL]
* NEW: TerminalView: Mouse wheel now scrolls the terminal if it has no requested mouse events.

[GB.WEB.FORM]
* BUG: WebButton: Setting Text and Image property now refreshes the control only if the value has actually changed.
* NEW: WebButton: Image property can be an absolute path.
* NEW: WebContainer: All containers are now "position: relative".
* BUG: WebLabel: Setting Text property now refreshes the control only if the value has actually changed.
* NEW: WebTable: ShowCheck is a new property, set by default. If not set, the first column of checkboxes or radiobuttons is hidden, and the table behaves a bit like a ListBox.
* BUG: WebUploadArea: Spurious Progress events are not raised anymore once the upload is finished.
* OPT: WebWindow: Windows are now positioned through a 2D translation instead of setting the top and left positions. That way, the browser won't recalculate its layout, and the window moves are faster. Especially on Firefox.
* NEW: Initial internal support for automatic completion.
* BUG: WebWindow: Deactivated window title is visible again.


git-svn-id: svn://localhost/gambas/trunk@7795 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-01 23:59:23 +00:00
Benoît Minisini
813a9c04c0 [DEVELOPMENT ENVIRONMENT]
* BUG: Show console before inserting a message inside.
* BUG: Fix the height of some labels in the create project dialog.
* NEW: Auto-completion of event handlers now automatically inserts their signature.


git-svn-id: svn://localhost/gambas/trunk@7794 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-31 22:17:22 +00:00
Benoît Minisini
f01ea65084 [INTERPRETER]
* BUG: Fix a possible misuse of kill() when calling Process.Kill().


git-svn-id: svn://localhost/gambas/trunk@7792 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-31 12:11:35 +00:00
Willy Raets
ff8f4aa093 [DEVELOPMENT ENVIRONMENT]
* NEW: Dutch translations updated



git-svn-id: svn://localhost/gambas/trunk@7791 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-25 20:10:29 +00:00
Willy Raets
bfde6dfe69 [GB.FORM]
* NEW: Dutch translations updated



git-svn-id: svn://localhost/gambas/trunk@7790 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-25 19:53:43 +00:00
Willy Raets
d2dfdbef61 [GB.FORM.MDI]
* NEW: Dutch translations updated



git-svn-id: svn://localhost/gambas/trunk@7789 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-25 19:50:45 +00:00
Willy Raets
18a2d3b508 [GB.REPORT2]
* NEW: Dutch translations updated



git-svn-id: svn://localhost/gambas/trunk@7788 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-25 19:46:58 +00:00
Willy Raets
d4e8cfd761 [GB.WEB.FORM]
* NEW: Dutch translations



git-svn-id: svn://localhost/gambas/trunk@7787 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-25 19:39:00 +00:00
Benoît Minisini
f57d3273fe [CONFIGURATION]
* NEW: Support for Haiku operating system.
* BUG: Add explicit dependencies on 'x11' and 'gl' pkg-config packages.

[GB.FORM]
* NEW: MaskBox: Use unicode large spaces instead of ASCII smal spaces.

[GB.UTIL.WEB]
* BUG: Fix collection generation in JSON.Encode().

[GB.WEB.FORM]
* NEW: WebImage: Add the Border property.
* NEW: WebImage: Image property now can be an absolute path.
* BUG: WebButton: Workaround Firefox not supporting flex on buttons.
* BUG: WebComboBox: Enabled property is now taken into account.
* BUG: WebUploadArea: The file name now keeps the uploaded file extension.


git-svn-id: svn://localhost/gambas/trunk@7786 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-24 16:18:48 +00:00
Benoît Minisini
9779e9b105 [INTERPRETER]
* NEW: The Stream class now can raise a Resize event. Only the standard input stream (File.In) can raise it.
* NEW: If the startup class defines an Application_Read() or an Application_Resize() event handler, then the standard input stream is attached to it with the "Application" event name, so that these event handlers are used. Otherwise, the standard input stream must be attached and watched manually.


git-svn-id: svn://localhost/gambas/trunk@7785 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-22 22:03:16 +00:00
Benoît Minisini
8b0f227a66 [GB.FORM.TERMINAL]
* BUG: Fix two inverted escape sequences: "\e[48;5;<color>m" and "\e[38;5;<color>m".


git-svn-id: svn://localhost/gambas/trunk@7784 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-22 21:10:21 +00:00
Fabien Bodard
7e08378924 [GB.TERMAPP]
* NEW: Continue working on the renderer. 


git-svn-id: svn://localhost/gambas/trunk@7783 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-22 20:36:07 +00:00
Benoît Minisini
7da504f610 [GB.WEB.FORM]
* BUG: Fix WebProgressBar control icon symbolic link.


git-svn-id: svn://localhost/gambas/trunk@7782 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-22 15:26:39 +00:00
Benoît Minisini
2954a7fbd2 [GB.WEB.FORM]
* OPT: Allow to specify "naked" containers, that render nothing by themselves except their children.
* BUG: WebUploadArea: Fix the Path property.


git-svn-id: svn://localhost/gambas/trunk@7781 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-22 15:20:46 +00:00
Benoît Minisini
e68a378ffa [DEVELOPMENT ENVIRONMENT]
* BUG: Packager: Support for new internal library naming scheme.


git-svn-id: svn://localhost/gambas/trunk@7780 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-14 18:48:03 +00:00
Benoît Minisini
9b13b69fda [GB.DBUS]
* NEW: The application now registers to the DBus bus with its process id added to its name.
* NEW: DBus.Unique is a new property that sets if the application should be unique on the DBus bus. If set, then the process id is not added to the name when registering.
* BUG: If DBus.Unique is set, then registering the application a second time raises an error.


git-svn-id: svn://localhost/gambas/trunk@7779 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-14 15:59:31 +00:00
Benoît Minisini
0a0157878d [GB.DESKTOP]
* BUG: Fix Unity indicator unregistration in TrayIcon.Delete() method.


git-svn-id: svn://localhost/gambas/trunk@7778 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-14 13:19:03 +00:00
Benoît Minisini
cbdd2e83e3 [GB.DESKTOP]
* BUG: Use the same desktop detection algorithm than GUI components.

[GB.GTK]
* BUG: Fix the desktop detection algorithm. Use XDG_CURRENT_DESKTOP before anything else. Support for Cinnamon.

[GB.GTK3]
* BUG: Fix the desktop detection algorithm. Use XDG_CURRENT_DESKTOP before anything else. Support for Cinnamon.

[GB.QT4]
* BUG: Fix the desktop detection algorithm. Use XDG_CURRENT_DESKTOP before anything else. Support for Cinnamon.

[GB.QT5]
* BUG: Fix the desktop detection algorithm. Use XDG_CURRENT_DESKTOP before anything else. Support for Cinnamon.



git-svn-id: svn://localhost/gambas/trunk@7777 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-14 12:22:06 +00:00
Benoît Minisini
0a41a36031 [GB.DESKTOP]
* NEW: Support for Cinnamon


git-svn-id: svn://localhost/gambas/trunk@7776 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-14 11:25:45 +00:00
Benoît Minisini
673dd259e8 [GB.DBUS.TRAYICON]
* NEW: Deleting a TrayIcon now unregisters it when Unity-like indicator protocol is in use.
* NEW: Support for Cinnamon. Note that the Cinnamon system tray does not send the click events specified by the protocol. Consequently, you get no Click, MiddleClick and Scroll events!


git-svn-id: svn://localhost/gambas/trunk@7775 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-14 11:15:35 +00:00
Benoît Minisini
c50a343534 [GB.DBUS.TRAYICON]
* NEW: Add support for the XAyatanaLabel property. It actually returns the TrayIcon Text property.


git-svn-id: svn://localhost/gambas/trunk@7774 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-14 10:12:40 +00:00
Benoît Minisini
c6a24a3a26 [DEVELOPMENT ENVIRONMENT]
* NEW: Add pastel theme made by Antonio Orefice.


git-svn-id: svn://localhost/gambas/trunk@7773 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-13 12:54:19 +00:00
Benoît Minisini
811bbb9745 [DEVELOPMENT ENVIRONMENT]
* BUG: Give fous to the terminal when the program is started.
* NEW: Connection editor: Add "select all" and "unselect all" buttons to the DataView.

[GB.DB.FORM]
* BUG: DataView: Allow selection unless the current record is a new record.

[GB.FORM.TERMINAL]
* BUG: TerminalView: Reset() method resets more things.
* BUG: TerminalView: Flush the output buffer when the running process ends.

[GB.UTIL]
* BUG: Date.FromUnixTime() now correctly ignores the current timezone.

[GB.UTIL.WEB]
* OPT: JSON.Encode() is now a lot faster, thanks to Alexander Kuiper.

[GB.WEB.FORM]
* BUG: WebDateBox: Fix "_Similar" property.
* BUG: WebComboBox: Fix "_Similar" property.
* NEW: WebDateBox: Value is now a synonymous for the Date property.


git-svn-id: svn://localhost/gambas/trunk@7772 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-13 12:38:58 +00:00
Benoît Minisini
7c4220f210 [GB.FORM]
* BUG: FileView: Enable/disable file watches on Show/Hide events.
* BUG: DirView: Enable/disable file watches on Show/Hide events.


git-svn-id: svn://localhost/gambas/trunk@7771 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-07 14:28:09 +00:00
Benoît Minisini
cb9dcb4d4b [DEVELOPMENT ENVIRONMENT]
* NEW: Hide the debug panel when the console is put in floating mode.
* BUG: Take the "invert theme" option when initializing the colors of a specific control.

[GB.FORM]
* BUG: Remove a debugging message.

[GB.QT4]
* BUG: Do nothing when showing or hiding a window, when it is already shown or hidden.

[GB.QT5]
* BUG: Do nothing when showing or hiding a window, when it is already shown or hidden.


git-svn-id: svn://localhost/gambas/trunk@7770 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-07 13:15:31 +00:00
Benoît Minisini
a38aff282c [GB.FORM]
* OPT: DirView: Disable file watches when the control is hidden.
* OPT: DirView: Delay the view refresh when a watch event is received.
* BUG: DirView: Remove debugging messages.



git-svn-id: svn://localhost/gambas/trunk@7769 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-07 01:15:43 +00:00
Benoît Minisini
535fa6bea3 [GB.INOTIFY]
* BUG: Forgot to commit a source file.


git-svn-id: svn://localhost/gambas/trunk@7768 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-07 00:55:08 +00:00
Benoît Minisini
9fa485e790 [GB.FORM]
* NEW: If 'gb.inotify' component is loaded, then FileView and DirView will use it to automatically refresh when something changes on the file system.
* NEW: FileView: Preview refresh optimization.

[GB.GUI.BASE]
* NEW: IconView: Add ScrollX, ScrollY, ScrollWidth, ScrollHeight, ClientWidth and ClientHeight properties.
* NEW: IconView: Add the Scroll() method.


git-svn-id: svn://localhost/gambas/trunk@7767 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-07 00:07:42 +00:00
Benoît Minisini
7fc3acc849 [GB.INOTIFY]
* BUG: Now you can create as many watches on the same path as you want.
* NEW: Consequently, the Watch[] static array accessor, that returned the watch associated with a path, had to be removed.
* NEW: The flags constants and the Watch.Events property are now associated with the Gambas events, not the internal inotify events.


git-svn-id: svn://localhost/gambas/trunk@7766 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-06 23:03:28 +00:00
Benoît Minisini
364288739a [DEVELOPMENT ENVIRONMENT]
* NEW: Debug panel: Some design fixes.
* BUG: Display a message when the debugged program is stopped by CTRL+C or the SIGTERM signal.


git-svn-id: svn://localhost/gambas/trunk@7765 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-05 17:40:44 +00:00
Benoît Minisini
79d8aa1673 [GB.GTK]
* BUG: Button grab is correctly released now when a modal dialog is opened after a button click.

[GB.GTK3]
* BUG: Button grab is correctly released now when a modal dialog is opened after a button click.


git-svn-id: svn://localhost/gambas/trunk@7764 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-05 14:01:49 +00:00