diff options
author | rhin123 <ryanrhin@gmail.com> | 2019-07-29 15:50:06 -0500 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-30 09:19:14 +0200 |
commit | c869d62e168aff3d37f55219c8fa41ecd5625c74 (patch) | |
tree | b1a94f51c76525be24612ce873fbc5d60f5ecd25 /Libraries/LibGUI/GFilePicker.h | |
parent | 973c2d9bfdb16343d2456e71496ade3f647ab936 (diff) | |
download | serenity-c869d62e168aff3d37f55219c8fa41ecd5625c74.zip |
GFilePicker: Edit file name on opening window
Overlooked that you can't have two GWidgets
selected at the same time, whoops!
Diffstat (limited to 'Libraries/LibGUI/GFilePicker.h')
-rw-r--r-- | Libraries/LibGUI/GFilePicker.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Libraries/LibGUI/GFilePicker.h b/Libraries/LibGUI/GFilePicker.h index 1316ccd290..49546c4f61 100644 --- a/Libraries/LibGUI/GFilePicker.h +++ b/Libraries/LibGUI/GFilePicker.h @@ -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 }; |