Commit graph

2447 commits

Author SHA1 Message Date
gambas
cc2b05a4c9 Desktop.OpenTerminal now handles "Ubuntu:Gnome" desktop type.
[GB.DESKTOP]
* NEW: Desktop.OpenTerminal now handles "Ubuntu:Gnome" desktop type.
2018-12-11 02:23:16 +01:00
gambas
eb36e0e17a TextEditor.CloseStrings is a new property that tells if strings should be automatically closed.
[GB.FORM.EDITOR]
* NEW: TextEditor.CloseStrings is a new property that tells if strings should be automatically closed.
2018-12-11 02:18:38 +01:00
gambas
6d9ba50c60 SpinBox: Setting the Border property now correctly refreshes the control.
[GB.GUI.BASE]
* BUG: SpinBox: Setting the Border property now correctly refreshes the control.
2018-12-09 03:49:41 +01:00
gambas
1d639e4b27 String.Left() sometimes fails. Print a warning if such a case is detected.
[GB.FORM.TERMINAL]
* BUG: String.Left() sometimes fails. Print a warning if such a case is detected.
2018-12-07 01:02:49 +01:00
gambas
f420eaaff1 TextEditor: Add LastLine and LastColumn properties.
[GB.FORM.EDITOR]
* NEW: TextEditor.LastLine is a new property that returns the line position just before a cursor move.
* NEW: TextEditor.LastColumn is a new property that returns the column position just before a cursor move.
2018-11-27 03:01:00 +01:00
gambas
1ba102c453 PictureBox: Setting the Picture or Image property now correctly refreshes the control.
[GB.GUI.BASE]
* BUG: PictureBox: Setting the Picture or Image property now correctly refreshes the control.
2018-11-20 23:12:11 +01:00
gambas
83c39796eb Toolbar: Drag & drop should not crash anymore because of the previous change in the Parent property.
[GB.FORM.MDI]
* BUG: Toolbar: Drag & drop should not crash anymore because of the previous change in the Parent property.
2018-11-20 12:14:18 +01:00
gambas
3eaa0098d4 TextEditor: Make the automatic insertion of string delimiters more clever.
[GB.FORM.EDITOR]
* NEW: TextEditor: Make the automatic insertion of string delimiters more clever.
2018-11-19 23:19:33 +01:00
gambas
6303762ff7 ScrollView: Automatic layout is now done before and after arrangement.
[GB.GUI.BASE]
* BUG: ScrollView: Automatic layout is now done before and after arrangement.
2018-11-16 01:35:59 +01:00
gambas
a66ce09e79 TerminalView: Fix a possible crash when inserting a line longer than the terminal width.
[GB.FORM.TERMINAL]
* BUG: TerminalView: Fix a possible crash when inserting a line longer than the terminal width.
2018-11-15 00:26:24 +01:00
gambas
507f2d2b3c TextEditor: Syntax highlihgting of lines including tab characters has been fixed.
[GB.FORM.EDITOR]
* BUG: TextEditor: Syntax highlihgting of lines including tab characters has been fixed.
2018-11-14 23:53:38 +01:00
gambas
f30edfa302 ProgressBar: Pulsing is now visible as soon as the ProgressBar is twice large as high, and the animation is smoother.
[GB.GUI.BASE]
* NEW: ProgressBar: Pulsing is now visible as soon as the ProgressBar is twice large as high, and the animation is smoother.
2018-11-14 23:52:22 +01:00
gambas
8fe11c046d Shell.MkDir() now handles paths starting with "~/", and Shell.Move() can automatically erase the destination.
[GB.UTIL]
* NEW: Shell.MkDir() now handles paths starting with "~/", and raises an error if creating the directory is impossible.
* NEW: Shell.Move() got a new optional 'Force' argument, that erases the destination path The erase and the move are atomic if possible.
2018-11-14 23:48:49 +01:00
gambix
38da5ea0f7 Change Timer delay for a trigger loop in ReportView layout
[GB.REPORT]
* BUG: Change Timer delay for a trigger loop in ReportView layout lookup. Now the processor will not
  have any over use any more.
2018-11-08 15:05:49 +01:00
gambas
6ffa483e4f TreeView: The space between the icon and the item text is now bigger, and proportional to the desktop font size.
[GB.GUI.BASE]
* NEW: TreeView: The space between the icon and the item text is now bigger, and proportional to the desktop font size.
2018-11-07 17:20:39 +01:00
gambas
a0af45675e DocumentView: Use Timer.Trigger() method to prevent 100% CPU usage with QT4.
[GB.FORM]
* BUG: DocumentView: Use Timer.Trigger() method to prevent 100% CPU usage with QT4.
2018-11-07 17:03:36 +01:00
gambix
56f68cf840 Now if the layer in not existing return null and do nothing if .remove(shape) not exist.
[GB.MAP]
* BUG: return null if the required layer not exist
* BUG: Remove function of Shape Layer do nothing if the Layer did not exist
* BUG: All the object can be removed in all order now.
2018-11-06 11:32:14 +01:00
gambas
86c1836003 [GB.EVAL.HIGHLIGHT]
* NEW: TextHighlighter.ToHTML() replaces all space by ' '.
* NEW: TextHighlighter.ToRichText() returns an highlighted text in rich text format.

[GB.FORM.EDITOR]
* BUG: TextEditor: Fix automatic insertion of string delimiters.

[GB.FORM.MDI]
* NEW: Toolbar: Redraw expander icon.

[GB.FORM.STOCK]
* NEW: Redraw 'spell-check' icon.
2018-10-25 23:28:46 +02:00
gambas
901b84a36c Update xdg-utils to 1.1.3 version.
[GB.DESKTOP]
* NEW: Update xdg-utils to 1.1.3 version.
2018-10-11 00:03:41 +02:00
gambas
0dc57ad4ad ScrollView: Fix layout routine and correctly propagate focus events.
[GB.GUI.BASE]
* BUG: ScrollView: Fix layout routine.
* BUG: ScrollView: Correctly propagate focus events.
2018-10-10 10:32:20 +02:00
gambas
0cafd5dab9 Remove a public variable declared in a parent and in a child class.
[GB.MAP]
* BUG: Remove a public variable declared in a parent and in a child class.
2018-10-10 02:04:48 +02:00
gambas
f89186d6a8 SpinBox: Fix keyboard management when entering a value.
[GB.GUI.BASE]
* BUG: SpinBox: Fix keyboard management when entering a value.
2018-10-09 22:00:41 +02:00
gambix
6b7a879232 Merge branch 'master' of gitlab.com:gambas/gambas 2018-10-04 14:27:00 +02:00
gambix
2475f36477 Now if the layer in not existing return null and do nothing if .remove(shape) not exist.
[GB.MAP]
* BUG: return null if the required layer not exist
* BUG: Remove function of Shape Layer do nothing if the Layer id not exist
2018-10-04 14:25:46 +02:00
gambas
f67b8ab307 Update some icons.
[GB.FORM.STOCK]
* NEW: Update some icons.
2018-10-04 12:26:11 +02:00
gambas
ddf3275bdc Optimize FileView refresh, and fix SidePanel buttons that sometimes were created twice.
[GB.FORM]
* OPT: FileView: Optimize view refresh.
* BUG: SidePanel: Side buttons were sometimes created twice.
* BUG: SidePanel: Side buttons tooltips are now always correct.
2018-10-04 12:24:08 +02:00
gambas
d46368f276 IconView items highglight is correctly drawn now, and some TreeView optimizations.
[GB.GUI.BASE]
* BUG: IconView: Items highglight is correctly drawn now.
* OPT: TreeView: Allows the view to be locked while a lot of items are added.
* NEW: TreeView: BeforeSort is a new event that allows a caller to prepare its custom view sort.
2018-10-04 12:19:03 +02:00
gambas
65b0fb986f DataView: Clicking on the creation row now works correctly again.
[GB.DB.FORM]
* BUG: DataView: Clicking on the creation row now works correctly again.
2018-10-03 16:14:08 +02:00
gambas
261697ae44 Fix ColorPalette, optimize FileView refresh, make the TableView editor position nicer.
[GB.FORM]
* BUG: ColorPalette: Handle mouse wheel events correctly.
* BUG: ColorPalette: Ensure that the current color is visible.
* NEW: ColorChooser: The value slider now handles mouse wheel events.
* OPT: FileView: Sort the files once when the view is reloaded.
* NEW: TableView: Move the editor so that the cell border is correctly visible.
2018-10-03 16:10:03 +02:00
gambas
a7ddfbe0cf Fix ScrollView arrangement, and optimize TreeView items adding.
[GB.GUI.BASE]
* NEW: GridView: Draw last column and last rows separators even if Grid is not set when the GridView is actually a TableView.
* BUG: ScrollView: Fix arrangement.
* OPT: TreeView: Define the default row size, so that adding items is faster.
2018-10-03 16:07:04 +02:00
gambas
1bf70e1e75 PictureBox is now implemented in Gambas.
[GB.GTK]
* NEW: Remove PictureBox control.

[GB.GTK3]
* NEW: Remove PictureBox control.

[GB.GUI.BASE]
* NEW: PictureBox is now implemented in Gambas.
* NEW: PictureBox: Image is a new property that allows to display an Image instead of a Picture.
* NEW: PictureBox: Mode is a new property that defines how the image fills the control.

[GB.QT4]
* NEW: Remove PictureBox control.

[GB.QT5]
* NEW: Remove PictureBox control.
2018-10-03 16:06:54 +02:00
gambas
7e2ccb7cce TextEditor: Prevent a possible infinite looping on displaying an incorrectly highlighted text line.
[GB.FORM.EDITOR]
* BUG: TextEditor: Prevent a possible infinite looping on displaying an incorrectly highlighted text line.
2018-10-01 23:20:43 +02:00
gambas
8adc54015b ImageView: Fix view to image coordinates conversion.
[GB.FORM]
* BUG: ImageView: Fix view to image coordinates conversion.
2018-10-01 23:19:49 +02:00
gambas
5c6423eedb Update some versions. 2018-09-29 13:26:18 +02:00
gambas
51c80eba92 Allow to add actions at runtime to the static list created by the compiler.
[GB.FORM.MDI]
* NEW: Action.Add() is a new method that allows to declare a new action.
* NEW: Action.AddFrom() is a new method that declare a new action from a control.
2018-09-29 13:23:36 +02:00
gambas
c2469623bf Add Action.Keys and Action[].HasShortcut properties.
[GB.GUI.BASE]
* NEW: Action.Keys is new static property that returns the list of all action keys.
* NEW: Action[].HasShortcut is a new property that returs if an action can have a shortcut.
2018-09-29 13:20:33 +02:00
gambas
35d20604b1 TextEditor: Try to make automatic insertion of quotes more clever.
[GB.FORM.EDITOR]
* NEW: TextEditor: Try to make automatic insertion of quotes more clever.
2018-09-29 04:42:42 +02:00
gambas
5ae2f48bd5 Make 128 pixels versions of message box icons.
[GB.FORM.STOCK]
* NEW: Make 128 pixels versions of message box icons.
2018-09-28 18:58:46 +02:00
gambas
4239ddbaf0 SpinBox: Allow the wheel event handler to be overrided, so that SliderBox works as expected again.
[GB.GUI.BASE]
* BUG: SpinBox: Allow the wheel event handler to be overrided, so that SliderBox works as expected again.
2018-09-28 18:55:19 +02:00
gambas
9f0ca8d8d5 IconView: Keys is a new property that returns an array of all item keys.
[GB.GUI.BASE]
* NEW: IconView: Keys is a new property that returns an array of all item keys.
2018-09-26 18:54:06 +02:00
gambas
2d978ed99f Matching braces are now just underlined and Setting styles multiple times now triggers only one highlight update.
[GB.FORM.EDITOR]
* OPT: TextEditor: Setting styles multiple times now triggers only one highlight update.
* NEW: TextEditor: Matching braces are now just underlined. I find that more readable.
2018-09-26 18:48:24 +02:00
gambas
acafa3f219 SidePanel: Setting the Hidden property now takes the current animation into account.
[GB.FORM]
* BUG: SidePanel: Setting the Hidden property now takes the current animation into account.
2018-09-26 18:46:55 +02:00
gambas
f6a88365d3 TreeView, ListView, ColumnView: Keys is a new property that returns an array of all item keys, and setting an item font has no side effect anymore.
[GB.GUI.BASE]
* NEW: TreeView, ListView, ColumnView: Keys is a new property that returns an array of all item keys.
* BUG: TreeView, ListView, ColumnView: Setting an item font has no side effect anymore.
2018-09-26 17:47:23 +02:00
gambas
4bf287a44a ScrollView: Fix a possible infinite loop in contents arrangement routine.
[GB.GUI.BASE]
* BUG: ScrollView: Fix a possible infinite loop in contents arrangement routine.
2018-09-23 09:13:36 +02:00
gambas
41a62f3426 Take the ScrollView margin into account, and do not propagage SpinBox mouse wheel events.
[GB.GUI.BASE]
* BUG: ScrollView: Take the Margin property into account correctly.
* BUG: SpinBox: Do not propagate mouse wheel events.
2018-09-22 00:46:49 +02:00
gambas
6ab416eae3 Workspace: The first tab is now closable with the middle mouse button, when the CloseWithMouse property is set.
[GB.FORM.MDI]
* BUG: Workspace: The first tab is now closable with the middle mouse button, when the CloseWithMouse property is set.
2018-09-21 11:08:57 +02:00
gambas
b71eed5b62 TextEditor: Clean up the sidebar view management code, and fix its behaviour.
[GB.FORM.EDITOR]
* BUG: TextEditor: Clean up the sidebar view management code, and fix its behaviour.
2018-09-20 17:37:18 +02:00
gambas
bc20ef46f7 Optimize many PNG files with 'pngquant'. 2018-09-19 22:07:02 +02:00
gambas
46f21a7f7b Strip png files with ImageMagick convert command. 2018-09-19 20:53:00 +02:00
gambas
88c89d0d7e TextEditor: Setting the editor text does not crash anymore if the cursor of one of its view is out of bounds.
[GB.FORM.EDITOR]
* BUG: TextEditor: Setting the editor text does not crash anymore if the cursor of one of its view is out of bounds. Finally fixed it!
2018-09-19 19:36:19 +02:00
gambas
b6ab28fe8f Wizard takes Application.Animations into account, and SidePanel resize buttons should be correctly managed.
[GB.FORM]
* NEW: Wizard: Take Application.Animations into account.
* NEW: Wizard: Animated property is now deprecated.
* NEW: SidePanel: Fix resize buttons management.
2018-09-17 12:40:34 +02:00
gambas
63af98dc9b Fix ScrollArea and ScrollView behaviour.
[GB.GUI.BASE]
* BUG: ScrollArea: Correctly raise Scroll events.
* BUG: ScrollView: Arrangement should be correctly done now.
2018-09-17 12:38:45 +02:00
gambas
4769d0601e SidePanel: Animate opening and closing when Application.Animations is set.
[GB.FORM]
* BUG: SidePanel: It should work correctly in all cases now.
* NEW: SidePanel: Animate opening and closing when Application.Animations is set.
2018-09-15 22:36:38 +02:00
gambas
603052af5c TextEditor: GotoCenter() works correctly again, and HighlightString() correctly refreshes the editor contents in all cases.
[GB.FORM.EDITOR]
* BUG: TextEditor: GotoCenter() works correctly again.
* BUG: TextEditor: HighlightString() correctly refreshes the editor contents in all cases.
2018-09-15 22:34:19 +02:00
gambas
6462ea0007 ScrollArea: NoShadow is a new property, that disable shadows if it has been globally set by Application.Shadows.
[GB.GUI.BASE]
* NEW: ScrollArea: NoShadow is a new property, that disable shadows if it has been globally set by Application.Shadows.
2018-09-15 22:32:52 +02:00
gambas
813798a3eb TextEditor: HighlightString() is a new method that highlights a specific string everywhere.
[GB.FORM.EDITOR]
* NEW: TextEditor: HighlightString() is a new method that highlights a specific string everywhere.
2018-09-12 14:56:29 +02:00
gambas
d152d887c2 TerminalView: Fix smooth scrolling support.
[GB.FORM.TERMINAL]
* BUG: TerminalView: Fix smooth scrolling support.
2018-09-12 14:55:29 +02:00
gambas
f191a6ed72 SidePanel: The height is now zero when the panel is closed. Does not work completly yet.
[GB.FORM]
* NEW: SidePanel: The height is now zero when the panel is closed. Does not work completly yet.
2018-09-12 14:39:03 +02:00
gambas
5bb286aa80 Implement ScrollView in Gambas.
[GB.GUI.BASE]
* NEW: ScrollArea: ContentsWidth and ContentsW are two new synonymous of the ScrollWidth property.
* NEW: ScrollArea: ContentsHeight and ContentsH are two new synonymous of the ScrollHeight property.
* NEW: ScrollArea: Shadow is a new property that displays inner shadows when scrolling is possible.
* NEW: ScrollArea: Rework scrolling animation.
* NEW: ScrollView: That control is now implemented in Gambas.
2018-09-12 14:38:19 +02:00
gambas
62fefce8f7 TerminalView: Animate scrolling when Application.Animations property is TRUE.
[GB.FORM.TERMINAL]
* NEW: TerminalView: Animate scrolling when Application.Animations property is TRUE.
2018-09-10 20:49:46 +02:00
gambas
279c9a2782 SpinBox: Correctly refresh arrows when leaving the control.
[GB.GUI.BASE]
* BUG: SpinBox: Correctly refresh arrows when leaving the control.
2018-09-10 20:48:41 +02:00
gambas
f3eca2dd99 Font dialog: dialog is now centered at startup.
[GB.FORM.DIALOG]
* BUG: Font dialog: dialog is now centered at startup.
2018-09-10 20:07:46 +02:00
gambas
b0d9e142f9 TextEditor: Fix scrolling when animations are enabled.
[GB.FORM.EDITOR]
* BUG: TextEditor: Fix scrolling when animations are enabled.
2018-09-07 19:50:04 +02:00
gambas
196d5a3ebd ColorPalette: Scroll to the color when the Current property is set.
[GB.FORM]
* BUG: SwitchButton: Remove a debugging message.
* BUG: ColorPalette: Scroll to the color when the Current property is set.
2018-09-07 19:48:39 +02:00
gambas
b9af80fbec ScrollArea: Fix behaviour when scrolling animation is enabled.
[GB.GUI.BASE]
* BUG: ScrollArea: Fix behaviour when scrolling animation is enabled.
* BUG: SpinBox: Refresh correctly when the value changes.
2018-09-07 19:43:39 +02:00
gambas
ca324ba8b5 Update some icons.
[GB.FORM.STOCK]
* NEW: Update some icons.
2018-09-06 13:03:36 +02:00
gambas
fc00dcbad2 SpinBox: The Change event is correctly raised when the value is changed by typing it.
[GB.GUI.BASE]
* BUG: SpinBox: The Change event is correctly raised when the value is changed by typing it.
2018-09-06 13:02:48 +02:00
gambas
da1863bd5d TextEditor: Support for dotted highlighted text.
[GB.FORM.EDITOR]
* NEW: TextEditor: Support for dotted highlighted text.
2018-09-06 09:52:29 +02:00
gambas
0ce7ddf5c3 ScrollArea: Fix for scrolling animations. Add a new Scrolling property that returns if the control is scrolling for animations.
[GB.GUI.BASE]
* NEW: ScrollArea: Scrolling is a new property that returns if the control is scrolling for animations.
* NEW: ScrollArea: Don't animate scrolling if nothing has been drawn yet.
* BUG: ScrollArea: Fix the ScrollX and ScrollY properties when animations are enabled.
2018-09-06 09:33:55 +02:00
gambas
89eb4ff2b8 Take Application.Animations property into account in some controls.
[GB.FORM]
* NEW: SwitchButton: Take Application.Animations property into account.
* NEW: MessageView: Take Application.Animations property into account.
2018-09-06 09:32:38 +02:00
gambas
d61741474f ScrollArea and all its children classes now can animate their scrolling.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update Gambas fonts.
* NEW: Option dialog: Add an option to enable control animations. Move the toolbar size option to the 'Fonts' panel.

[GB.GTK]
* NEW: Application.Animations is a new property that enable or disable control animations.

[GB.GTK3]
* NEW: Application.Animations is a new property that enable or disable control animations.
* NEW: Control.Font is now implemented using GTK+ CSS.

[GB.GUI.BASE]
* NEW: ScrollArea: Animate scrolling if Application.Animations is set.

[GB.QT4]
* NEW: Application.Animations is a new property that enable or disable control animations.

[GB.QT5]
* NEW: Application.Animations is a new property that enable or disable control animations.
2018-09-05 21:19:57 +02:00
gambas
a908cbcecd ButtonBox: Fix some margin, according to the previous fix to Style metric properties.
[GB.FORM]
* NEW: ButtonBox: Fix some margin, according to the previous fix to Style metric properties.
2018-09-04 16:18:53 +02:00
gambas
ee674d9068 Many fixes to the GTK+3 components, and rewrite the SpinBox control in Gambas.
[GB.GTK]
* NEW: Remove the native SpinBox implementation.
* BUG: Add specific fixes for breeze and oxygen themes.

[GB.GTK3]
* NEW: Remove the native SpinBox implementation.
* BUG: ComboBox: Fix rendering.
* BUG: ComboBox: Use a GtkBox instead of the deprecated GtkAlignment.
* BUG: Style: Fix some paint methods and metric properties.
* BUG: Add specific fixes for breeze and oxygen themes.

[GB.GUI.BASE]
* NEW: SpinBox: New implementation of the control in Gambas.
* BUG: ProgressBar: Fix rendering with GTK+ components.

[GB.QT4]
* NEW: Remove the native SpinBox implementation.
* NEW: RadioButton: Fill the widget when the background color is set.
* BUG: Style: Fix some metric properties.

[GB.QT5]
* NEW: Remove the native SpinBox implementation.
* NEW: RadioButton: Fill the widget when the background color is set.
* BUG: Style: Fix some metric properties.
2018-09-04 15:56:23 +02:00
gambas
847dcd8ebf Remove other files that should not be tracked by git. 2018-09-01 12:23:05 +02:00
gambas
9ffe91c294 Remove files that should not be tracked by git. 2018-09-01 12:21:57 +02:00
gambas
dde015e828 Update some project and component configuration files. 2018-09-01 12:17:56 +02:00
gambas
5b7b62dea3 TableView: The cell editor now takes the color and font properties of the edited cell.
[GB.FORM]
* BUG: TableView: The cell editor now takes the color and font properties of the edited cell.
2018-09-01 12:01:56 +02:00
gambas
7e392841d5 FileChooser: After having uncompressed a file, calls the event loop before refreshing the views so that the possible inotify events are processed.
[GB.FORM]
* NEW: FileChooser: After having uncompressed a file, calls the event loop before refreshing the views so that the possible inotify events are processed.
2018-09-01 00:49:45 +02:00
gambas
a73c2ed412 Add three new color constants for syntax highlighting: Escape, Label and Constant.
[COMPILER]
* NEW: Rename a macro constant to avoid a symbol clash when compiling the interpreter.

[INTERPRETER]
* NEW: Get rid of a macro trick in 'gbx_eval.h' header.

[GB.EVAL]
* NEW: Highlight: Add three new color constants for syntax highlighting: Escape, Label and Constant.
* NEW: Rename some source files.
* NEW: Rename some constants.
* NEW: Gambas syntax highlighter now use the three new contants for escape characters in strings, for labels, and for language contants (True, False, Null, +Inf and -Inf).

[GB.EVAL.HIGHLIGHT]
* NEW: Support for the new syntax highlighting color constants.

[GB.FORM.EDITOR]
* NEW: Support for the new syntax highlighting color constants.
2018-08-31 15:58:53 +02:00
gambas
7e3f84d1e5 [GB.FORM.EDITOR]
* BUG: TextEditor: Fix automatic completion of string delimiters.
* BUG: TextEditor: Add single quote to HTML and WebPage string delimiters.
2018-08-31 02:11:44 +02:00
gambas
bde635a666 TextEditor: Automatic brace completion is more clever now.
[GB.FORM.EDITOR]
* NEW: TextEditor: Automatic brace completion is more clever now.
2018-08-28 17:07:35 +02:00
Benoît Minisini
f0dfa829e7 Merge branch 'master' into 'master'
Fix some minor issues found while packaging for Debian without Qt4

See merge request gambas/gambas!30
2018-08-23 18:02:12 +00:00
gambas
ccce7ad1b7 Add an option to close the tabs with the middle mouse button instead of using little close buttons.
[DEVELOPMENT ENVIRONMENT]
* NEW: Add an option to close the tabs with the middle mouse button instead of using little close buttons.

[GB.FORM]
* NEW: TabPanel: The middle mouse button does not close tabs anymore. It is now a feature only implemented in the Workspace control.

[GB.FORM.MDI]
* NEW: Workspace: CloseWithMouse is a new property. If set, the workspace tabs little close buttons are hidden, and the workspace tabs can be closed with a middle mouse click.
2018-08-14 22:46:41 +02:00
gambas
bc2c0490cf DesktopFile.FromMime() now follows the freedesktop search path specifications.
[GB.DESKTOP]
* BUG: DesktopFile.FromMime() now follows the freedesktop search path specifications.
2018-08-13 11:39:09 +02:00
gambas
3a49f9f3e9 Use the correct default value for XDG_DATA_DIRS environment variable.
[GB.DESKTOP]
* BUG: Use the correct default value for XDG_DATA_DIRS environment variable.
2018-08-10 11:54:30 +02:00
gambas
e76cdd33d6 Take multiline strings into account in javascript syntax highlighting and javascript editor mode.
[GB.EVAL.HIGHLIGHT]
* NEW: Take multiline strings into account in javascript syntax highlighting.

[GB.FORM.EDITOR]
* NEW: Take multiline strings into account in javascript mode.
2018-08-10 11:52:09 +02:00
Bastian Germann
2e488867a0 Use relative instead of absolute symbolic links
[GB.FORM.STOCK]
* Use relative instead of absolute symbolic links
2018-08-03 20:08:46 +02:00
bgermann
cc505e3fee Use 'gb.gui' component instead of 'gb.qt4*' components
[GB.CHART]
* Use 'gb.gui' component instead of 'gb.qt4*' components
2018-08-03 04:26:12 +02:00
gambas
5a61b7d436 TextEditor: Entering a bracket, a brace... while part of the current line is selected now automatically encloses the selected text.
[GB.FORM.EDITOR]
* NEW: TextEditor: Entering a bracket, a brace... while part of the current line is selected now automatically encloses the selected text.
2018-07-21 16:09:03 +02:00
gambas
a36359b190 DataCheckBox: Its default value is now correctly set to NULL.
[GB.DB.FORM]
* BUG: DataCheckBox: Its default value is now correctly set to NULL.
2018-07-21 15:42:24 +02:00
gambas
5b5356c2a8 IconView: Clicking on an item in multiple selection mode correctly makes it the current item.
[GB.GUI.BASE]
* NEW: IconView: Improve and normalize how items are draws between horizontal et vertical orientation.
* BUG: IconView: Clicking on an item in multiple selection mode correctly makes it the current item.
* OPT: IconView: Selecting items with the keyboard is faster now.
2018-07-21 14:22:54 +02:00
gambas
e3ca5b2e12 FileView: Invalidate directory cache every five second, or if an explicit reload is triggered.
[GB.FORM]
* NEW: FileView: A directory cache is now automatically invalidated every five second.
* NEW: FileView: ReloadAll() now invalidates the directory cache.
2018-07-21 09:27:37 +02:00
gambas
150f488f8c Fix renaming process of DirView and FileView controls.
[GB.FORM]
* BUG: DirView: Errors occuring during a renaming now display the balloon message on the renaming item.
* BUG: DirView: Forbid void directory names.
* BUG: FileView: Canceling an item rename now works as expected in icon mode, and correctly refreshes the view.
* BUG: FileView: Forbid void file names.
2018-07-17 23:11:43 +02:00
gambas
6e935d2efd IconView: Canceling the Rename event keeps the editor opened.
[GB.GUI.BASE]
* BUG: IconView: Hitting ENTER while renaming an item does not insert a newline in the item text.
* NEW: IconView: Canceling the Rename event keeps the editor opened.
2018-07-17 23:09:11 +02:00
gambas
8c34e888b5 TreeView: Canceling the Rename event keeps the editor opened.
[GB.GUI.BASE]
* NEW: TreeView: Canceling the Rename event keeps the editor opened.
2018-07-17 22:29:04 +02:00
gambas
9abaadc360 Some fixes in FileView and FileProperties.
[GB.FORM]
* BUG: FileView: Setting the Current property does nothing if the new value is the same as the old one.
* BUG: FileProperties: Correctly abort the directory size background task if the Path property is set.
* BUG: FileProperties: Don't fill the error tab if the directory size background task is aborted.
2018-07-15 23:10:41 +02:00
Tobias Boege
789ce931f7 IconView: always raise Click event when clicked
[GB.GUI.BASE]
* BUG: IconView: always raise Click event when clicked and not only when selection changes

See Gambas Bug #1358
2018-06-28 19:07:31 +02:00
gambas
6a23fa861a TreeView: Don't mess up multiple selection when automatic sorting is enabled.
[GB.GUI.BASE]
* BUG: TreeView: Don't mess up multiple selection when automatic sorting is enabled.
2018-06-26 18:50:38 +02:00
gambas
0c43cfced0 Add Session.Path property, and fix the write of session values for sqlite sessions.
[GB.WEB]
* BUG: Fix the write of session values for sqlite sessions.
* NEW: Session.Path is a new property that returns the path of the file where the session is stored.
2018-06-22 00:47:48 +02:00
gambas
5e2a99a0a0 Session: Exist() method now works correctly for sessions stored in sqlite databases.
[GB.WEB]
* BUG: Session: Exist() method now works correctly for sessions stored in sqlite databases.
2018-06-19 00:30:29 +02:00
gambas
b8198005db [BENCHMARKS]
* OPT: Little optimization in nbody benchmark.

[GB.JIT]
* BUG: Fix translation of loops.
* BUG: Fix label generation.
2018-06-13 16:55:25 +02:00
gambas
83eed9707d Merge branch 'jit-with-c' 2018-06-13 00:45:19 +02:00
gambas
6b8afd0617 [COMPILER]
* BUG: Fix Left, Mid and Right subroutines metadata.

[GB.JIT]
* BUG: Fix function arguments management.
* BUG: Functions returning objects work correctly now.
* BUG: Fix internal control variables management.
2018-06-13 00:38:18 +02:00
gambas
c671adfd6b Work continues on new JIT system.
[INTERPRETER]
* OPT: String searching (Instr, RInstr and Replace) has been made about 4x faster by searching the first occurence with memchr() and memrchr().

[GB.FORM.TERMINAL]
* BUG: Fix warning messages.

[GB.JIT]
* BUG: Fix byte, short and boolean pushing and popping routines.
* BUG: Fix string values referencing.
* BUG: Fix optional argument management.
* NEW: Optimization of bits management subroutines.

[GB.QT4]
* BUG: Delay hooks initialization, because now socket notifiers must not be used before creating the event loop.

[GB.QT5]
* BUG: Delay hooks initialization, because now socket notifiers must not be used before creating the event loop.
2018-06-11 18:56:39 +02:00
gambas
4e50dec11d Work continues on new JIT system. Translation is now done at runtime.
[INTERPRETER]
* OPT: String routines are now compiled with -O3.
* NEW: Don't display JIT debugging message unless GB_JIT_DEBUG is set to something different from zero.
* NEW: String whose length is greater than 256 now have a growth step of 256 bytes instead of 16.

[GB.JIT]
* NEW: Do many global optimizations as now the class metadata is fully available.
* NEW: Support for optional argument. Still buggy at the moment.
2018-06-09 22:42:35 +02:00
gambas
23be942b6a Work continues on the new JIT system.
[BENCHMARKS]
* NEW: Little meaningless changes.

[INTERPRETER]
* NEW: JIT: Support for FOR EACH loops.
* BUG: JIT: Handle function values that are put on stack before calling them.

[COMPILER]
* NEW: JIT: Optimization of mathematic functions.
* NEW: JIT: Support for FOR EACH loops.
* NEW: JIT: Remove successive POP_x() / PUSH_x().
* NEW: JIT: Optimization of DIV and MOD.
* NEW: JIT: Support of internal control local variables used by SELECT and FOR EACH.
* NEW: JIT: Support for SWAP.

[GB.JIT]
* NEW: Optimization of mathematic functions.
* NEW: Variants management.
* NEW: All conversions are handled now.
* NEW: FOR EACH loops are implemented.
2018-06-05 11:43:39 +02:00
gambas
23081e47c6 Work continues on new JIT system. The "Fractal" example runs!
[INTERPRETER]
* NEW: Implement return value of JIT methods.
* NEW: Support for calling '.' operator from a JIT method.

[COMPILER]
* BUG: JIT: Fix detection of native arrays.
* BUG: JIT: Delete translated file if a class has no fast method anymore.
* BUG: JIT: Prefix JIT method with "jit_" to avoid possible conflicts.
* BUG: JIT: Fix variable initialization.
* NEW: JIT: Complete datatype support.
* NEW: JIT: Support for SWAP.
* NEW: JIT: Support for array operators.
* BUG: JIT: Fix arithmetic operators.
* NEW: JIT: Implement ME and "." operator.
* NEW: JIT: Complete GOSUB / RETURN support.
* NEW: JIT: Support for DIV and MOD operators. Not optimized yet.

[ARCHIVER]
* NEW: Put JIT translation in the archive.

[GB.JIT]
* NEW: Complete datatype support. Variant is not supported yet.
* NEW: Complete GOSUB / RETURN support.
* NEW: Support for ME and '.' operator.
2018-06-02 17:59:47 +02:00
gambas
714b77a10d Work on new JIT system continues.
[CONFIGURATION]
* NEW: Add '.jit' directory to '.gitignore'.

[COMPILER]
* NEW: New '-j' option that disables just in time compilation.
* NEW: JIT: Support for private functions calls.
* NEW: JIT: Support for native arrays accessors.
* BUG: JIT: Fix loop support.
* NEW: JIT: Support for GOSUB.

[GB.JIT]
* NEW: GB_JIT_DEBUG is an environment variable that defines if JIT compilation debugging messages are printed.
* NEW: GB_JIT_CFLAGS is an environment variable that defines the JIT compilation flags. The default is "-O3".
* NEW: Support for native arrays accessors.
2018-06-01 03:50:42 +02:00
gambas
5219fc48d1 Work continues on new JIT system.
[COMPILER]
* BUG: JIT: Fix local variable referencing.
* NEW: JIT: Implement NEW operator and array accessors.

[INTERPRETER]
* NEW: Support for JIT NEW operator and array accessors.

[GB.JIT]
* NEW: Support for object datatypes.
* NEW: Implement NEW operator and array accessors.
2018-05-29 23:25:57 +02:00
gambas
83a2452acb Continue working on new JIT system.
[COMPILER]
* NEW: JIT: Support for FOR...TO...NEXT loops.
* NEW: JIT: Support for Len(), Left$(), Mid$(), and Right$().
* NEW: JIT: Subroutines return values are now hadled correctly.

[GB.JIT]
* NEW: Compile JIT code with -O3.
2018-05-29 03:43:23 +02:00
gambas
a2b64b190a Work on new JIT system continues.
[COMPILER]
* NEW: Internal initialization functions now can be JIT translated.
* NEW: Support of subroutine calling completed. Interpreter subroutines are called if there is no optimization implemented in the JIT translation.

[INTERPRETER]
* NEW: Remove old JIT stuff.

[GB.JIT]
* NEW: Use 'gambas.h' and 'gb.jit.h' to compile translated code.
2018-05-28 03:18:44 +02:00
gambas
540cda4531 C/C++ syntax highlighting: A backslash at the end of the line continues preprocessor definitions.
[GB.EVAL.HIGHLIGHT]
* BUG: C/C++ syntax highlighting: A backslash at the end of the line continues preprocessor definitions.
* BUG: Fix a warning.
2018-05-28 03:16:53 +02:00
gambas
d797a545b6 [COMPILER]
* NEW: Work on JIT continues...
* NEW: Better panic errors.

[INTERPRETER]
* NEW: Remove the old JIT stuff.
* NEW: Calls gb.jit at runtime if needed. If a fast function has no jit implementation, the bytecode version is used.
* NEW: Start defining the JIT interface needed by the JIT functions.
* NEW: The common static character buffer is now twice the size of the maximum symbol length, to avoid possible overflows.

[GB.JIT]
* NEW: Compilation starts to work.
* NEW: Debugging messages.
2018-05-26 16:50:00 +02:00
gambas
3c8c722989 New component for compiling JIT code at runtime.
[GB.JIT]
* NEW: New component for compiling JIT code at runtime.
2018-05-25 21:03:48 +02:00
gambas
502b403728 TextEditor: Shortcuts work again.
[GB.FORM.EDITOR]
* BUG: TextEditor: Shortcuts work again.
2018-05-24 17:41:49 +02:00
Benoît Minisini
df6bf93820 Merge branch 'master' into 'master'
This commit contains bug fix for the Chart component.

See merge request gambas/gambas!18
2018-05-13 21:20:21 +00:00
gambas
85376261ea DateBox: The time popup works correctly again.
[GB.FORM]
* BUG: DateBox: The time popup works correctly again.
2018-05-07 22:20:01 +02:00
Davidmue
f61ff5e8b6 This commit contains bug fix for the Chart component.
[GB.CHART]
* BUG: Fixed a bug in Chart class.
  A more complex calculated id is now used. This let us use more than one chart.
* BUG: Fixed a bug in _CSerie class.
  A call to an unexisting property Labels has been changed.
2018-05-05 11:02:05 +02:00
gambas
7239cbe35e SmtpClient: Fix the sent date header.
[GB.NET.SMTP]
* BUG: SmtpClient: Fix the sent date header.
2018-05-02 17:05:16 +02:00
gambas
20f650aa59 Shortcut configuration dialog: Use the Shortcut class and display action icons correctly.
[GB.FORM.MDI]
* NEW: Shortcut configuration dialog: Use the Shortcut class.
* BUG: Shortcut configuration dialog: Display action icons correctly.
2018-04-28 15:54:33 +02:00
gambas
93fe4c8ae2 Shortcut: Write modifier keys with the first letter capitalized only.
[GB.GUI.BASE]
* BUG: Shortcut: Write modifier keys with the first letter capitalized only.
2018-04-28 15:53:17 +02:00
gambas
2b3cbd9217 TerminalView: Fix "EraseStartOfLine" VT-100 command and remove "Erase screen" optimization.
[GB.FORM.TERMINAL]
* BUG: TerminalView: Remove "Erase screen" optimization.
* BUG: TerminalView: Fix "EraseStartOfLine" VT-100 command.
2018-04-21 20:38:57 +02:00
gambas
9b52761613 DesktopFile: Properties should be correctly writable now.
[GB.DESKTOP]
* BUG: DesktopFile: Properties should be correctly writable now.
2018-04-21 15:31:09 +02:00
gambas
f0ad78cb1f Toolbar: Make the toolbar configuration dialog defaut size smaller.
[GB.FORM.MDI]
* NEW: Toolbar: Make the toolbar configuration dialog defaut size smaller.
2018-04-16 16:36:10 +02:00
gambas
aaeebacc2f DateBox: Clicking on a date automatically closes the date chooser popup.
[GB.FORM]
* NEW: DateChooser: Raise a Click event when a date is clicked in the inner calendar.
* NEW: DateBox: Clicking on a date automatically closes the date chooser popup.
2018-04-16 16:33:51 +02:00
gambas
cc96782eee Correctly quote field names everywhere and always display error balloons on the accurate cell.
[GB.DB.FORM]
* BUG: DataView: Always display the error balloon on the accurate cell.
* BUG: Correctly quote field names everywhere.
2018-04-16 16:31:44 +02:00
gambas
96a5230994 Redraw the 'database', 'security' and 'table' icons.
[GB.FORM.STOCK]
* NEW: Redraw the 'database', 'security' and 'table' icons.
2018-04-14 19:22:46 +02:00
gambas
c3d36e653b Toolbar: Correctly manage the disabled state of the item when dropping it on a toolbar.
[GB.FORM.MDI]
* BUG: Toolbar: Correctly manage the disabled state of the item when dropping it on a toolbar.
* NEW: Toolbar: Size is a new property that returns the toolbar icon size as a stock string size.
* NEW: Toolbar: Redesign the expander, separator and space items icons.
2018-04-14 18:44:09 +02:00
gambas
d4e2dfcce9 Paint.DrawRect() is a new method that draws a rectangle frame.
[GB.GUI.BASE]
* NEW: Paint.DrawRect() is a new method that draws a rectangle frame.
2018-04-14 18:43:25 +02:00
gambas
27af76092e Toolbar: Disabled controls are now correctly managed when the toolbar is in configuration mode.
[GB.FORM.MDI]
* BUG: Toolbar: Disabled controls are now correctly managed when the toolbar is in configuration mode.
2018-04-13 17:09:38 +02:00
gambas
de12caa1e7 Fix conversion between dates and their local string representation.
[INTERPRETER]
* BUG: Fix conversion between dates and their local string representation.
* OPT: Little optimization in conversion functions calls.

[GB.UTIL]
* BUG: Fix Date.ToUnixTime() and Date.FromUnixTime() according to the interpreter fix.
2018-04-09 18:58:11 +02:00
gambas
72384c0806 Fix Date.FromUnixTime() and Date.ToUnixTime().
[GB.UTIL]
* BUG: Fix Date.FromUnixTime() and Date.ToUnixTime().
2018-04-07 18:14:22 +02:00
gambas
3ffa6b48b7 Update control icons and remove unused variables.
[GB.DB.FORM]
* NEW: Update control icons.
* BUG: Remove unused variables.
2018-04-05 15:50:07 +02:00
gambas
9e6e254d31 Update "database" icons.
[GB.FORM.STOCK]
* NEW: Update "database" icons.
2018-04-05 15:49:32 +02:00
gambas
10013d286b [GB.DB.FORM]
* NEW: Add a project icon.

[GB.FORM.EDITOR]
* NEW: Add a project icon.

[GB.FORM.MDI]
* NEW: Add a project icon.
2018-04-05 14:01:37 +02:00
gambas
ceed651ab5 New stock icon "database".
[GB.FORM]
* NEW: New stock icon "database".

[GB.FORM.STOCK]
* NEW: New stock icon "database".
2018-04-05 13:57:44 +02:00
gambas
6136b8e840 TerminalView: Process output is sent to the terminal each 50 ms now, instead of 250 ms before.
[GB.FORM.TERMINAL]
* NEW: TerminalView: Process output is sent to the terminal each 50 ms now, instead of 250 ms before.
2018-04-05 00:45:16 +02:00
gambas
19609d3eb4 TextEditor: Fix a potential crash when some editor views are invalid.
[GB.FORM.EDITOR]
* BUG: TextEditor: Fix a potential crash when some editor views are invalid.
2018-04-05 00:39:03 +02:00
gambas
29b8b10c58 GridView: Use a lighter version of the SelectedBackground color instead of a light gray when the control loses the focus.
[GB.GUI.BASE]
* NEW: GridView: Use a lighter version of the SelectedBackground color instead of a light gray when the control loses the focus.
2018-04-03 23:45:43 +02:00
gambas
77392c328f DataSource: Better support of SQL queries in the Table property.
[GB.DB.FORM]
* BUG: DataSource: Better support of SQL queries in the Table property. Using a SQL query now make the DataSource automatically read-only.
2018-04-03 23:44:32 +02:00
gambas
b7ce316088 DataView: Long integers are now right aligned like other numbers.
[GB.DB.FORM]
* BUG: DataView: Long integers are now right aligned like other numbers.
2018-03-30 16:57:54 +02:00
gambas
b81e653925 TerminalView: Add a default popup-menu that allows to copy, paste, and clear the terminal.
[GB.FORM.TERMINAL]
* NEW: TerminalView: Add a default popup-menu that allows to copy, paste, and clear the terminal.
2018-03-30 00:38:13 +02:00
gambas
df8044501a Add a 128 pixel monochrome version of the 'gambas' icon.
[GB.FORM.STOCK]
* NEW: Add a 128 pixel monochrome version of the 'gambas' icon.
2018-03-21 20:12:43 +01:00
gambas
c772e744a1 Support for stock icons of any size, with automatic stretching.
[GB.FORM]
* NEW: Support for stock icons of any size, with automatic stretching.

[GB.FORM.STOCK]
* NEW: Add a 128 pixel version of the Gambas logo to the 'gambas' stock theme.
2018-03-20 18:19:44 +01:00
gambas
3ec7e51b77 TerminalView: Add AutoResize, ScreenWidth, CharWidth and LineHeight properties.
[GB.FORM.TERMINAL]
* NEW: Redraw the control icon.
* NEW: TerminalView: AutoResize is a new property that defines if the screen width automatically fits the view.
* NEW: TerminalView: ScreenWidth is a new property that allows to define the screen width in the case AutoResize is FALSE.
* NEW: TerminalView: CharWidth is a new property that returns the screen character width.
* NEW: TerminalView: LineHeight is a new property that returns the screen lien height.
* BUG: TerminalView: The scrollbar should now be correctly hidden in all cases.
2018-03-20 18:14:47 +01:00
gambas
b9389e5d61 Update French translation.
[GB.FORM.MDI]
* NEW: Update French translation.
2018-03-17 23:36:54 +01:00
gambas
1a1db93658 Update a test form.
[GB.FORM]
* NEW: Update a test form.
2018-03-17 03:29:35 +01:00
gambas
870ad90a71 Use 'vector' stock icon for '*.svg' and '*.svgz' files in the Desktop.GetFileIcon() method.
[GB.DESKTOP]
* NEW: Use 'vector' stock icon for '*.svg' and '*.svgz' files in the Desktop.GetFileIcon() method.
2018-03-17 02:37:01 +01:00
gambas
b2cedc658c Redraw the control icons.
[GB.DB.FORM]
* NEW: Redraw the control icons.
2018-03-17 02:36:18 +01:00
gambas
a57f909fdb Use the 'vector' icon for svg mime type.
[GB.FORM.STOCK]
* NEW: Redraw the 'vector' icon.
* NEW: Use the 'vector' icon for svg mime type.
2018-03-17 02:35:23 +01:00