summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/FilePicker.cpp
AgeCommit message (Collapse)Author
2021-05-20LibGUI: Don't mark "open" FilePicker as done if the file is not foundAndreas Kling
If you type in a filename that doesn't exist, show an error message instead of closing the FilePicker "successfully."
2021-05-20LibGUI: Make GUI::FilePicker handle absolute paths betterAndreas Kling
Some people apparently like to type in full absolute paths into the filename box of GUI::FilePicker. So let's handle that as you'd expect by using the full path as the selected path.
2021-05-20LibGUI: Tweak API for getting the selected pathAndreas Kling
Return a String instead of a LexicalPath. Also call it a path instead of a file since that's what we're really returning.
2021-04-29Everywhere: "file name" => "filename"Andreas Kling
2021-04-26LibGUI: Make common locations configurableDexesTTP
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-13Everywhere: It's now "Foobar", not "FooBar", and not "foo bar"Andreas Kling
I hereby declare these to be full nouns that we don't split, neither by space, nor by underscore: - Breadcrumbbar - Coolbar - Menubar - Progressbar - Scrollbar - Statusbar - Taskbar - Toolbar This patch makes everything consistent by replacing every other variant of these with the proper one. :^)
2021-04-13LibGUI+HackStudio: Add way to tell FilePicker to open a folderFalseHonesty
This now means that when trying to open a folder, one can click on the folder and press open instead of having to actually step into the desired folder. Of course, it also means it won't let you open non-directories anymore.
2021-04-09LibGUI: Allow navigating into symlinked directories in FilePickerAndreas Kling
If you double-click on a symlink to a directory while browsing with a FilePicker, you most likely want to open the directory the symlink points to, not open the symlink itself. So let's do that. :^)
2021-04-09LibGUI: Use "Tray" look & feel for the common locations frame :^)Andreas Kling
2021-04-06LibGUI:: Let open/save specify starting directory in FilePickerthankyouverycool
2021-04-06LibGUI: Tweak order of common location buttons in FilePickerAndreas Kling
Let's put the root directory up top so the buttons are in order of directory specificity.
2021-04-06LibGUI: Make FilePicker's common location buttons checkableAndreas Kling
We now use the checked state of these buttons to indicate that you are in that specific folder. The checked state is updated automagically no matter how you navigate the file system. :^)
2021-04-06LibGUI: Add shortcuts to common locations in GUI::FilePickerAndreas Kling
This patch adds a handy set of buttons on the left hand side that can take you to common locations such as: - Your home directory - Your desktop directory - The root directory
2021-04-05LibGUI: Do AbstractView::set_column_hidden() => set_column_visible()Andreas Kling
This API felt backwards, so let's change it.
2021-03-29LibGUI: Add transient option to show dotfiles in FilePickerTimothy Flynn
This is particularly useful when wanting to open files in ~/.config from the Text Editor. The option is currently not persistent, but could be hooked into File Manager's configuration.
2021-02-23Everywhere: Rename ASSERT => VERIFYAndreas Kling
(...and ASSERT_NOT_REACHED => VERIFY_NOT_REACHED) Since all of these checks are done in release builds as well, let's rename them to VERIFY to prevent confusion, as everyone is used to assertions being compiled out in release. We can introduce a new ASSERT macro that is specifically for debug checks, but I'm doing this wholesale conversion first since we've accumulated thousands of these already, and it's not immediately obvious which ones are suitable for ASSERT.
2021-02-20LibGUI: Parent FilePicker toolbar buttons to the windowAndreas Kling
This makes the shortcuts actually work since unparented actions are considered application-global, and we disable application-global shortcuts while a modal dialog (like FilePicker) is up. This is pretty counter-intuitive so I think there's room for API improvement here but let's at least make Alt+Up work in FilePicker for now. :^)
2021-02-20LibGUI: Swap order of InputBox value and parent window argsLinus Groh
This is now consistent with the other dialog classes.
2021-02-19LibGUI: Remove GUI::FilePicker::file_exists()Andreas Kling
I have no idea why this existed but everyone should just use Core::File::exists() instead. :^)
2021-02-19LibGUI: Port GUI::FilePicker to GML and improve the layoutAndreas Kling
Also remove the image preview feature as it was rather ugly. If we bring it back we should it should look good.
2021-01-26LibGUI: Switch cancel/confirm button order on file picker dialogNico Weber
Most (all?) other dialogs in the system have the cancel button on the right, so make the file picker consistent with the rest.
2021-01-26LibGUI: Tweak "Overwrite file?" dialog text to use one sentence per sentenceNico Weber
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling