summaryrefslogtreecommitdiffstats
path: root/scene/gui/file_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | [Windows] Add support for handling network share paths.bruvzg2022-01-241-3/+12
| |
* | Fix FileDialog localization issueskobewi2022-01-191-2/+5
| |
* | Create function focus_file_textGer Hean2022-01-121-7/+12
| | | | | | | | | | This function focuses the text field when saving a file It is called when the save file dialogue is opened
* | Improve FileDialog filterskobewi2022-01-081-0/+1
| |
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | | | | | Happy new year to the wonderful Godot community!
* | align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-2/+2
| |
* | Don't return reference on copy assignment operatorsRémi Verschelde2021-11-301-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | We prefer to prevent using chained assignment (`T a = b = c = T();`) as this can lead to confusing code and subtle bugs. According to https://en.wikipedia.org/wiki/Assignment_operator_(C%2B%2B), C++ allows any arbitrary return type, so this is standard compliant. This could be re-assessed if/when we have an actual need for a behavior more akin to that of the C++ STL, for now this PR simply changes a handful of cases which were inconsistent with the rest of the codebase (`void` return type was already the most common case prior to this commit).
* | Use "enum class" for input enumsAaron Franke2021-11-121-3/+3
|/
* clang-format: Disable alignment of operands, too unreliableRémi Verschelde2021-10-281-1/+1
| | | | | | | | | Sets `AlignOperands` to `DontAlign`. `clang-format` developers seem to mostly care about space-based indentation and every other version of clang-format breaks the bad mismatch of tabs and spaces that it seems to use for operand alignment. So it's better without, so that it respects our two-tabs `ContinuationIndentWidth`.
* Add focus font color to Button and derivativesYuri Sizov2021-10-261-0/+6
|
* Add support for internal nodeskobewi2021-08-281-6/+5
|
* Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz2021-08-231-3/+1
| | | | | | | | * `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-1/+1
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-3/+3
|
* Optimize StringName usagereduz2021-07-181-22/+22
| | | | | | | | | | | * Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
* Documentation search fixesGregory Basile2021-06-161-5/+5
| | | | | | Updates rich_text_label so that the built-in documentation can be searched Previously, it would only find the first result and would not select other results Renames "_entered" functions to "_submitted"
* Improve TreeItem API and allow to move nodestrollodel2021-05-171-2/+2
|
* Rename "Control" key to "Ctrl" and add "_pressed" suffix to all ↵Lightning_A2021-05-071-1/+1
| | | | InputEventWithModifiers properties/methods
* Fix crashes in *_input functionsRafał Mikrut2021-04-051-0/+2
|
* FileDialog: add Back/Forward buttons, add message for inaccessible folders.bruvzg2021-03-231-0/+88
|
* Merge pull request #46735 from fabriceci/fix-dialog-translationRémi Verschelde2021-03-231-28/+28
|\ | | | | Fix translations update in window & Dialogs (AcceptDialog/ConfirmationDialog/FileDialog) (Fix 39320, 39258 & 45887)
| * fix translation not updating in ConfirmationDialog (and Window by inheritance)fabriceci2021-03-121-28/+28
| |
* | trims_whitespaces_when_creating_folder_windowsPop0p2021-03-131-2/+2
|/ | | | When creating a Windows folder via a Godot's dialog, the extra spaces are not removed which causes problems with Windows. We now remove leading and trailing whitespace when creating a dir.
* Initialize class variables with default values in scene/ [2/2]Rafał Mikrut2021-02-091-4/+0
|
* 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
|