Commit graph

3613 commits

Author SHA1 Message Date
gambas
f14163661e New custom focus management.
[GB.WEB.GUI]
* NEW: New custom focus management.
* BUG: Fix keyboard events management.
2022-04-23 01:32:07 +02:00
gambas
1db092531d ComboBox: Disabled editable combo-box background is now accurate.
[GB.GUI.BASE]
* BUG: ComboBox: Disabled editable combo-box background is now accurate.
2022-04-20 01:01:44 +02:00
gambas
30d605aad0 WebTree: Fix selection management.
[GB.WEB.GUI]
* BUG: WebTree: Fix selection management.
2022-04-18 03:04:31 +02:00
gambas
dcc0abdcc5 MediaView: Ensure that the internal media player is deleted with the control.
[GB.MEDIA.FORM]
* BUG: MediaView: Ensure that the internal media player is deleted with the control.
2022-04-17 23:29:10 +02:00
gambas
7ab55d54cd Splitter: Fix layout according to the different combinations of 'Transparent', 'Separator' and 'Border' properties values.
[GB.FORM]
* BUG: Splitter: Fix layout according to the different combinations of 'Transparent', 'Separator' and 'Border' properties values.
* BUG: Fix icon map so that the generated Gambas icon theme is better.
2022-04-15 15:13:51 +02:00
gambas
1168502a51 ComboBox: Setting the 'Index' property to '-1' whereas it is already '-1' must not raise the 'Click' event.
[GB.GUI.BASE]
* BUG: ComboBox: Setting the 'Index' property to '-1' whereas it is already '-1' must not raise the 'Click' event.
2022-04-15 15:09:36 +02:00
gambas
81c8e435a4 Fix ComboBox behaviour and when controls are animated.
[GB.GUI.BASE]
* BUG: ComboBox: Setting the 'Index' property must raise the 'Click' event even if the index does not change, to mimic the behaviour of the old native ComboBox.
* BUG: The _Gui.MustAnimate() internal method is accurate now, so that animations occur on the activated window only.
2022-04-15 00:30:41 +02:00
gambas
521f681537 Picture: Refresh() does not try to refresh invalid windows anymore.
[GB.GUI.BASE]
* BUG: Picture: Refresh() does not try to refresh invalid windows anymore.
2022-04-13 16:08:49 +02:00
gambas
30005143b7 ColumnView: Items have a new Span boolean property, that tells if the first column spans the control width.
[GB.GUI.BASE]
* BUG: GridView: Save and restore the Paint context before calling the Draw event.
* NEW: ColumnView: Items have a new Span boolean property, that tells if the first column spans the control width.
2022-04-13 12:37:32 +02:00
gambas
572185cb03 Update weather icons associations. Add 'moon-cloud' icon.
[GB.FORM]
* BUG: Update weather icons associations.
* NEW: Add 'moon-cloud' icon.
2022-04-12 23:33:00 +02:00
gambas
a4c570c3c3 Add 'moon-cloud' weather icon, and update 'moon' icon.
[GB.FORM.STOCK]
* NEW: Add 'moon-cloud' weather icon, and update 'moon' icon.
2022-04-12 23:32:01 +02:00
gambas
9d989a4ddf ComboBox: Read-only combo-box first item is now automatically selected when inserting a new item or setting the 'List' property, if no item is currently selected.
[GB.GUI.BASE]
* BUG: ComboBox: Read-only combo-box first item is now automatically selected when inserting a new item or setting the 'List' property, if no item is currently selected.
2022-04-12 18:50:12 +02:00
gambas
9dc0a64f89 ComboBox control is now written in Gambas.
[GB.GUI.BASE]
* NEW: ComboBox control is now written in Gambas.
2022-04-12 13:10:09 +02:00
gambas
29dba7dc8c Remove 'recent' icon. Update 'sun-cloud' associated paths.
[GB.FORM]
* NEW: Remove 'recent' icon. Update 'sun-cloud' associated paths.
2022-04-08 03:20:40 +02:00
gambas
a6ce6f6a36 Redraw 'cloud' icon, and add 128 pixels version of monochrom weather icons. Remove the 'recent' icon.
[GB.FORM.STOCK]
* NEW: Redraw 'cloud' icon, and add 128 pixels version of monochrom weather icons.
* NEW: Remove the 'recent' icon.
2022-04-08 03:19:20 +02:00
gambas
b58a0b9140 CSS highlighting: Add some missing properties and values.
[GB.EVAL.HIGHLIGHT]
* NEW: CSS highlighting: Add some missing properties and values.
2022-04-07 13:23:31 +02:00
gambas
adf39a97b2 WebTable: EnsureVisible() now works on the first row in all cases.
[GB.WEB.GUI]
* BUG: WebTable: EnsureVisible() now works on the first row in all cases.
2022-04-07 01:14:05 +02:00
gambas
0935c48fcc MessageBox: The arrow keys now move the focus, for GTK+.
[GB.GUI.BASE]
* NEW: MessageBox: The arrow keys now move the focus, for GTK+.
2022-04-07 01:08:15 +02:00
gambas
203a1789c7 Add weather stock icons.
[GB.FORM]
* NEW: Add weather stock icons.
2022-04-04 04:46:22 +02:00
gambas
eee2553008 Forgot monochromatic version of some icons. New weather and 'layer' icons.
[GB.FORM.STOCK]
* BUG: Forgot monochromatic version of some icons.
* NEW: New weather icons. New 'layer' icon.
* NEW: Redraw 'raise' and 'lower' icons.
2022-04-04 04:46:04 +02:00
gambas
04cfa9da0e Some new icons, and some changes in existing ones.
[GB.FORM.STOCK]
* NEW: Some new icons, and some changes in existing ones.
2022-04-03 00:43:16 +02:00
gambas
055fe72fb5 DateChooser: Don't draw weeks if the 'ShowWeek' property is false.
[GB.FORM]
* BUG: DateChooser: Don't draw weeks if the 'ShowWeek' property is false.
* NEW: Some new stock icons.
2022-04-03 00:42:40 +02:00
gambas
bf33067bdd Add 'open-link' and 'cherry' icons.
[GB.FORM.STOCK]
* NEW: Add 'open-link' and 'cherry' icons.
2022-03-26 20:26:36 +01:00
gambas
394ac2a5c4 Use the new GUI API to decide if a control must be animated.
[GB.FORM]
* NEW: Use the new GUI API to decide if a control must be animated.
* NEW: Add 'open-extern' and 'cherry' icons.
2022-03-26 20:26:10 +01:00
gambas
9f8f4a9b15 Add a GUI API for checking if a control must be animated.
[GB.GUI.BASE]
* NEW: Add a GUI API for checking if a control must be animated.
2022-03-26 20:25:25 +01:00
gambas
4d299a1eac Language: Support for some languages from India.
[GB.UTIL]
* NEW: Language: Support for some languages from India.
2022-03-26 20:23:52 +01:00
gambas
cb752e9f87 ListEditor: The remove button is correctly enabled when the first item is selected.
[GB.FORM]
* BUG: ListEditor: The remove button is correctly enabled when the first item is selected.
2022-03-26 04:41:38 +01:00
gambas
b86b94c6df TextEditor: Take the mode into account when selecting a word.
[GB.FORM.EDITOR]
* BUG: TextEditor: Take the mode into account when selecting a word.
* BUG: TextEditor: Correctly define the identifier characters of the different modes.
2022-03-24 15:36:24 +01:00
gambas
cc5cba7378 Toolbar: Try to prevent a crash when configuring a toolbar.
[GB.FORM.MDI]
* BUG: Toolbar: Try to prevent a crash when configuring a toolbar.
2022-03-23 00:19:23 +01:00
gambas
0f0bb17a6d WebScrollView: Draw the control with a 'ScrollView' whose 'Border' is initially unset.
[GB.WEB.GUI]
* BUG: WebScrollView: Draw the control with a 'ScrollView' whose 'Border' is initially unset.
2022-03-20 23:10:50 +01:00
gambas
135e08483d ScrollView: Ignore controls with 'Ignore' property set when resizing the contents.
[GB.GUI.BASE]
* BUG: ScrollView: Ignore controls with 'Ignore' property set when resizing the contents.
2022-03-20 23:09:57 +01:00
gambas
1ad9bf5963 WebTable: Fix internal row ids and checkbox ids, so that selection works as expected.
[GB.WEB.GUI]
* BUG: WebTable: Fix internal row ids and checkbox ids, so that selection works as expected.
2022-03-20 21:27:38 +01:00
gambas
8fb93842ad Redraw 'compress' and 'uncompress' icons.
[GB.FORM.STOCK]
* NEW: Redraw 'compress' and 'uncompress' icons.
2022-03-13 23:47:36 +01:00
gambas
5622a4d915 WebTable: Always define row ids, so that 'EnsureVisible()' works when 'ShowCheck' is TRUE.
[GB.WEB.GUI]
* BUG: WebTable: Always define row ids, so that 'EnsureVisible()' works when 'ShowCheck' is TRUE.
2022-03-13 20:54:19 +01:00
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
gambas
433937304f Add 'csv' and 'library' stock icons.
[GB.FORM]
* NEW: Add 'csv' and 'library' stock icons.
2021-10-01 23:06:59 +02:00
gambas
863630b424 Raise an error if we try use an object that is not an array or a collection as setting value.
[GB.SETTINGS]
* BUG: Raise an error if we try use an object that is not an array or a collection as setting value.
2021-10-01 22:27:17 +02:00
gambas
ff7b5a2736 Don't crash with an unclear error message when assigning an object to a key.
[GB.SETTINGS]
* BUG: Don't crash with an unclear error message when assigning an object to a key.
2021-09-30 23:39:37 +02:00
gambas
167cf31239 MenuButton: Try to not take the focus on click, like a ToolButton. Add 'bluetooth' and 'json' stock icons.
[GB.FORM]
* NEW: Add 'bluetooth' and 'json' stock icons.
* NEW: MessageView: Remove text from buttons. Use less vertical space.
* BUG: MenuButton: Try to not take the focus on click, like a ToolButton.
2021-09-28 02:42:54 +02:00
gambas
721552a25c Update file icons. Add 'json' and 'bluetooth' icon.
[GB.FORM.STOCK]
* NEW: Update file icons.
* NEW: Add 'json' and 'bluetooth' icon.
2021-09-28 02:36:40 +02:00
gambas
fa74c6de33 A few fixes.
[GB.EVAL.HIGHLIGHT]
* BUG: TextHighlighter: Fix Paint() method signature.
* OPT: TextHighlighter: Add the FAST keyword to the Add() method.
* BUG: '<<' operator was defined twice in 'Sh' highlighting.
2021-09-18 19:57:27 +02:00
gambas
2906f04121 Desktop.RunAsRoot() now uses 'pkexec' by default. Desktop.RunAs() is a new method that allows to specify the username used for running a program.
[GB.DESKTOP]
* NEW: Desktop.RunAsRoot() now takes an optional argument to wait for the program ends, and now uses 'pkexec' by default.
* NEW: Desktop.RunAs() is a method similar as RunAsRoot() that takes the username used for running the program.
2021-09-14 20:53:02 +02:00
Bruce Steers
d8c8ada403 Merge branch 'master' of https://gitlab.com/gambas/gambas into desktop-runasroot-pkexec 2021-09-14 17:34:37 +01:00
gambas
2a751fcd46 Mark the component as stable.
[GB.FORM.TERMINAL]
* NEW: Mark the component as stable.
2021-09-14 09:51:31 +02:00
Bruce Steers
fabaee070b Merge branch 'master' of https://gitlab.com/gambas/gambas into desktop-runasroot-pkexec 2021-09-09 13:13:55 +01:00
gambas
fe227d5047 Deleting a control now correctly disables its associated shortcut.
[GB.WEB.GUI]
* BUG: Deleting a control now correctly disables its associated shortcut.
2021-09-08 23:57:00 +02:00
gambas
6ec0f69060 WebButton: Implement the 'Default' and 'Cancel' buttons.
[GB.WEB.GUI]
* NEW: Preload framework images and icons.
* NEW: WebButton: Implement the 'Default' and 'Cancel' buttons. They work only in the main form and in modal dialogs.
* NEW: WebTree: Clicking twice toggles the item expanded state.
2021-09-07 01:04:12 +02:00
gambas
f2ed77263b Menu shortcuts are now taken into account even if they are defined in an embedded form.
[GB.WEB.GUI]
* BUG: Menu shortcuts are now taken into account even if they are defined in an embedded form.
*
2021-09-05 21:51:16 +02:00
gambas
425cd63b56 TextEditor: Correctly reset the Alternate flag before starting highlighting text.
[GB.FORM.EDITOR]
* BUG: TextEditor: Correctly reset the Alternate flag before starting highlighting text.
2021-09-05 17:54:20 +02:00
gambas
acc85e3268 WebTable: The 'ShowHeader' property is deprecated but works as expected now.
[GB.WEB.GUI]
* BUG: WebTable: The 'ShowHeader' property is deprecated but works as expected now.
*
2021-09-03 01:36:10 +02:00
gambas
b96b698066 Continue WebTree implementation. Replace 'ShowHeader' and 'ShowRowNumber' by a 'Header' property in WebTable.
[GB.WEB.GUI]
* NEW: WebTable: Replace the 'ShowHeader' and 'ShowRowNumber' properties by a 'Header' property.
* NEW: WebTable: Draw the vertical header the same way as the horizontal header, and make it sticky.
* NEW: WebTable: Replace the 'DblClick' event by the 'Activate' event.
* NEW: WebTree: Implement the 'Activate' event.
* BUG: WebTree: The "select all" checkbox now works as expected.
*
2021-09-03 01:33:37 +02:00
Bruce Steers
acc409a7cf Merge branch 'master' of https://gitlab.com/gambas/gambas into desktop-runasroot-pkexec 2021-09-01 15:10:29 +01:00
gambas
4a5e740b58 WebTree: Initial implementation of a tree control. Not finished yet!
[GB.WEB.GUI]
* NEW: WebTree: Initial implementation of a tree control. Not finished yet!
* BUG: WebTable: Fix table layout.
* BUG: Ensure that the pipe for writing the response is in blocking mode.
2021-09-01 01:12:27 +02:00
Bruce Steers
2a68ec6633 Pedantic but Wait was wait... 2021-08-31 16:45:51 +01:00
Bruce Steers
c9f5218300 Tweak Desktop.RunAsRoot(), remove an if condition for speed
[GB.DESKTOP]
* OPT: rearrange RunAsRoot code to remove an If(Condition,True,False) statement
2021-08-31 11:02:38 +01:00
Bruce Steers
2b72588ae1 Merge branch 'master' of https://gitlab.com/gambas/gambas into desktop-runasroot-pkexec 2021-08-31 00:47:36 +01:00
Bruce Steers
891c1b2ee6 Desktop.RunAsRoot(), Add pkexec to list of gui sudoers
[GB.DESKTOP]
* NEW: add pkexec as primary gui sudoer to RunAsRoot
* NEW: RunAsRoot has "Wait" argument (default is False)
* NEW: RunAsRoot has Username argument (default is root)
* OPT: Split Command if pkexec is used
2021-08-31 00:28:26 +01:00
gambas
0e207fbf57 WebTable: ShowRowNumber is a new property that displays the row number in the first column of each row.
[GB.WEB.GUI]
* NEW: WebTable: ShowRowNumber is a new property that displays the row number in the first column of each row.
2021-08-30 19:30:43 +02:00
gambas
c919632832 Support for absolute URLs in WebImage and WebAudio. Add WebAudio.Loop property.
[GB.WEB.GUI]
* NEW: WebImage: The Image property can be an absolute URL now.
* NEW: WebAudio: The Audio property can be an absolute URL now.
* NEW: WebAudio: Add a Loop property to make the sound automatically loop.
2021-08-30 17:48:52 +02:00
gambas
00a58515b0 SliderBox: Always set both the SpinBox and the Slider, so that they keep being synchronized when the SliderBox has been locked.
[GB.FORM]
* BUG: SliderBox: Always set both the SpinBox and the Slider, so that they keep being synchronized when the SliderBox has been locked.
2021-08-30 02:09:30 +02:00
gambas
7d9c268505 DirBox: Correctly raise the Change event each time the contents actually changes.
[GB.FORM]
* BUG: DirBox: Correctly raise the Change event each time the contents actually changes.
2021-08-30 00:57:10 +02:00
Bruce Steers
01e086778d gb.desktop Final edit, remove unneeded variable declaration
[GB.DESKTOP]
* OPT: remove no longer needed variable declaration
2021-08-29 17:43:25 +01:00
Bruce Steers
db19b20fef Update Desktop.class, fix typo
[GB.DESKTOP]
* BUG: fix typo
2021-08-29 16:40:44 +00:00
Bruce Steers
e2e40c69e2 Update Desktop.class, fix pkexec not working on some programs
[GB.DESKTOP]
* BUG: Using Exec With [envs] was not working, used pkexec env method to pass DISPLAY and XAUTHORITY envs instead as it works.
* OPT: Also Split "Command" string for Exec or it fails if command has more than one arg.

Notes.
I found the prior method worked on pluma but not on any gambas applications. (they all reported unable to open display)
Using this "pkexec env"  method fixes that and makes it work on gambas applications and supports multiple arguments.
2021-08-29 16:38:06 +00:00
Bruce Steers
37d0c12352 Update Desktop.RunAsRoot()
[GB.DESKTOP]
* OPT: move test for pkexec to outside of kde/gnome check as it is independant so will be checked regardless if no other graphical sudo is found.
2021-08-29 04:25:47 +01:00
Bruce Steers
bc12c70673 Update Desktop.class, add pkexec as gksu no longer exists
[GB.DESKTOP]
* NEW: add pkexec to Desktop.RunAsRoot() command as gksu and gksudo no longer exist
2021-08-29 03:16:18 +00:00
gambas
469c04769f Desktop.Passwords: Fix KDE support. Use the 'Desktop.Type' property.
[GB.DESKTOP]
* BUG: Desktop.Passwords: Fix KDE support.
* NEW: Use the 'Desktop.Type' property.
2021-08-29 00:12:28 +02:00
gambas
dc0d0ccbe2 Fix desktop detection. The GridView 'Change' event now can be stopped to cancel a cursor move.
[GB.GUI.BASE]
* BUG: Fix KDE desktop detection, and do not crash if no desktop is detected.
* NEW: GridView: The 'Change' event now can be stopped to cancel a cursor move.
2021-08-29 00:11:09 +02:00
gambas
eb5b601622 WebControl: Rename the 'RenderToString' method as 'ToHTML'.
[GB.WEB.GUI]
* NEW: WebControl: Rename the 'RenderToString' method as 'ToHTML'.
2021-08-27 16:08:36 +02:00
gambas
f72649186b WebControl: RenderToString() is a new method that return the generated HTML associated with the control as a string.
[GB.WEB.GUI]
* NEW: WebControl: RenderToString() is a new method that return the generated HTML associated with the control as a string.
2021-08-27 16:07:49 +02:00
gambas
239acafdf5 WebTable: If the Display property is negative, then the full contents is displayed in one shot.
[GB.WEB.GUI]
* NEW: WebTable: If the Display property is negative, then the full contents is displayed in one shot.
2021-08-27 13:30:36 +02:00
gambas
96ebc59161 Args.Abort is a new property that tells if the program aborts or raises an error when an Args method fails. The property is TRUE by default.
[GB.ARGS]
* NEW: Args.Abort is a new property that tells if the program aborts or raises an error when an Args method fails. The property is TRUE by default.
2021-08-27 13:07:41 +02:00
gambas
04d6ec0532 WebForm.Shortcuts is a new property that allows to declare a list of shortcuts the browser won't see.
[GB.WEB.GUI]
* BUG: Keyboard events work again.
* NEW: WebForm.Shortcuts is a new property that allows to declare a list of shortcuts the browser won't see.
2021-08-26 04:14:41 +02:00
gambas
a981bb3792 Menu shortcuts do not propagate to the browser.
[GB.WEB.GUI]
* NEW: Menu shortcuts do not propagate to the browser.
2021-08-26 02:09:43 +02:00
gambas
5b8ef31f96 Finish implementing keyboard event and menu shortcuts management.
[GB.WEB.GUI]
* NEW: Key.Code returns the name of the pressed key, while Key.Text now returns the text associated with the key if there is.
* NEW: Key.Shortcut returns the shortcut string associated with a keyboard event.
* BUG: Fix Key.Control property.
* NEW: Handle WebMenu.Shortcut property.
* BUG: Use 'keydown' DOM event instead of 'keypress', as 'keypress' is deprecated.
* NEW: Setting WebTextArea.Text now automatically moves the cursor and the scrollbar to the end of the text.
2021-08-25 02:50:26 +02:00
gambas
333985260e 'Desktop.Type', 'Desktop.Types', and 'Desktop.Is()' are now implemented in 'gb.gui.base'.
[GB.GUI.BASE]
* NEW: 'Desktop.Type', 'Desktop.Types', and 'Desktop.Is()' are now implemented here.
2021-08-18 21:49:58 +02:00
gambas
835884698e Message: Correctly define the message title for standard message box style.
[GB.GUI.BASE]
* BUG: Message: Correctly define the message title for standard message box style.
2021-08-18 12:11:42 +02:00
gambas
a0579cb76e Splitter: Fix how the panels follow the mouse on resize.
[GB.GUI.BASE]
* BUG: Splitter: Fix how the panels follow the mouse on resize.
2021-08-11 05:52:47 +02:00
gambas
ef6bda2873 Update 'xdg-utils' scripts to version 1.1.3+.
[GB.DESKTOP]
* NEW: Update 'xdg-utils' scripts to version 1.1.3+.
2021-08-08 17:20:02 +02:00
gambas
b2d0a542f9 MaskBox: Fix cursor move when inserting a character in a filled mask pattern.
[GB.FORM]
* NEW: ButtonBox: Raise the Validate event.
* BUG: MaskBox: Fix cursor move when inserting a character in a filled mask pattern.

* BUG: MaskBox: Handle space separators correctly when setting the Text property.
2021-08-02 23:11:16 +02:00
gambas
caac660a58 Workspace: Activating an unknown window is nw silently ignored.
[GB.FORM.MDI]
* BUG: Workspace: The Add() method now can safely move a window from a workspace to another workspace.
* BUG: Workspace: Activating an unknown window is nw silently ignored.
2021-08-02 22:22:42 +02:00
gambas
d0b66b1ca5 Résolution du conflit. 2021-07-31 01:05:12 +02:00
gambas
f06903c160 Fix 'javacript' and 'CSS' highlighting.
[GB.EVAL.HIGHLIGHT]
* BUG: Add 'set' keyword to javascript highlighting.
* NEW: Add some CSS keywords to CSS highlighting.
2021-07-31 01:04:23 +02:00
gambas
eea30eafca Start implementing keyboard event and menu shortcuts management.
[GB.WEB.GUI]
* NEW: Start implementing keyboard event and menu shortcuts management.
* OPT: WebSpinBox: Do not force a refresh when the value has been changed by the browser.
2021-07-31 00:59:37 +02:00
Benoît Minisini
db4b9ee512 Merge branch 'AddConsoleHighlighting' into 'master'
[Texthighlighter] - Add ANSI console highlight support

See merge request gambas/gambas!236
2021-07-30 00:11:15 +00:00
gambas
fbf3479c32 MaskBox: Handle space separators correctly when setting the Text property.
[GB.FORM]
* BUG: MaskBox: Handle space separators correctly when setting the Text property.
2021-07-24 21:38:41 +02:00
gambas
a5032e801f Fix desktop standard paths computation when there is no explicit configuration file.
[GB.DESKTOP]
* BUG: Fix desktop standard paths computation when there is no explicit configuration file.
2021-07-24 19:15:44 +02:00
gambas
09e22e254f TrayIcon: Change the icon name each time the Picture property changes, to force the system tray to reload it.
[GB.DBUS.TRAYICON]
* BUG: TrayIcon: Change the icon name each time the Picture property changes, to force the system tray to reload it.
2021-07-24 18:32:49 +02:00
gambas
61f79d6e3b Don't crash when hitting Backspace at the beginning of the editable text.
[GB.FORM]
* BUG: MaskBox: Don't crash when hitting Backspace at the beginning of the editable text.
2021-07-23 00:24:27 +02:00
gambas
53e39e8b87 MaskBox: Make cursor moves more clever.
[GB.FORM]
* NEW: MaskBox: Make cursor moves more clever.
2021-07-22 04:09:34 +02:00
gambas
a56d819286 Add Request.Scheme property. Take HTTP headers into account to detect 'https'.
[GB.WEB]
* NEW: Request.Scheme is a new property that replaces Application.Protocol.
* NEW: Request.Scheme now returns '"https"' according to the contents of the 'REQUEST_SCHEME' or 'X_FORWARDED_PROTO' headers passed to the CGI script.
2021-07-15 14:29:12 +02:00
Brian G
10431e6b80 Change ToConsole to ToANSI to more correctlty reflect fuctionality
[gb.eval.Highlight]
* NEW: Rename ToConsole to ToANSI to more correctly reflect functionality
* NEW: Update Unit text to reflect new name
2021-07-14 09:36:28 -07:00
gambas
46cbe053e2 ButtonBox: Remove workaround for TAB key.
[GB.FORM]
* BUG: ButtonBox: Remove workaround for TAB key.
2021-07-14 04:39:48 +02:00
gambas
b6d39c70a9 Fix MaskBox.
[GB.FORM]
* BUG: MaskBox: Text that do not have the same size as the mask are not valid anymore.
* BUG: MaskBox: The Text property now must match the mask when set. If the set text is smaller than the mask, it is completed with the default characters.
* BUG: MaskBox: Characters moves should be handled better now.
2021-07-10 04:39:21 +02:00
gambas
42005272a9 ListEditor: Fix crash when checking for duplicates if the Unique property is TRUE.
[GB.FORM]
* BUG: ListEditor: Fix crash when checking for duplicates if the Unique property is TRUE.
2021-07-08 23:12:39 +02:00
gambas
4cd5ac969e WebComboBox: Editable combo-box Click event should now trigger again as expected for the first list element.
[GB.WEB.GUI]
* BUG: WebComboBox: Editable combo-box Click event should now trigger again as expected for the first list element.
2021-07-05 21:50:11 +02:00
gambas
67e13ac22e TextEditor: Highlighted text drawing routine should not enter an infinite loop anymore when the highlighted color information is incoherent.
[GB.FORM.EDITOR]
* BUG: TextEditor: Highlighted text drawing routine should not enter an infinite loop anymore when the highlighted color information is incoherent.
2021-07-04 17:48:02 +02:00
gambas
a4f96ba0a1 MaskBox should work correctly again.
[GB.FORM]
* BUG: MaskBox: It should work correctly again.
* NEW: MaskBox: Prompt is a new property that allows to define the character displayed for void entries among a few choices.
2021-07-03 08:34:28 +02:00
gambas
650dd0a018 MenuButton: Fix GTK+3 warnings on hidden shortcut buttons.
[GB.FORM]
* BUG: MenuButton: Fix GTK+3 warnings on hidden shortcut buttons.
* NEW: DirChooser & FileChooser: Do not use a Watcher to initialize the popup menu.
2021-06-28 19:32:26 +02:00
gambas
a079acdbd4 TableView: Fix editing control position and size.
[GB.FORM]
* BUG: TableView: Fix editing control position and size.
2021-06-25 19:00:02 +02:00
gambas
5b648e3191 GridView: Fix current cell cursor size and width.
[GB.GUI.BASE]
* BUG: GridView: Fix current cell cursor size and width.
2021-06-25 18:59:30 +02:00