summaryrefslogtreecommitdiff
path: root/editor/project_export.cpp
AgeCommit message (Collapse)Author
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: Enforce separation line between function definitionsRémi Verschelde
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.
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
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.
2020-04-05Remove unnecessary Panel in "Features" section in the Export dialogMichael Alexsander
2020-04-02Replace NULL with nullptrlupoDharkael
2020-03-26Popups are now windows also (broken!)Juan Linietsky
2020-03-26Working multiple window support, including editorJuan Linietsky
2020-03-26Effective DisplayServer separation, rename X11 -> LinuxBSDJuan Linietsky
2020-02-28Signals: Port more uses of connect_compatRémi Verschelde
Those were problematic as they call a method of their parent class, but callable_mp does not allow that unless it's public. To solve it, we declare a local class that calls the parent class' method, which now needs to be protected to be accessible in the derived class.
2020-02-28Signals: Port connect calls to use callable_mpRémi Verschelde
Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
2020-02-20Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky
objects and made them default.
2020-02-05Remove duplicate ERR_PRINT macro.Marcel Admiraal
2020-01-08Export: Fix leak or orphaned Controls after #34911Rémi Verschelde
They need to be hidden but still in tree.
2020-01-08Export: Hide Patches tab until actually implementedRémi Verschelde
This seems to have been left dangling during 3.0 development and was never finished. Hiding for now until it can be completed, otherwise we'll have to drop it. See #22394.
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-24Cleans up headers included in editor_node.hHaoyu Qiu
2019-12-16Makes more strings in editor translatableHaoyu Qiu
* File type names in file dialogs * Layout option names * Visual shader editor UI
2019-12-13Make more editor strings translatableHaoyu Qiu
2019-11-14Add a tooltip to explain what marking a preset as "runnable" doesHugo Locurcio
2019-10-16Don't allow to export pck without presetTomasz Chabora
2019-10-05Document the ability to include/exclude non-resource export foldersHugo Locurcio
This closes #3646.
2019-08-30Merge pull request #25353 from azagaya/masterRémi Verschelde
Use also invisible tabs to calculate minimum size of tab container
2019-08-30Make tab containers in editor, project settings, and export dialog, to use ↵azagaya
hidden tabs for min size computation.
2019-08-22Export path is the only path to be saved as a relative pathSonerSound
Also reverts 90b2415343287f67586956c798d4b7a63544158f
2019-06-30Export path may now be written as a relative pathSonerSound
If the target directory does not exist, it will be recursively created. Export paths are now saved as a relative to the projects base directory Renamed relative_to function to final_path_from_relative which takes a relative path and outputs the final path from a string that represents a directory. Added relative_path_from_final which takes in a final path and outputs a relative path if possible. If not possible it outputs the relative path that represents the current directory. If the target directory does not exist when exporting the project, then it is recursively created. Removed final_path_from_relative function Changed DirAccess into DirAccessRef for automatic object destruction
2019-06-26Some code changed with Clang-Tidyqarmin
2019-05-28Merge pull request #28454 from homer666/popup-centered-maxsizeRémi Verschelde
Add `popup_centered_clamped()` method to Popup
2019-05-23Fixed naming issue when duplicating an exportAMS21
2019-05-18Allow project export to be canceledGeorge Marques
2019-04-30Add Popup::popup_centered_clamped methodhomer666
- Also replace redundant duplicate code in editor dialogs with calls to popup_centered_clamped()
2019-04-25Merge pull request #28338 from qarmin/disable_project_export_buttonRémi Verschelde
Disable Project Export button after deleting preset
2019-04-24Fixes to make exporting more responsive.Juan Linietsky
-Process and drop input in step functions. -Hide editor file dialog right after pressing ok -Use actual editor file dialogs for project export.
2019-04-23Disable Project Export button after deleting presetqarmin
2019-03-05Fixes misleading error message when trying to exportRicardo Lüders
This patch fixes the misleading error message when users try to "export all" into an invalid destination path. Closes #26539
2019-02-22Improve error message on project export failureRémi Verschelde
It's still not enough and we need better validation/error checking, but it should help with people assume corrupted templates when it's their config which is invalid.
2019-01-21Merge pull request #25163 from ankitpriyarup/masterRémi Verschelde
Disable autowrap for export dialog errors
2019-01-21Disable autowrap for export dialog errorsAnkit Priyarup
Fixes #25065
2019-01-20Make "Export with Debug" more visible in the Export dialogHugo Locurcio
This swaps out the CheckButton with a CheckBox, which has two benefits: - The checkbox icon appears to the left of the text, which moves it closer from the text. This makes it more easily noticeable, as it also appears below the "File:" text now. - It follows the UI convention of using checkboxes for options that do not bear an immediate effect, unlike CheckButtons which are expected to have an immediate effect when toggled. This closes #25170.
2019-01-18Clean up and fix issues after merging #21701 , closes #21104Juan Linietsky
2019-01-12Use HSplit to resize presets and options panel on Export windowvolzhs
2019-01-04Merge pull request #24582 from Xrayez/script-encryptRémi Verschelde
Bring back script encryption in export preset
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-12-24Bring back script encryption in export presetAndrii Doroshenko (Xrayez)
Retrieved working implementation from 2.1 branch and adapted to existing export preset system. Added Script tab in export preset to export script as raw text, compiled, or encrypted (same as in 2.1). The script encryption key is visually validated. The script export mode and the key is saved per per preset in `export_presets.cfg`, so it makes sense to ignore this file in version control system. Each custom exporting procedure can retrieve an export preset set during project exporting. Refactored project export dialog a bit to allow easier code comprehension.
2018-12-11Fix ExportDialog layout out of boundary when select a template.qichunren
2018-12-06Merge pull request #23673 from marcelofg55/export_path_3Rémi Verschelde
Export Path now has a folder icon to select the path
2018-12-04Move "Dialog Bounds" from the Editor Settings to project's metadataMichael Alexsander Silva Dias
2018-11-12Export Path now has a folder icon to select the pathMarcelo Fernandez
2018-11-12Fix missing bind for _export_path_changedMarcelo Fernandez
2018-11-09Merge pull request #23476 from marcelofg55/export_allRémi Verschelde
Add an Export All button to the Export dialog
2018-11-05Preset saved export path is now shown on the Export windowMarcelo Fernandez