summaryrefslogtreecommitdiffstats
path: root/scene/gui/file_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change themes *_color_* to *_*_colorMarcel Admiraal2021-01-241-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Changed: font_color_accel -> font_accelerator_color font_color_bg -> font_unselected_color font_color_disabled -> font_disabled_color font_color_fg -> font_selected_color font_color_hover -> font_hover_color font_color_hover_pressed -> font_hover_pressed_color font_color_pressed -> font_pressed_color font_color_readonly -> font_readonly_color font_color_selected -> font_selected_color font_color_shadow -> font_shadow_color font_color_uneditable -> font_uneditable_color icon_color_disabled -> icon_disabled_color icon_color_hover -> icon_hover_color icon_color_hover_pressed -> icon_hover_pressed_color icon_color_normal -> icon_normal_color icon_color_pressed -> icon_pressed_color Also includes: font_outline_modulate -> font_outline_color tab_fg -> tab_selected tab_bg -> tab_unselected
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Merge pull request #44569 from madmiraal/rename-unselect-deselectRémi Verschelde2020-12-281-5/+5
|\ | | | | Rename unselect to deselect
| * Rename unselect to deselectMarcel Admiraal2020-12-211-5/+5
| |
* | Rename empty() to is_empty()Marcel Admiraal2020-12-281-3/+3
|/
* Rename AcceptDialog get_ok() to get_ok_button()Marcel Admiraal2020-12-141-10/+10
| | | | | | Also renames: - AcceptDialog add_cancel() to add_cancel_button() - ConfirmationDiaglog get_cancel() to get_cancel_button()
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-0/+3
| | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Updated getters and setters names for toplevelDuroxxigar2020-10-021-1/+1
|
* Small naming and tooltip tweaksMichael Alexsander2020-07-231-1/+1
|
* Resize dialogs (FileDialog, EditorFileDialog, Reparent, SceneTreeDialog and ↵Stijn Hinlopen2020-07-141-0/+4
| | | | resource depency dialogs).
* Remove String::find_last (same as rfind)Stijn Hinlopen2020-07-031-2/+2
|
* Remove ToolButton in favor of ButtonHugo Locurcio2020-06-191-6/+9
| | | | | | | | | | | ToolButton has no redeeming differences with Button; it's just a Button with the Flat property enabled by default. Removing it avoids some confusion when creating GUIs. Existing ToolButtons will be converted to Buttons, but the Flat property won't be enabled automatically. This closes https://github.com/godotengine/godot-proposals/issues/1081.
* Add generic file icon and its modulation to the 'FileDialog'Michael Alexsander2020-06-081-0/+5
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-32/+61
| | | | | 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/+6
| | | | | | | | | | | | | | | | | | | | | | | 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-78/+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.
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-1/+2
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Merge pull request #37591 from Anutrix/remove_reduntant_classRémi Verschelde2020-04-071-34/+0
|\ | | | | Removed redundant class LineEditFileChooser from file_dialog
| * Removed reduntant class LineEditFileChooser.unknown2020-04-051-34/+0
| |
* | Fixes leaks when running editorqarmin2020-04-061-0/+1
|/
* Fix file dialog not showing iconsunknown2020-04-041-6/+6
|
* Remove redundant vbx variable in FileDialogunknown2020-04-041-16/+15
|
* Replace NULL with nullptrlupoDharkael2020-04-021-6/+6
|
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-18/+18
|
* Working multiple window support, including editorJuan Linietsky2020-03-261-71/+76
|
* Improve UX of drive lettersPedro J. Estébanez2020-03-031-3/+16
| | | | | | | | | | Namely, move the drive dropdown to just the left of the path text box and don't include the former in the latter. This improves the UX on Windows. In the UNIX case, since its concept of drives is (ab)used to provide shortcuts to useful paths, its dropdown is kept at the original location.
* Merge pull request #18020 from bruvzg/input_fix_non_latin_and_add_hw_scancodesRémi Verschelde2020-03-011-1/+1
|\ | | | | Fix non-latin layout scancodes on Linux, adds access to physical scancodes.
| * Rename `scancode` to `keycode`.bruvzg2020-02-251-1/+1
| | | | | | | | | | Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap. Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
* | Double click on a folder didn't open itGil Arasa Verge2020-02-291-0/+1
| | | | | | | | There is a deferred call to _update_file_list inside _tree_item_activated but it was not bound.
* | Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-34/+19
|/ | | | | | | | | 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.)
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-19/+19
| | | | objects and made them default.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-3/+3
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Texture refactorJuan Linietsky2020-02-111-2/+2
| | | | | | | | -Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | 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.
* Add spaces after commas and strip extra ones in *FileDialog filter menuMichael Alexsander2019-12-061-2/+2
|
* Remove extra spaces from parenthesis in *FileDialog's filter menuMichael Alexsander2019-12-061-3/+3
|
* Merge pull request #33091 from MCrafterzz/fix10567Rémi Verschelde2019-10-291-10/+14
|\ | | | | Improved project creation UX
| * Improved UX of selecting directories in (Editor)FileDialog by hiding unused ↵MCrafterzz2019-10-291-10/+14
| | | | | | | | gui elements and moving the drive selection
* | Scroll back to the top after opening a directory in FileDialogHugo Locurcio2019-10-241-0/+4
|/ | | | | | This also changes the behavior in EditorFileDialog. This closes #26041.
* Fix color of FileDialog iconsYuri Roubinsky2019-10-141-6/+23
|
* Fix crash in Control functionsqarmin2019-10-051-0/+2
|
* Tree: fix and expose icon modulationmerumelu2019-08-241-1/+1
|
* Rename FileDialog's folder icon custom color to `folder_icon_modulate`Hugo Locurcio2019-08-211-1/+1
| | | | | | | | The custom color introduced in be8d569744e4eed9acb313d355d96e6989e92087 had the same name as the "folder" icon, which could cause conflicts in the generated documentation. The new name is also more self-explanatory.
* Use a different color for folder icons in file dialogsHugo Locurcio2019-08-201-0/+2
| | | | | | | | | This makes them easier to distinguish from files for quick visual grepping. This can also be used in projects by setting the FileDialog "folder" color. The default value (`Color(1, 1, 1)`) has no visual impact, for compatibility with existing projects.
* Small adjustments to tooltips in '(Editor)FileDialog'Michael Alexsander Silva Dias2019-07-261-2/+2
|
* DirAccess: Drop compat get_next(bool *is_dir) which was hiddenRémi Verschelde2019-07-251-3/+2
| | | | | | | | | Fixes this warning: ``` ./core/os/dir_access.h:74:17: warning: 'virtual String DirAccess::get_next(bool*)' was hidden [-Woverloaded-virtual] ``` Part of #30790.
* Auto-change file extension in EditorFileDialog when filter changesChaosus2019-06-281-0/+14
|
* Some code changed with Clang-Tidyqarmin2019-06-261-5/+2
|
* Add toggle for hidden file visibility in FileDialogMichael Alexsander Silva Dias2019-06-101-8/+15
|