summaryrefslogtreecommitdiffstats
path: root/editor/editor_file_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Fix file dialog crash on forward click when history is empty.bruvzg2023-01-031-1/+1
|
* Use forward-declarations in big editor classestrollodel2022-11-291-1/+4
|
* Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-3/+3
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-13/+13
| | | | change warnings=all to use /W4.
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-6/+6
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Fix file list in FileDialog not updating on first runRindbee2022-09-071-14/+6
|
* Improve naming of theme properties throughout GUI codeYuri Sizov2022-09-061-4/+4
| | | | | | | | | | | | | | Rename ItemList's bg -> panel Rename ItemList's bg_focus -> focus Rename ProgressBar's bg -> background Rename ProgressBar's fg -> fill Rename Tree's bg -> panel Rename Tree's bg_focus -> focus Rename ScrollContainer's bg -> panel Rename FileDialog's *_icon_modulate -> *_icon_color Rename FileDialog's files_disabled -> file_disabled_color Rename CheckButton's on/off -> checked/unchecked Rename check_v_adjust -> check_v_offset
* Fix theme propagation in various parts of the editorYuri Sizov2022-09-021-76/+114
|
* EditorFileDialog: disambiguate recent/favorite itemsRedMser2022-08-301-31/+53
| | | | | Similar to script editor, if two folders have the same name, they will now get a more descriptive name in the item list.
* Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-13/+13
|
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Merge pull request #64885 from Mickeon/rename-tooltip-hintRémi Verschelde2022-08-281-8/+8
|\ | | | | Rename `hint_tooltip` to `tooltip_text` & setter getter
| * Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-8/+8
| | | | | | | | | | | | | | | | `hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
* | Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-1/+0
|/
* Remove Signal connect bindsJuan Linietsky2022-07-291-5/+5
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Merge pull request #62827 from fire-forge/ok-cancelRémi Verschelde2022-07-131-10/+10
|\ | | | | Add `ok_button_text` to AcceptDialog and `cancel_button_text` to ConfirmationDialog
| * Add ok_button_text to AcceptDialog and cancel_button_text to ConfirmationDialogFireForge2022-07-091-10/+10
| |
* | Seperate filter and description in FileDialog.add_filter()FireForge2022-07-091-3/+7
|/
* Fix FileDialog file name autocompletion with filtersThakee Nathees2022-07-041-2/+2
| | | | Fixes #38195.
* Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the ↵bruvzg2022-06-161-1/+1
| | | | TextServer.
* Cleanups after changes in ItemList signalsAleksey Smirnov2022-05-101-1/+1
|
* Changed signals of ItemListVitika92022-05-061-7/+23
|
* Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde2022-05-021-7/+0
| | | | | | | | | | | Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
* Implement Label3D node.bruvzg2022-04-221-3/+3
| | | | | | | | | Add "generate_mipmap" font import option. Add some missing features to the Sprite3D. Move BiDi override code from Control to TextServer. Add functions to access TextServer font cache textures. Add MSDF related flags and shader to the standard material. Change standard material cache to use HashMap instead of Vector.
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-2/+0
|
* Restore hidden folder behavior for project managerEv1lbl0w2022-04-061-1/+1
|
* Fix Project Manager hard crashes due to invalid access to Editor NodesMarios Staikopoulos2022-04-051-3/+5
|
* [Input] Add extra `shortcut_input` input processing step to process Unicode ↵bruvzg2022-04-051-3/+3
| | | | character input with Alt / Ctrl modifiers, after processing of shortcuts.
* Merge pull request #59453 from DanielKriz/masterRémi Verschelde2022-03-281-0/+12
|\
| * Fix persistent favorites after renameDaniel Kříž2022-03-251-0/+12
| | | | | | | | Signed-off-by: Daniel Kříž <Daniel.kriz@protonmail.com>
* | Merge pull request #46638 from Ev1lbl0w/feature-hide_gdignored_dirsRémi Verschelde2022-03-261-1/+8
|\ \
| * | Hide .gdignore'd foldersEv1lbl0w2021-03-031-1/+8
| | |
* | | Add better alert dialogs if directory already existsDaniel Kříž2022-03-251-0/+7
| |/ |/| | | | | Signed-off-by: Daniel Kříž <Daniel.kriz@protonmail.com>
* | Merge pull request #58338 from aaronfranke/boolsRémi Verschelde2022-03-121-4/+0
|\ \ | | | | | | Initialize bools in the headers in `editor/`
| * | Initialize bools in the headers in editorAaron Franke2022-03-121-4/+0
| | |
* | | Merge pull request #54399 from ↵Rémi Verschelde2022-03-121-3/+3
|\ \ \ | |/ / |/| | | | | | | | Calinou/filedialog-current-properties-hint-no-editor Don't store and show current file/directory/path FileDialog properties
| * | Don't store and show current file/directory/path FileDialog propertiesHugo Locurcio2021-10-291-3/+3
| | | | | | | | | | | | | | | These properties are only useful at run-time, so they don't need to be displayed in the editor and stored.
* | | Allow negative indexes in ItemList and PopupMenukobewi2022-03-121-13/+13
| | |
* | | Allow absolute file paths in file dialogsmiremrie2022-03-021-1/+2
| | |
* | | Port existing _notification code to use switch statements (part 1/3)jmb4622022-02-161-37/+49
| | |
* | | Use EditorFileDialog instead of FileDialog in the project managerHendrik Brucker2022-02-121-52/+102
| | |
* | | Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-4/+5
| | |
* | | [Windows] Add support for handling network share paths.bruvzg2022-01-241-4/+12
| | |
* | | Merge pull request #56706 from KoBeWi/we_need_to_go_higherRémi Verschelde2022-01-141-1/+13
|\ \ \
| * | | Automatically go up if current dir was deletedkobewi2022-01-121-1/+13
| | | |
* | | | Create function focus_file_textGer Hean2022-01-121-5/+10
|/ / / | | | | | | | | | | | | This function focuses the text field when saving a file It is called when the save file dialogue is opened
* | | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | | | | | | | | | Happy new year to the wonderful Godot community!
* | | Merge pull request #55487 from YeldhamDev/scroll_bikesheddingRémi Verschelde2022-01-031-1/+1
|\ \ \
| * | | Rename all methods that return `ScrollBar` nodes to `get_*_scroll_bar()`Michael Alexsander2021-11-301-1/+1
| | | |