summaryrefslogtreecommitdiffstats
path: root/editor/doc_data.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Refactor DocData into core and editor (DocTools) partsThakee Nathees2020-12-021-1431/+0
|
* Documentation generation for GDScriptThakee Nathees2020-11-291-2/+69
| | | | | | | | | | | | | | | | | | - ClassDoc added to GDScript and property reflection data were extracted from parse tree - GDScript comments are collected from tokenizer for documentation and applied to the ClassDoc by the GDScript compiler - private docs were excluded (name with underscore prefix and doesn't have any doc comments) - default values (of non exported vars), arguments are extraced from the parser - Integrated with GDScript 2.0 and new enums were added. - merge conflicts fixed
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-0/+8
| | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* Refactor variant built-in methods yet again.reduz2020-11-111-10/+10
| | | | | | * Using C-style function pointers now, InternalMethod is gone. * This ensures much better performance in typed code. * Renamed builtin_funcs to utility_funcs, to avoid naming confusion
* Create Variant built-in functions.reduz2020-11-101-0/+37
| | | | | | | -Moved Expression to use this, removed its own. -Eventually GDScript/VisualScript/GDNative need to be moved to this. -Given the JSON functions were hacked-in, removed them and created a new JSONParser class -Made sure these functions appear properly in documentation, since they will be removed from GDScript
* doc: Fixups to #43419 which added operators in the docsRémi Verschelde2020-11-101-5/+23
| | | | | | | | | - Escape the method names as e.g. `operator <` is invalid XML. - Add a hack to merge all String % operator definitions for each Variant type as a single one with `Variant` argument type. - Add support for the new qualifiers in makerst.py. - Drop unused `doc_merge.py`, seems to date back to when we had all the documentation in a single `classes.xml`.
* Make sure operators appear in the docs tooreduz2020-11-091-0/+50
| | | | | Add "operator" and "constructor" qualifiers to make it easier to see in the docs.
* Refactored variant constructor logicreduz2020-11-091-1/+2
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-9/+9
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Rewrite ProjectSettings editor advanced optionsStijn Hinlopen2020-08-101-2/+1
| | | | | - New layout: advanced options hidden by default, error labels added. - Disallow adding invalid new settings, or overwriting built-in settings.
* Docs: Ignore OS specific values (constants, project settings, properties).bruvzg2020-07-151-7/+25
|
* DocData: Skip language-specific ClassDoc without methods/constantsRémi Verschelde2020-06-171-4/+13
| | | | Removes the useless `@C#`, `@NativeScript` and `@VisualScript` entries.
* Added a "title" attribute for the link tag in the docs xmlSaviHex2020-06-101-2/+9
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-62/+121
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-93/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Add ability to bind typed arrays to script APIJuan Linietsky2020-04-211-0/+6
| | | | | | | Note: Only replaced 2 instances to test, Node.get_children and TileMap.get_used_cells Note: Will do a mass replace on later PRs of whathever I can find, but probably need a tool to grep through doc. Warning: Mono will break, needs to be fixed (and so do TypeScript and NativeScript, need to ask respective maintainers)
* Merge pull request #38047 from akien-mga/mono-docdata-hackRémi Verschelde2020-04-211-0/+20
|\ | | | | DocData: Keep Mono properties on non-Mono builds
| * DocData: Keep Mono properties on non-Mono buildsRémi Verschelde2020-04-201-0/+20
| | | | | | | | | | | | | | | | | | This doesn't make much sense API-wise, but it's important for the documentation workflow that the Mono and non-Mono builds produce the same output, otherwise we keep having non-Mono builds removing Mono properties and losing their descriptions. This is a terrible hack but it's ad hoc, and should be OK for the time being.
* | Fix handling of PROPERTY_USAGE_SUBGROUP in DocData and editorRémi Verschelde2020-04-201-1/+1
|/ | | | | Subgroups were added in #37678 but not properly handled everywhere where PROPERTY_USAGE_GROUP is.
* DocData: Skip unexposed classesRémi Verschelde2020-04-201-0/+6
| | | | Properly expose classes that we actually want accessible.
* Replace NULL with nullptrlupoDharkael2020-04-021-2/+2
|
* doc: Update classref with node renamesRémi Verschelde2020-03-301-1/+1
| | | | A few extra renames for classes which were missed in last week's PRs.
* Move DocData and Collada out of their subfoldersRémi Verschelde2020-03-241-0/+1217
Now that the unused DocDump was removed, the `editor/doc` subfolder is redundant. Similarly, there's no reason for Collada to have a subfolder for itself when glTF or OBJ don't.