LibGUI: Make common locations configurable

This commit is contained in:
DexesTTP 2021-04-26 18:18:57 +02:00 committed by Andreas Kling
commit 91c210c39a
Notes: sideshowbarker 2024-07-18 19:03:43 +09:00
6 changed files with 132 additions and 23 deletions

View file

@ -59,12 +59,18 @@ private:
}
}
struct CommonLocationButton {
String path;
Button& button;
};
RefPtr<MultiView> m_view;
NonnullRefPtr<FileSystemModel> m_model;
LexicalPath m_selected_file;
RefPtr<TextBox> m_filename_textbox;
RefPtr<TextBox> m_location_textbox;
Vector<CommonLocationButton> m_common_location_buttons;
RefPtr<Menu> m_context_menu;
Mode m_mode { Mode::Open };
};