mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-10 13:12:56 +00:00
GFilePicker: Edit file name on opening window
Overlooked that you can't have two GWidgets selected at the same time, whoops!
This commit is contained in:
parent
973c2d9bfd
commit
c869d62e16
Notes:
sideshowbarker
2024-07-19 12:59:24 +09:00
Author: https://github.com/RyanGrieb
Commit: c869d62e16
Pull-request: https://github.com/SerenityOS/serenity/pull/382
2 changed files with 28 additions and 19 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
class GDirectoryModel;
|
||||
class GLabel;
|
||||
class GTextBox;
|
||||
|
||||
class GFilePicker final : public GDialog {
|
||||
C_OBJECT(GFilePicker)
|
||||
|
@ -27,6 +28,7 @@ public:
|
|||
private:
|
||||
void set_preview(const FileSystemPath&);
|
||||
void clear_preview();
|
||||
void on_file_return();
|
||||
|
||||
static String ok_button_name(Mode mode)
|
||||
{
|
||||
|
@ -44,6 +46,7 @@ private:
|
|||
NonnullRefPtr<GDirectoryModel> m_model;
|
||||
FileSystemPath m_selected_file;
|
||||
|
||||
GTextBox* m_filename_textbox { nullptr };
|
||||
GLabel* m_preview_image_label { nullptr };
|
||||
GLabel* m_preview_name_label { nullptr };
|
||||
GLabel* m_preview_geometry_label { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue