Commit graph

3479 commits

Author SHA1 Message Date
gambas
3033ece871 FileProperties: Center the 'Close' button when it is used as a dialog.
[GB.FORM]
* NEW: FileProperties: Center the 'Close' button when it is used as a dialog.
2022-03-12 00:07:11 +01:00
gambas
3fb3a50784 WebListBox: Arrow keys change the current selected element in single selection mode.
[GB.WEB.GUI]
* BUG: Better management of keypress events.
* NEW: WebListBox: Arrow keys change the current selected element in single selection mode.
* BUG: WebListBox: Don't raise the Select event twice when setting the Index property.
2022-03-04 15:03:37 +01:00
gambas
d045dddfb0 WebDateChooser: Add a line to the calendar, otherwise some months can be truncated.
[GB.WEB.GUI]
* BUG: WebDateChooser: Add a line to the calendar, otherwise some months can be truncated.
2022-03-03 23:26:08 +01:00
gambas
744f6907af Move a source code file.
[GB.WEB.GUI]
* NEW: Move a source code file.
2022-03-03 12:28:44 +01:00
gambas
5559106393 Message: Add a popup menu to copy the message contents to the clipboard.
[GB.GUI.BASE]
* NEW: Message: Add a popup menu to copy the message contents to the clipboard.
2022-03-03 12:27:40 +01:00
gambas
3ed4d3e1ba Rename the 'no-reverse' file as 'reverse', as it contains the list of icons that can be reversed.
[GB.FORM.STOCK]
* NEW: Rename the 'no-reverse' file as 'reverse', as it contains the list of icons that can be reversed.
2022-03-02 02:36:11 +01:00
gambas
bc18e6224f Add 'shopping' and 'today' stock icons.
[GB.FORM]
* NEW: Add 'shopping' and 'today' stock icons.
2022-03-01 15:47:19 +01:00
gambas
0910d786a3 Automatic flipping of some icons when system language is right-to-left written.
[GB.FORM.STOCK]
* NEW: Automatic flipping of some icons when system language is right-to-left written.
2022-03-01 15:46:47 +01:00
gambas
cdc45fb056 Update some stock icons.
[GB.FORM.STOCK]
* NEW: Update some stock icons.
2022-03-01 13:42:46 +01:00
gambas
620593105c ProgressBar: Right-to-left direction support.
[GB.GUI.BASE]
* NEW: ProgressBar: Right-to-left direction support.
* NEW: ProgressBar: Draw an hatch in pulsing mode.
2022-02-28 03:13:09 +01:00
gambas
b78a29486d FontChooser: Add a button to open the font selector in small mode.
[GB.FORM]
* NEW: FontChooser: Add a button to open the font selector in small mode.
2022-02-27 23:45:39 +01:00
gambas
e34a06a5b8 Global focus management. WebScrollView.EnsureVisible() should work as expected now.
[GB.WEB.GUI]
* NEW: If a modal window is opened, controls outside of the modal window cannot be focused anymore.
* NEW: The current focus is now kept when the page is refreshed.
* NEW: Application.ActiveControl is a new property that returns the current control having the focus.
* NEW: WebListBox now keeps its scroll status.
* NEW: WebListBox has now ScrollX and ScrollY properties.
* NEW: WebScrollView: EnsureVisible method should work as expected now.
2022-02-27 01:35:53 +01:00
gambas
eebaa18852 Update some stock icons.
[GB.FORM.STOCK]
* NEW: Update some stock icons.
2022-02-25 20:37:55 +01:00
gambas
cdb4a431a3 ColorChooser: Use the third argument of Image.Stretch() correctly.
[GB.FORM]
* BUG: ColorChooser: Use the third argument of Image.Stretch() correctly.
2022-02-25 20:36:08 +01:00
gambas
558f3efae5 ColorChooser: The colormap now visually adapts to the current control settings.
[GB.FORM]
* NEW: ColorChooser: The colormap now visually adapts to the current control settings.
2022-02-25 16:57:50 +01:00
gambas
afbf32aa8e SliderBox: Fix automatic arrangement.
[GB.FORM]
* BUG: SliderBox: Fix automatic arrangement.
2022-02-24 23:05:32 +01:00
gambas
6acdd757a1 SpinBox: Fix automatic arrangement.
[GB.GUI.BASE]
* BUG: SpinBox: Fix automatic arrangement.
2022-02-24 23:05:08 +01:00
gambas
3b3ed78ede SliderBox: Adapt inner SpinBox width more intelligently.
[GB.FORM]
* NEW: SliderBox: Adapt inner SpinBox width more intelligently.
2022-02-24 17:33:59 +01:00
gambas
7f4b2c3119 SpinBox: Automatically replace little arrows by bigger horizontal buttons when the control is wide enough.
[GB.GUI.BASE]
* NEW: SpinBox: Automatically replace little arrows by bigger horizontal buttons when the control is wide enough.
2022-02-24 17:33:24 +01:00
gambas
4181629ca3 ButtonBox: The horizontal inner padding between the border and the contents cannot be greater than 3 pixels now.
[GB.FORM]
* BUG: ButtonBox: The horizontal inner padding between the border and the contents cannot be greater than 3 pixels now.
2022-02-23 20:33:50 +01:00
gambas
32d3056473 Forgot to declare the 'city' stock icon.
[GB.FORM]
* BUG: Forgot to declare the 'city' stock icon.
2022-02-23 19:53:24 +01:00
gambas
bfd63b282e Modify some stock icons.
[GB.FORM.STOCK]
* NEW: Modify some stock icons.
2022-02-23 19:53:01 +01:00
gambas
a3226411e9 TreeView, ListView & ColumnView: Fix right-to-left layout.
[GB.GUI.BASE]
* BUG: TreeView, ListView & ColumnView: Fix right-to-left layout.
2022-02-20 23:37:56 +01:00
gambas
89fc98497b MenuButton: Update button state before opening the popup menu. New stock icons.
[GB.FORM]
* NEW: MenuButton: Better drawing of disabled MenuButton picture.
* NEW: New stock icons.
2022-02-19 21:30:45 +01:00
gambas
adc13eb2ea Add new stock icons. Modify some ones.
[GB.FORM.STOCK]
* NEW: Add new stock icons. Modify some ones.
2022-02-19 21:30:04 +01:00
gambas
3eee801ab6 TextEditor: Append() is a new method that appends some text to the end of the editor without moving the cursor.
[GB.FORM.EDITOR]
* NEW: TextEditor: Append() is a new method that appends some text to the
  end of the editor without moving the cursor.
2022-02-18 10:00:48 +01:00
gambas
f6a43be792 Add new stock icons. Modify some ones.
[GB.FORM.STOCK]
* NEW: Add new stock icons. Modify some ones.
2022-02-18 00:22:13 +01:00
gambas
d0d72556db MenuButton: Update button state before opening the popup menu. New stock icons.
[GB.FORM]
* BUG: MenuButton: Update button state before opening the popup menu.
* NEW: New stock icons.
2022-02-18 00:18:35 +01:00
gambas
19fac29ab2 ScrollArea: Fix scrollbar relayout.
[GB.GUI.BASE]
* BUG: ScrollArea: Fix scrollbar relayout.
2022-02-18 00:16:03 +01:00
gambas
469ed29280 CsvFile: KeepNames is a new property that keep the column names unchanged.
[GB.UTIL]
* NEW: CsvFile: Columns is a synonymous of Fields property.
* NEW: CsvFile: Add properties for CsvFile configuration.
* NEW: CsvFile: KeepNames is a new property that keep the column names unchanged.
* NEW: CsvFile: Add help comments.
2022-02-13 22:10:53 +01:00
gambas
a760016d2a Pressing a default or cancel button now correctly sets the focus on it to ensure that editable controls have sent their contents to the server.
[GB.WEB.GUI]
* BUG: Pressing a default or cancel button now correctly sets the focus on
  it to ensure that editable controls have sent their contents to the server.
2022-02-09 21:11:09 +01:00
gambas
d8942988e5 Toolbar: No need to unquote '&' button shortcuts anymore in action text.
[GB.FORM.MDI]
* BUG: Toolbar: No need to unquote '&' button shortcuts anymore in action text.
2022-02-07 19:40:19 +01:00
gambas
ddabd8cdfd Action.Text now correctly quotes button shortcuts when needed.
[GB.GUI.BASE]
* BUG: Action.Text now correctly quotes button shortcuts when needed.
2022-02-07 19:39:27 +01:00
gambas
9ff786388a ListEditor: Wrap is a new property that tells if the text of the items is wrapped.
[GB.FORM]
* NEW: ListEditor: Wrap is a new property that tells if the text of the items is wrapped.
2022-02-05 22:42:06 +01:00
gambas
ff49c84d7b ListBox: Wrap is a new property that tells if the text of items is wrapped.
[GB.GUI.BASE]
* NEW: ListBox: Wrap is a new property that tells if the text of items is wrapped.
2022-02-05 22:41:35 +01:00
gambas
9e7749a9a0 IconPanel, TabPanel, ToolPanel, Wizard: Add a FindPanel() method that returns a tab index from its title.
[GB.FORM]
* NEW: SwitchButton: Animated property is now deprecated.
* NEW: IconPanel, TabPanel, ToolPanel, Wizard: Add a FindPanel() method
  that returns a tab index from its title.
2022-02-05 18:45:19 +01:00
gambas
8c4b165e33 Reading settings file is faster now.
[GB.SETTINGS]
* OPT: Reading settings file is faster now.
2022-02-05 02:15:53 +01:00
gambas
9c3d78251f Add new stock icons.
[GB.FORM]
* NEW: Add new stock icons.
2022-02-05 00:23:16 +01:00
gambas
1770809ae8 Add new stock icons. Modify some ones.
[GB.FORM.STOCK]
* NEW: Add new stock icons. Modify some ones.
2022-02-05 00:22:57 +01:00
gambas
6d4e7f642d GridView & TreeView: Take the Enabled property into account for rendering.
[GB.GUI.BASE]
* NEW: GridView: Take the Enabled property into account for rendering.
* NEW: TreeView: Take the Enabled property into account for rendering.
2022-02-04 04:39:05 +01:00
gambas
8ff0b83c5d Language is a new class that allows to deal with the translation of the current project.
[GB.UTIL]
* NEW: Language is a new class that allows to deal with the translation of
  the current project.
* NEW: Import all needed translations from the IDE.
2022-02-04 04:33:29 +01:00
gambas
4dcf0867ed Add new stock icons. Modify some ones.
[GB.FORM.STOCK]
* NEW: Add new stock icons. Modify some ones.
2022-02-03 02:34:11 +01:00
gambas
103ae6cf93 Draw MenuButton arrow differently, and enhance ListEditor behaviour.
[GB.FORM]
* NEW: MenuButton: Redraw arrows. Disable them if there is no menu.
* NEW: ListEditor: Enhance its behaviour.
* NEW: Add new stock icons.
2022-02-03 02:33:45 +01:00
gambas
44bf72261c 'Process.Expect' prompts are now automatically disabled after detection by default. Set the new 'Keep' argument to prevent that.
[GB.UTIL]
* OPT: Process: Automatically disable internal observers there is no prompt
  to watch anymore.
* NEW: Process: The Expect() method now takes a third optional argument
  that tells if a detected prompt must be kept, or must be disabled
  automatically. Prompts are automatically disabled by default
2022-02-01 03:07:20 +01:00
gambas
cf5b75870f If a WebControl raises a DOM 'click' event, then it automatically stops the propagation of the DOM 'mousedown' event.
[GB.WEB.GUI]
* NEW: I prefer WebTree and WebTable use a distinct class for their 'Data' event.
* BUG: If a WebControl raises a DOM 'click' event, then it automatically stops the propagation of the DOM 'mousedown' event.
2022-01-29 18:42:43 +01:00
gambas
9b77a5622b Allow to embed a control is a WebTable or a WebTree cell through the 'Data' event.
[GB.WEB.GUI]
* NEW: WebTree and WebTable now use a common WebCellData class for their 'Data' event.
* NEW: WebCellData.Control allows to define a control that will be embedded in the cell.
* NEW: WebTable now raises a 'Click' event if a control that is embedded in a cell raises a 'Click' event. It takes the row and the column as argument.
* NEW: WebTree now raises a similar 'Click' event, but it takes the key and the column as argument.
2022-01-29 18:02:52 +01:00
gambas
117b3eac3f Fix WebButton image. Make WebButton and WebListBox actually focusable. Fix focus drawing.
[GB.WEB.GUI]
* NEW: Use blue inset box shadow for drawing focus.
* NEW: WebButton: Use <button> instead of <div>, to get focus and native keyboard management.
* BUG: WebButton: Stretch the image size to the button height.
* BUG: WebTextArea: Fix style sheet.
* NEW: WebListBox is focusable now.
2022-01-29 04:30:38 +01:00
gambas
3b8c1123a5 Label: Fix drawing horizontal fix for Qt.
[GB.GUI.BASE]
* BUG: Label: Fix drawing horizontal fix for Qt.
2022-01-29 03:04:03 +01:00
Bruce Steers
b6069433fb Update WebTree.class, fix Class name hidden by local declaration: Key
[GB.WEB.GUI]
* BUG: fix Class name hidden by local declaration: Key


thought I'd save you the task.
2022-01-28 23:51:06 +00:00
gambas
68f3fdb939 WebButton image now always fill the button height. Fix WebContainer 'Row' and 'Column' arrangements.
[GB.WEB.GUI]
* BUG: WebButton: Image now always fill the button height.
* BUG: WebContainer: Do not change the 'display' CSS property of children controls when arrangement is 'Row' or 'Column'.
* BUG: If the 'huge' version of a stock icon does not exist, use the 'small' version instead.
2022-01-29 00:29:52 +01:00
gambas
f02eae69f9 WebTree: Add a 'Data' event that allows to define the content of a tree column, like with WebTable.
[GB.WEB.GUI]
* NEW: WebTree: Add a 'Data' event that allows to define the content of a tree column, like with WebTable.
  Image is not supported yet.
2022-01-28 00:50:22 +01:00
gambas
9465bf174b CsvFile: Ignore the useless BOM character put at the beginning of UTF-8 files generated by many stupid Windows softwares.
[GB.UTIL]
* BUG: CsvFile: Ignore the useless BOM character put at the beginning of UTF-8 files generated by many stupid Windows softwares.
2022-01-25 14:35:58 +01:00
gambas
6bec4cb612 Update folder and some other icons.
[GB.FORM.STOCK]
* NEW: Update folder and some other icons.
2022-01-24 20:23:47 +01:00
gambas
bd1c80cd21 Use the new 'Control.RightToLeft' property instead of the global 'System.RightToLeft' one.
[GB.FORM.MDI]
* NEW: Use the new 'Control.RightToLeft' property instead of the global 'System.RightToLeft' one.
2022-01-22 16:36:28 +01:00
gambas
8353d9e01d Use the new 'Control.RightToLeft' property instead of the global 'System.RightToLeft' one.
[GB.FORM.EDITOR]
* NEW: Use the new 'Control.RightToLeft' property instead of the global 'System.RightToLeft' one.
2022-01-22 16:34:37 +01:00
gambas
2bb65a267e Use the new 'Control.RightToLeft' property instead of the global 'System.RightToLeft' one.
[GB.FORM.TERMINAL]
* NEW: Use the new 'Control.RightToLeft' property instead of the global 'System.RightToLeft' one.
2022-01-22 16:34:15 +01:00
gambas
1a3fc6c556 Add 'text-list' and 'text-list-order' icons. Redraw some icons.
[GB.FORM.STOCK]
* NEW: Add 'text-list' and 'text-list-order' icons.
* NEW: Redraw some icons.
2022-01-22 16:33:21 +01:00
gambas
584acf871e Use the new 'Control.RightToLeft' property instead of the global 'System.RightToLeft' one.
[GB.FORM]
* NEW: Use the new 'Control.RightToLeft' property instead of the global 'System.RightToLeft' one.
* NEW: Add 'text-list' and 'text-list-order' stock icons.
2022-01-22 16:32:02 +01:00
gambas
abba6f607f Use the new 'Control.RightToLeft' property instead of the global 'System.RightToLeft' one.
[GB.GUI.BASE]
* NEW: Use the new 'Control.RightToLeft' property instead of the global 'System.RightToLeft' one.
2022-01-22 16:31:07 +01:00
gambas
0b6a6f4c01 SidePanel: AutoHide is a new property that let the side panel automatically hide on mouse leave and show on mouse enter.
[GB.FORM]
* NEW: ButtonBox: Make the filter timer be ignored at program end.
* NEW: SidePanel: AutoHide is a new property that let the side panel automatically hide on mouse leave and show on mouse enter.
* NEW: FontChooser: Double-click now opens a font tree item only if the 'Activate' event is not handled.
2022-01-14 22:01:13 +01:00
gambas
f7cf3b6764 TextEditor: Make the long clear line cache timer be ignored at program end.
[GB.FORM.EDITOR]
* NEW: TextEditor: Make the long clear line cache timer be ignored at program end.
2022-01-14 21:56:52 +01:00
gambas
d10dccaccd Message: 'DefaultButton' is a new property that makes the first message dialog button the default one. It is TRUE by default to restore the last year behaviour.
[GB.GUI.BASE]
* NEW: Message: 'DefaultButton' is a new property that makes the first message dialog button the default one. It is TRUE by default to restore the last year behaviour.
2022-01-12 17:09:45 +01:00
gambas
879c024737 Remove the dependency on 'gb.image'.
[GB.EVAL.HIGHLIGHT]
* BUG: Remove the dependency on 'gb.image'.
2022-01-11 12:17:56 +01:00
gambas
d2d93aa553 Add 'DirBox.Title' property. Change the syntax of 'FileBox.Filter' property. Update 'FileBox' icon.
[GB.FORM]
* NEW: DirBox: Add a 'Title' property.
* NEW: FileBox: Make 'Filter' property use the same syntax as 'Dialog.Filter' property.
* NEW: FileBox: If the 'Filter' property is set, automatically select the first filter.
* NEW: Update FileBox icon.
2022-01-08 01:08:52 +01:00
Benoît Minisini
d8639d9a74 Merge branch 'FileBox' into 'master'
FileBox, new control for gb.form and add Path property to FileBox and DirBox

See merge request gambas/gambas!255
2022-01-07 22:42:38 +00:00
Bruce Steers
93afd49f7c New FileBox control. Add Path property to DirBox and FileBox.
[GB.FORM]
* NEW: Add FileBox control, supports open/save mode, filters, custom picture and placeholder.
* NEW: Add Path property to DirBox and FileBox as a synonym for Value and show it in the IDE.
2022-01-07 22:42:38 +00:00
gambas
4bab036916 Message: As ShowModal() finish mouse events, make message box reentrants.
[GB.GUI.BASE]
* BUG: Message: As ShowModal() finish mouse events, make message box reentrants.
2022-01-07 16:44:36 +01:00
gambas
b84e85b5b8 GridView: Use standard arrows to paint sort indicator. Do not use widget style anymore.
[GB.GUI.BASE]
* NEW: GridView: Use standard arrows to paint sort indicator. Do not use widget style anymore.
* NEW: TreeView: Tree arrows are a bit darker now.
* BUG: Paint.Arrow now takes the line width into account, so that stroking the arrow does not overflow the rectangle bounds.
2022-01-06 13:24:56 +01:00
gambas
0ac5d3d44a Label: Use floating point text size to avoid possible text truncation.
[GB.GUI.BASE]
* NEW: Label: Use floating point text size to avoid possible text truncation.
2022-01-05 20:04:33 +01:00
gambas
c8835ae99c Label: Try to take italic fonts into account in text alignement.
[GB.GUI.BASE]
* NEW: Label: Try to take italic fonts into account in text alignement.
* BUG: Label: Workaround a Qt bug where using Paint.TextExtents() on a bitmap font makes it unable to be drawn correctly.
2022-01-05 01:23:32 +01:00
gambas
c4490cbf14 MenuButton: Fix a possible "Invalid object" error when a MenuButton is destroyed during its Click event.
[GB.FORM]
* BUG: MenuButton: Fix a possible "Invalid object" error when a MenuButton is destroyed during its Click event.

* NEW: More icons for Gambas icon theme.
2022-01-02 17:24:35 +01:00
gambas
2707e0061d TextEditor: Do not clip lines whose width is larger than 32767 pixels.
[GB.FORM.EDITOR]
* BUG: TextEditor: Do not clip lines whose width is larger than 32767 pixels.
2021-12-29 18:33:44 +01:00
gambas
ba438ac9cc ScrollArea: Do not set the Proxy property, if setting the _Container property already did the job.
[GB.GUI.BASE]
* NEW: ScrollArea: Do not set the Proxy property, if setting the _Container property already did the job.
2021-12-21 20:54:44 +01:00
gambas
1238ce91fc TextEditor: Use the new hidden API that estimates the character width of a specific font.
[GB.FORM.EDITOR]
* NEW: TextEditor: Use the new hidden API that estimates the character width of a specific font.
2021-12-17 13:47:07 +01:00
gambas
56a235f257 TextHighlighter: Use the new hidden API that estimates the character width of a specific font.
[GB.EVAL.HIGHLIGHT]
* NEW: TextHighlighter: Use the new hidden API that estimates the character width of a specific font.
2021-12-17 13:46:43 +01:00
gambas
11c7d60ff4 The hidden API that estimate the character width of a specific font now returns by default an estimated value for non-fixed fonts.
[GB.GUI.BASE]
* NEW: The hidden API that estimate the character width of a specific font now returns by default an estimated value for non-fixed fonts.
2021-12-17 13:46:05 +01:00
gambas
3d3f7cd4d4 TextHighlighter: Fix Paint() method, and add an optional argument that defines the position of the first character of the highlighted text to paint.
[GB.EVAL.HIGHLIGHT]
* BUG: TextHighlighter: Paint() correctly takes into account the new highlighter theme design.
* NEW: TextHighlighter: Paint() method takes an optional argument that defines the position of the first character of the highlighted text to paint.
2021-12-15 15:54:39 +01:00
gambas
1feb4d4ff1 IconView: Little optimization on a test.
[GB.GUI.BASE]
* OPT: IconView: Little optimization on a test.
2021-12-15 15:51:28 +01:00
Bruce Steers
b171733904 IconView: Add 'Next' and 'Previous' properties to the IconView item class, and allows Add() method to insert the new item at the beginning.
[GB.GUI.BASE]
* NEW: IconView: Add 'Next' and 'Previous' properties to the IconView item class.
* NEW: IconView: The 'Add()' method now inserts the new item at the beginning when the 'After' is explicitly specified as 'NULL'.
2021-12-13 21:41:09 +00:00
Bruce Steers
5187e4fcea IconView.class: do not return before drawing background picture if no items are added.
[GB.GUI.BASE]
* BUG: IconView background image is now drawn if no icons are added.
2021-12-12 16:01:58 +00:00
gambas
20dbef2e68 IconView: The 'After' argument of the 'Add()' method now works as expected.
[GB.GUI.BASE]
* BUG: IconView: The 'After' argument of the 'Add()' method now works as expected.
2021-12-11 12:01:58 +01:00
GianluigiOr
3f0fbc5ca9 Contains new Italian translations
[GAMBAS-WIKI]
* NEW: The translation is now complete.
[GAMBAS-SELFTEST]
* NEW: The translation is now complete.
[DEVELOPMENT ENVIRONMENT]
* NEW: The IDE translation is now complete.
[GBS3]
* NEW: The translation is now complete.
[GB.ARGS]
* NEW: The translation is now complete.
[GB.EVAL.HIGHLIGHT]
* NEW: The translation is now complete.
[GB.FORM.TERMINAL]
* NEW: The complete translation.
[GB.FORM]
* NEW: The translation is now complete.
[GB.GUI.BASE]
* NEW: The translation is now complete.
[GB.WEB.FORM]
* NEW: The translations is now complete.
[GB.WEB.GUI]
* NEW: The translations is now complete.
2021-12-06 17:45:10 +01:00
gambas
800b4d17a6 A workaround to let submenu be displayed on Gnome system tray. The Gnome system tray is still buggy, never reacting to any change in menu properties.
[GB.DBUS.TRAYICON]
* BUG: Detect if we are on a Gnome desktop. In that case the _AboutToShow()
  signal always returns FALSE, otherwise submenus are not displayed. But the
  Gnome system tray seems to still be buggy, never reacting to any change in
  menu properties.
* BUG: Be more robust when a tray icons has no popup menus.
* BUG: Do no crash when freeing remaining tray icons at program clean-up.
2021-11-18 23:09:58 +01:00
gambas
6a495cbc88 TextEditor: Setting the Highlight property now works correctly all the time.
[GB.FORM.EDITOR]
* BUG: TextEditor: Setting the Highlight property now works correctly all the time.
2021-11-14 18:58:12 +01:00
gambas
fc556669d8 Desktop.OpenTerminal() now correctly interprets again 'Desktop.Type'.
[GB.DESKTOP]
* BUG: Desktop.OpenTerminal() now correctly interprets again 'Desktop.Type',
  which does not include the entire contents of $XDG_CURRENT_DESKTOP, but
  only the first one of that colon-separated desktop names list.
2021-11-12 22:03:23 +01:00
gambas
8006f3b39b Desktop: Ensure that desktop types are in upper case.
[GB.GUI.BASE]
* BUG: Desktop: Ensure that desktop types are in upper case.
2021-11-12 22:01:07 +01:00
gambas
c9517c42ea TextEditor: In "gambas" mode, ALT+' and ALT+" now respectively add single quotes and double quotes around the current selection.
[GB.FORM.EDITOR]
* NEW: TextEditor: In "gambas" mode, `ALT+'` and `ALT+"` now respectively add single quotes and double quotes around the current selection.
2021-11-12 21:48:44 +01:00
gambas
b374ba78de TextEditor: Setting the Text property correctly resets the internal highlighting state.
[GB.FORM.EDITOR]
* BUG: TextEditor: Setting the Text property correctly resets the internal highlighting state.
2021-11-12 21:44:25 +01:00
gambas
33140371d1 TerminalView: Support for RGB colors.
[GB.FORM.TERMINAL]
* NEW: TerminalView: Support for RGB colors. Use a bit more memory.
2021-11-09 02:05:07 +01:00
gambas
e2b49075bf TextHighlighter: Fix ToANSI() method.
[GB.EVAL.HIGHLIGHT]
* BUG: TextHighlighter: Fix ToANSI() method.
* BUG: Fix unit tests.
2021-11-09 01:21:18 +01:00
gambas
847d55d232 TextEditor: Use the correct style for highlighting the line where the debugger is stopped.
[GB.FORM.EDITOR]
* BUG: TextEditor: Use the correct style for highlighting the line where the debugger is stopped.
2021-11-07 02:39:16 +01:00
gambas
ac94d4b169 Redraw 'ungroup' icon. Add some new mimetypes for the Gambas icon theme.
[GB.FORM.STOCK]
* NEW: Redraw 'ungroup' icon.
* NEW: Add some new mimetypes for the Gambas icon theme.
2021-11-06 15:19:59 +01:00
gambas
f666dfb0ef TextEditor: Ignore overwrite in read-only mode. Blink the matching brace with the cursor.
[GB.FORM.EDITOR]
* BUG: TextEditor: Ignore overwrite in read-only mode.
* NEW: TextEditor: Blink the matching brace with the cursor.
2021-11-06 15:14:05 +01:00
gambas
e05fe7c63e Better conversion of old theme format. Enhance 'Diff' highlighter.
[GB.EVAL.HIGHLIGHT]
* NEW: TextHighlighterTheme: Load() now convert old theme to new theme by initializing unset styles with old styles.
* NEW: Enhance 'Diff' highlighter.
2021-11-06 15:13:14 +01:00
gambas
8e914b74c7 TextEditor: Fix how bold text is drawn on dark themes.
[GB.FORM.EDITOR]
* BUG: TextEditor: Fix how bold text is drawn on dark themes.
2021-11-06 12:03:34 +01:00
gambas
879d0796fc TextHighlighterTheme: Fix ToString() method.
[GB.EVAL.HIGHLIGHT]
* BUG: TextHighlighterTheme: Fix ToString() method.
* NEW: TextHighlighterTheme: Initialize directly from the IDE 'gambas' theme file.
2021-11-06 12:03:05 +01:00
gambas
44f77955f3 Stopping a triggered timer does not leak memory anymore.
[INTERPRETER]
* BUG: Stopping a triggered timer does not leak memory anymore.
2021-11-05 22:58:57 +01:00
gambas
c307592858 TextHighlighterTheme: Fix Save() method.
[GB.EVAL.HIGHLIGHT]
* BUG: TextHighlighterTheme: Fix Save() method.
2021-11-05 21:20:28 +01:00
gambas
f202bbcff6 TreeView: Using a Move*() method now ensures that the view is actually sorted.
[GB.GUI.BASE]
* BUG: TreeView: Using a Move*() method now ensures that the view is actually sorted.
2021-11-05 18:43:13 +01:00
gambas
72ac01e177 Make TextEditor compatible with the new 'gb.eval.highlight' design.
[GB.FORM.EDITOR]
* NEW: TextEditor: Theme is a new property that allows to define the TextHighlighterTheme associated with the editor.
* NEW: TextEditor: The Styles property is now deprecated. It returns now the array of TextHighlighterStyle associated with editor theme.
* NEW: TextEditor: The editor lines have now a little padding on the top and on the bottom, whose size is proportional to the font height.
* BUG: TextEditor: The line wrap markers now are correctly colorized when selected.
* NEW: TextEditor: Colorized text can be striked out.
2021-11-05 16:52:44 +01:00
gambas
7b681d214e New text highlighting design, with highlighting themes based on pre-defined style string names.
[GB.EVAL.HIGHLIGHT]
* NEW: Highlight: Styles is a new property that returns the string key available for all TextHighlighterStyle objects. The integer id of a style is its position in that array.
* NEW: Highlight: GetStyleName() is a new method that returns the translated name of a specific style.
* NEW: TextHighlighter: List is a new static property that returns a list of all implemented highlighter names.
* NEW: TextHighlighter: Name is a new property that returns the name of an highlighter.
* NEW: TextHighlighter: FullName is a new property that returns the human name of an highlighter.
* NEW: TextHighlighter: Styles is a new property that returns the styles actually used by an highlighter.
* NEW: TextHighlighter: ToAnsi(), ToHTML(), ToRichText() and Paint() method now take a TextHighlighterTheme or an array of TextHighlighterStyle as last argument.
* NEW: TextHighlighterStyle: Add Key, Name, Color, Bold, Underline, Dotted, Strikeout properties.
* NEW: TextHighlighterStyle: The Background property tells if the style is a background style according to its key.
* NEW: TextHighlighterStyle: The InvertedColor property returns the style color inverted for dark themes.
* NEW: TextHighlighterStyle: The ToString() method serializes the style to a string.
* NEW: TextHighlighterStyle: The FromString() method creates a style from a string returned by ToString().
* NEW: TextHighlighterTheme: A new class that represents a highlighting theme
* NEW: All highlighter classes were ported to the new design.
2021-11-05 16:46:08 +01:00
gambas
394ea76e2c Merge branch 'master' of gitlab.com:gambas/gambas 2021-11-01 23:11:19 +01:00
gambas
90e7cb98f4 Redraw the book icon in 'blue'.
[GB.FORM.STOCK]
* NEW: Redraw the book icon in 'blue'.
2021-11-01 23:10:55 +01:00
gambix
7edadb94a2 Fixed Fixed a bug in the Near function of _ShapeItem and MapBound.InBounds
[GB.MAP]
* BUG: Fixed a bug in the Near function of _ShapeItem
* BUG: Now MapBound.InBounds is working correctly.
2021-11-01 14:12:00 +01:00
gambas
3cf4f3a21e Merge branch 'master' of gitlab.com:gambas/gambas 2021-10-27 18:38:14 +02:00
gambas
bad974f62d Redraw 'text' icon. Add some mimetypes associations for Gambas icon theme.
[GB.FORM.STOCK]
* NEW: Redraw 'text' icon.
* NEW: Add some mimetypes associations for Gambas icon theme.
2021-10-27 18:36:17 +02:00
gambix
e5cc7a9e0d Remove a forgotten debug line
[GB.MAP]
* BUG: Remove a forgotten debug line
2021-10-27 17:08:24 +02:00
gambix
6e86ad7218 Add a new function to the shape layer that return a _shapeitems array contained in a mapbound.
[GB.MAP]
* BUG: The MapBound.Contain function really return if a bound can be contained.
* NEW: Add a new function to the shape layer that return an array of _ShapeItems contained in a mapbound.
2021-10-27 16:42:57 +02:00
gambas
f863ef437e Redraw mimetypes icons. Add 128 pixels monochrom versions of mimetypes icons.
[GB.FORM.STOCK]
* NEW: Redraw mimetypes icons.
* NEW: Add 128 pixels monochrom versions of mimetypes icons.
2021-10-25 23:10:58 +02:00
gambix
235649b686 Correct Shape Icon centering
[GB.MAP]
* Correct Shape Icon centering
2021-10-24 19:59:15 +02:00
gambas
07885061f2 Stock: Silently ignore standard icon theme directories without access authorization.
[GB.FORM]
* BUG: Stock: Silently ignore standard icon theme directories without access authorization.

* NEW: More icons for Gambas icon theme.
2021-10-24 01:10:18 +02:00
gambas
4a46283b2e Add 'pointer' and 'theme' icons. Redraw some icons. 360 different icons is a nice count.
[GB.FORM.STOCK]
* BUG: Set "FollowsColorScheme" flag back into Gambas icon theme generation description file.
* NEW: Add 'pointer' and 'theme' icons. Redraw some icons. 360 different icons is a nice count.
2021-10-23 21:48:44 +02:00
gambas
4ce2e30dd9 Add 'pointer' and 'theme' stock icons. More icons for Gambas icon theme.
[GB.FORM]
* NEW: Add 'pointer' and 'theme' stock icons.
* NEW: More icons for Gambas icon theme.
2021-10-23 21:47:05 +02:00
gambas
f826536666 Add 'speaker' and 'update' icons. Update some icons.
[GB.FORM.STOCK]
* NEW: Add 'speaker' and 'update' icons. Update some icons.
2021-10-23 13:02:14 +02:00
gambas
23f338c1c2 Add 'speaker' and 'update' icons. More icons for Gambas icon theme.
[GB.FORM]
* NEW: Add 'speaker' and 'update' icons.
* NEW: More icons for Gambas icon theme.
2021-10-23 13:01:26 +02:00
gambas
1d37b24c9d TerminalView: Rename cursor style constants as 'Block', 'Underline' and 'VerticalLine'.
[GB.FORM.TERMINAL]
* NEW: TerminalView: Rename cursor style constants as 'Block', 'Underline' and 'VerticalLine'.
2021-10-22 23:38:12 +02:00
gambas
46998317cf TerminalView: CursorStyle is a new property that allows to define how the cursor is drawn.
[GB.FORM.TERMINAL]
* NEW: TerminalView: CursorStyle is a new property that allows to define how the cursor is drawn.
* NEW: TerminalView: CursorBlock, CursorUnderline and CursorText are three new constants that represents how the cursor is drawn.
2021-10-22 23:29:07 +02:00
gambas
6322a874c2 Allows GridView automatic scrolling behaviour to be overriden easily.
[GB.GUI.BASE]
* NEW: ScrollArea: The EnsureVisible() method now takes an extra optional argument, that tells which scroll direction is allowed.
* NEW: GridView: GridView.Rows[].EnsureVisible() is a new method that ensures that a specific row is visible by scrolling vertically only.
* NEW: GridView: GridView.Columns[].EnsureVisible() is a new method that ensures that a specific column is visible by scrolling horizontally only.
* NEW: TreeView: Automatic scrolling on item change is now vertical only.
2021-10-22 23:03:10 +02:00
gambas
c70de03c09 Fix propagation of drag and drop events by the highlighting frame.
[GB.GUI.BASE]
* BUG: Fix propagation of drag and drop events by the highlighting frame.
2021-10-22 22:44:29 +02:00
gambas
88579780e2 Fix list generation, by removing a strange insertion of void paragraph.
[GB.MARKDOWN]
* BUG: Fix list generation, by removing a strange insertion of void paragraph.
2021-10-22 04:27:50 +02:00
gambas
1a845b3feb Fix File.FormatSize() so that no more than three significant digits are returned.
[GB.UTIL]
* BUG: Fix File.FormatSize() so that no more than three significant digits are returned.
2021-10-21 14:03:54 +02:00
gambas
4331940e9e IconView: Use an internal cache to speed up item text formatting.
[GB.GUI.BASE]
* OPT: IconView: Use an internal cache to speed up item text formatting.
2021-10-21 14:01:54 +02:00
gambas
d9aa4e194c Format file sizes with no more than three digits. FileView: Use the directory cache instead of Stat() when drawing the items.
[GB.FORM]
* NEW: Format file sizes with no more than three digits.
* BUG: Stock: Don't duplicate 'Gambas' and 'Gambas-Mono' icon themes in Stock.Themes property.
* OPT: FileView: Use the directory cache instead of Stat() when drawing the items.
2021-10-21 14:00:38 +02:00
gambas
d24d7d690f Update control icons.
[GB.DB.FORM]
* NEW: Update control icons.
2021-10-20 16:42:19 +02:00
gambas
a800f3e942 The '<div>' markup that encloses all tables has a class "table" now.
[GB.MARKDOWN]
* NEW: The '<div>' markup that encloses all tables has a class "table" now.
2021-10-20 14:21:29 +02:00
gambas
8f4e709dcf Add 'cpu' stock icon. Add some mimetypes associations for Gambas icon theme.
[GB.FORM]
* NEW: Add 'cpu' stock icon.

[GB.FORM.STOCK]
* NEW: Add 'cpu' stock icon, and fix some icons.
* NEW: Add some mimetypes associations for Gambas icon theme.
2021-10-20 14:19:26 +02:00
gambas
aa23a81ec7 Add 'android' and 'windows' icons. Add other mimetypes associations for Gambas icon theme.
[GB.FORM.STOCK]
* NEW: Add 'android' and 'windows' icons.
* NEW: Add other mimetypes associations for Gambas icon theme.
2021-10-20 02:44:40 +02:00
gambas
815b24b7b4 Add 'android' and 'windows' stock icons.
[GB.FORM]
* NEW: Add 'android' and 'windows' stock icons.
2021-10-20 02:44:13 +02:00
gambas
8fda4bfcce Add 'java' icon. Redraw 'watch' icon. Add other mimetypes associations for Gambas icon theme.
[GB.FORM.STOCK]
* NEW: Add 'java' icon.
* NEW: Redraw 'watch' icon.
* NEW: Add other mimetypes associations for Gambas icon theme.
2021-10-18 23:13:45 +02:00
gambas
09fd54c82c File dialog geometry is now correctly saved when Dialog.Key is not set.
[GB.FORM.DIALOG]
* NEW: Ask password dialog: Add a button to toggle password visibility.
2021-10-18 23:10:55 +02:00
gambas
017f436671 ButtonBox: Add password property. Add 'java' icon.
[GB.FORM]
* NEW: Add 'java' icon.
* NEW: ButtonBox: Add password property.
2021-10-18 23:09:38 +02:00
gambas
4ac3e20d70 Add other icons.
[GB.FORM.STOCK]
* NEW: Add other icons.
2021-10-16 21:01:38 +02:00
gambas
814e923822 Add other icons.
[GB.FORM]
* NEW: Add other icons.
2021-10-16 21:00:36 +02:00
gambas
0d697fbf1e Add some icons, redraw other ones, and fix mimetypes for Gambas icon theme.
[GB.FORM.STOCK]
* NEW: Add 'view-preview' and some special folders icons.
* NEW: Redraw some icons.
* NEW: Add mimetype associations.
2021-10-16 12:56:30 +02:00
gambas
4e04c23332 Add 'view-preview' and some special folders icons.
[GB.FORM]
* NEW: Add 'view-preview' and some special folders icons.
2021-10-16 12:55:09 +02:00
gambas
61aae0c606 Fix Gambas icon theme installation routine.
[GB.FORM.STOCK]
* BUG: Fix Gambas icon theme installation routine.
2021-10-15 23:56:48 +02:00
gambas
f008d4a2a2 TextEditor: Fix possible crashes in undo management. The cursor label background is now opaque.
[GB.FORM.EDITOR]
* BUG: TextEditor: Fix possible crashes in undo management.
* NEW: TextEditor: The cursor label background is now opaque.
2021-10-15 23:11:31 +02:00
gambas
e510b7581e Add stock icons for special folders. Fix stock icon map.
[GB.FORM]
* NEW: Add stock icons for special folders.
* BUG: Fix stock icon map.
2021-10-15 23:06:10 +02:00
gambas
26e16151a2 Add an hidden API to install the stock icons as system icon theme in '~/.local/share/icons'.
[GB.FORM.STOCK]
* NEW: Add an hidden API to install the stock icons as system icon theme in '~/.local/share/icons'.
* NEW: Add icon for special home folders.
* NEW: Redraw the 'watch' icon.
2021-10-15 23:05:16 +02:00
gambas
02faf036f1 TrayIcon: Fix the menu refresh problems inside the system tray.
[GB.DBUS.TRAYICON]
* BUG: TrayIcon: Do not raise the 'LayoutUpdated' DBus signal anymore. Instead, just return TRUE in the 'AboutToShow' event handler.
  That should fix the menu refresh problems inside the system tray.
2021-10-15 19:51:45 +02:00
gambas
6deb70c95f Fix some typo in the stock icons map file.
[GB.FORM]
* BUG: Fix some typo in the stock icons map file.
2021-10-15 19:49:52 +02:00
gambas
9116b1c4a0 CsvFile: Add a 'NoDiacritics' optional argument to automatically remove diacritics from column names.
[GB.UTIL]
* NEW: CsvFile: Add a 'NoDiacritics' optional argument to automatically remove diacritics from column names.
2021-10-15 01:37:04 +02:00
gambas
c897a81d8b ButtonBox: Add the Placeholder property. Add 'added', 'modified' and 'conflict' icons.
[GB.FORM]
* NEW: ButtonBox: Add the Placeholder property.
* NEW: Add 'added', 'modified' and 'conflict' icons.
* NEW: Document the Spinner control.
2021-10-14 02:17:11 +02:00
gambas
8a692b1883 Add 'added', 'modified' and 'conflict' icons.
[GB.FORM.STOCK]
* NEW: Add 'added', 'modified' and 'conflict' icons.
2021-10-14 02:16:02 +02:00
gambas
be3772f05c Picture[] now gets an optional argument that specifies the picture size like Stock.GetSize().
[GB.GUI.BASE]
* NEW: Picture[] now gets an optional argument that specifies the picture size like Stock.GetSize().
2021-10-14 02:15:23 +02:00
gambas
e5d38cb7cb Dialog.FilterIndex is a new property that returns or defines the current filter of the file dialog.
[GB.FORM.DIALOG]
* NEW: Dialog.FilterIndex is a new property that returns or defines the current filter of the file dialog.

[GB.GTK]
* NEW: Dialog.FilterIndex is a new property that returns or defines the current filter of the file dialog.

[GB.GTK3]
* NEW: Dialog.FilterIndex is a new property that returns or defines the current filter of the file dialog.

[GB.QT4]
* NEW: Dialog.FilterIndex is a new property that returns or defines the current filter of the file dialog.

[GB.QT5]
* NEW: Dialog.FilterIndex is a new property that returns or defines the current filter of the file dialog.
2021-10-11 19:31:29 +02:00
gambas
135082f552 Add some new icons and update some old ones.
[GB.FORM.STOCK]
* NEW: Add some new icons.
* NEW: Update some icons.
2021-10-09 00:36:32 +02:00
gambas
82979492c3 Add a few stock icons.
[GB.FORM]
* NEW: Add a few stock icons.
2021-10-09 00:35:48 +02:00
gambas
25f89436db Disabled Label and TextLabel are drawn correctly now.
[GB.GUI.BASE]
* BUG: Disabled Label and TextLabel are drawn correctly now.
2021-10-08 17:25:54 +02:00
gambas
84e8bfd742 Add 'csv' and 'library' icons. Update some icons.
[GB.FORM.STOCK]
* NEW: Update some icons.
* NEW: Add 'csv' and 'library' icons.
2021-10-01 23:07:46 +02:00