Commit graph

10113 commits

Author SHA1 Message Date
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
2a66b8971f Fix custom help page templates.
[DEVELOPMENT ENVIRONMENT]
* BUG: Fix custom help page templates.
2021-11-06 14:59:28 +01:00
gambas
a2f9215f0d Use the new 'TextEditor.Theme' property instead of the now deprecated 'Styles' property. Update highlighting themes.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update highlighting themes.
* NEW: Use the new 'TextEditor.Theme' property instead of the now deprecated 'Styles' property.
2021-11-06 14:46:58 +01:00
gambas
c6b1199326 Merge branch 'master' of gitlab.com:gambas/gambas 2021-11-06 12:04:42 +01:00
gambas
cab8410921 Option dialog: Fix theme configuration.
[DEVELOPMENT ENVIRONMENT]
* BUG: Option dialog: Fix theme configuration.
* NEW: Update 'gambas' highlighting theme.
2021-11-06 12:04:34 +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
Benoît Minisini
02a3153ecf Revert last commit. It does not work. 2021-11-06 10:30:10 +00:00
Benoît Minisini
e4d747a6f0 Try to make 'fedora-latest' compile again. 2021-11-06 10:22:56 +00: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
168b00a5d5 AvlTree: Clearing the tree now correctly frees all nodes.
[GB.DATA]
* BUG: AvlTree: Clearing the tree now correctly frees all nodes.
2021-11-05 20:11:24 +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
84e4bc2c71 Timer.Stop() now cancels a call to Timer.Trigger().
[INTERPRETER]
* NEW: Timer.Stop() now cancels a call to Timer.Trigger().
2021-11-05 18:39:35 +01:00
gambas
16e547fffe Translation dialog: Display the current translation and the current translation file in the dialog title.
[DEVELOPMENT ENVIRONMENT]
* NEW: Translation dialog: Display the current translation and the current translation file in the dialog title.
2021-11-05 17:04:02 +01:00
gambas
abd179d7ae Implement the new highlighting design, and fix the use of new HtmlView in property help.
[DEVELOPMENT ENVIRONMENT]
* BUG: Fix use of new HtmlView in property help.
* BUG: Fix how the list of recently opened files is filled.
* NEW: Use the new highlighting design.
* NEW: Option dialog: The theme tab allows to choose the new highlighting styles by highlighters.
* NEW: Translation dialog: The list of new languages now displays the name of the associated translation file.
2021-11-05 16:58:50 +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
0f80f22530 The Highlight constants now follow the order defined by the new 'gb.eval.highlight' design.
[GB.EVAL]
* NEW: The Highlight constants now follow the order defined by the new 'gb.eval.highlight' design.
2021-11-05 16:46:35 +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
3e06b23ce8 Update 'README' and 'README.md' files.
[CONFIGURATION]
* NEW: Update 'README' and 'README.md' files.
2021-11-02 12:21:39 +01:00
gambas
c0345b99ab Raise an error if point or rectangle constructor take an incorrect number of arguments.
[GB.GEOM]
* BUG: Raise an error if the rectangle constructor does not take zero or four arguments.
* BUG: Raise an error if the point constructor does not take zero or two arguments.
2021-11-02 12:20:07 +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
gambas
adf03f0862 Remove the String.Capitalize() synonymous. That function should instead capitalize each word of a string, not just the first character.
[INTERPRETER]
* BUG: Remove the String.Capitalize() synonymous. That function should instead capitalize each word of a string, not just the first character.
2021-11-01 23:09:38 +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
8d1f7fb4d0 Use HtmlView instead of WebView in automatic completion popup, method signature popup and form editor property help.
[DEVELOPMENT ENVIRONMENT]
* NEW: Use HtmlView instead of WebView in automatic completion popup, method signature popup and form editor property help.
* BUG: Fix <a> inside <u> bug inside custom HtmlView css patch.
2021-11-01 00:07:45 +01:00
gambas
810b2f9aa5 Features and fixes for HtmlView.
[GB.FORM.HTMLVIEW]
* NEW: Support of the 'on_mouse_leave' interface.
* NEW: Automatic management of anchors.
* NEW: HtmlView: History management. Add Back() and Forward() method to move along the history.
* NEW: HtmlView: Add Url property. Setting the Url property fills the history, whereas the Load() method loads the html contents from a file.
* NEW: HtmlView: The Link event is raised to manage links that HtmlView cannot understand. The link is valid and enters the history if the Load() method is called from the Link event handler.
* NEW: True implementations of 'strcasecmp' and 'strncasecmp' in litehtml.
*
2021-10-31 23:41:46 +01:00
gambas
e7357a8e35 Try to compile 'gb.form.htmlview' after 'gb.form'.
[CONFIGURATION]
* BUG: Try to compile 'gb.form.htmlview' after 'gb.form'.
2021-10-31 19:05:26 +01:00
gambas
3ac4484d4f Fix stylesheet of help pages generated for classes inside the project.
[DEVELOPMENT ENVIRONMENT]
* BUG: Fix stylesheet of help pages generated for classes inside the project.
2021-10-31 17:58:44 +01:00
gambas
ed842e2588 Add the template configuration file used for initializing the 'gb.form.htmlview' directory.
[CONFIGURATION]
* NEW: Add the template configuration file used for initializing the 'gb.form.htmlview' directory.
2021-10-31 17:57:54 +01:00
gambas
01a1df3b33 Move 'gb.form.htmlview' source code directory at the top, so it is compiled after the components its project requires.
[CONFIGURATION]
* BUG: Move 'gb.form.htmlview' source code directory at the top, so it is compiled after the components its project requires.
2021-10-31 17:55:55 +01:00
gambas
7b456ffc0b Do not make the project depends on 'gb.form', it break compilation.
[GB.FORM.HTMLVIEW]
* BUG: Do not make the project depends on 'gb.form', it break compilation.
2021-10-31 02:11:15 +02:00
gambas
bfddf7d407 HtmlView: The control can get focus now, and react to arrow keys.
[GB.FORM.HTMLVIEW]
* NEW: HtmlView: The control can get focus now, and react to arrow keys.
* NEW: HtmlView: Fix litehtml instead of patching it for string and conversion functions that must ignore the current locale.
2021-10-30 22:22:47 +02:00
gambas
1ceadb3c28 'String.Capitalize()' is now a synonymous and better name for 'String.UCaseFirst()'.
[INTERPRETER]
* NEW: 'String.Capitalize()' is now a synonymous and better name for 'String.UCaseFirst()'.
2021-10-30 20:39:28 +02:00
gambas
0e808a63d2 Use the new HtmlView control to display automatic completion help and form editor property help.
[DEVELOPMENT ENVIRONMENT]
* NEW: Use the new HtmlView control to display automatic completion help and form editor property help.
  You will notice they become faster.
2021-10-30 20:38:29 +02:00
gambas
d8a203f83a HtmlView: The control is now usable.
[GB.FORM.HTMLVIEW]
* NEW: HtmlView: The control is now usable.
2021-10-30 20:37:44 +02:00
gambas
fa3921b056 Work continues...
[GB.FORM.HTMLVIEW]
* NEW: Work continues...
2021-10-30 02:15:43 +02:00
gambas
9789a7bc93 The mouse cursor type constants are now defined in the Cursor class. Add more mouse cursor constants.
[GB.GTK]
* NEW: The mouse cursor type constants are now defined in the Cursor class.
* NEW: Add more mouse cursor constants.

[GB.GTK3]
* NEW: The mouse cursor type constants are now defined in the Cursor class.
* NEW: Add more mouse cursor constants.

[GB.QT4]
* NEW: The mouse cursor type constants are now defined in the Cursor class.
* NEW: Add more mouse cursor constants.

[GB.QT5]
* NEW: The mouse cursor type constants are now defined in the Cursor class.
* NEW: Add more mouse cursor constants.
2021-10-29 16:32:38 +02:00
gambas
ed430b5656 Try to fix compilation.
[GB.FORM.HTMLVIEW]
* BUG: Try to fix compilation.
2021-10-29 03:33:44 +02:00
gambas
894e73d1c6 Work continues on the new HtmlView control.
[GB.FORM.HTMLVIEW]
* NEW: Work continues on the new HtmlView control.
2021-10-29 02:51:00 +02:00
gambas
c2052e42f3 Add two API for translating and scaling the current painter.
[GB.DRAW]
* NEW: Add two API for translating and scaling the current painter.
2021-10-29 02:49:34 +02:00
gambas
1c2063cbec Debugger: Process ressource watch should not crash anymore when the process is dead.
[DEVELOPMENT ENVIRONMENT]
* BUG: Debugger: Process ressource watch should not crash anymore when the process is dead.
2021-10-29 02:46:05 +02:00
gambas
fe27af0ddb Add an API to set the current paint background color.
[GB.DRAW]
* NEW: Add an API to set the current paint background color.
2021-10-28 03:29:13 +02:00
gambas
57916c60c3 Use '-std=c99' for compilation of 'gumbo'.
[GB.FORM.HTMLVIEW]
* BUG: Use '-std=c99' for compilation of 'gumbo'.
2021-10-28 03:07:33 +02:00
gambas
58f47d68ad Use the C compiler for compiling 'gumbo'.
[GB.FORM.HTMLVIEW]
* BUG: Use the C compiler for compiling 'gumbo'.
2021-10-28 02:26:36 +02:00
gambas
5c8b49b601 Add gcc flag for c++11 standard.
[GB.FORM.HTMLVIEW]
* BUG: Add gcc flag for c++11 standard.
2021-10-28 02:08:31 +02:00
gambas
459a434b52 Update gitlab CI configuration file. 2021-10-28 01:32:24 +02:00
gambas
4b2d0548a8 Forgot to commit the fix about window refresh priority.
[GB.GTK3]
* BUG: Forgot to commit the fix about window refresh priority.
2021-10-28 01:29:53 +02:00
gambas
f5db84f9a2 Integrate 'gumbo' library inside the component.
[GB.FORM.HTMLVIEW]
* NEW: Integrate 'gumbo' library inside the component, so that the component has no depency anymore and compile on all systems.
  Consequently, the component source code moved to the '/main/lib' directory.
2021-10-28 01:27:55 +02:00
gambas
ea1c3a2715 Update gitlab CI configuration file. 2021-10-28 00:54:25 +02:00