mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27:35 +00:00
LibGUI: Add PathBreadcrumbbar
This Widget wraps both a Breadcrumbbar and a TextBox for editing the path manually, based heavily on the existing code in FileManager. Breadcrumbbar itself requires outside code to micro-manage what it does. This class provides a simpler interface for it: Users don't have to worry about segments, they just give/receive a string for the current path.
This commit is contained in:
parent
f5cf41eb5d
commit
f0c2dcdbac
5 changed files with 228 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
* Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -40,10 +41,9 @@ public:
|
|||
|
||||
protected:
|
||||
virtual void did_change_font() override;
|
||||
|
||||
private:
|
||||
Breadcrumbbar();
|
||||
|
||||
private:
|
||||
virtual void resize_event(ResizeEvent&) override;
|
||||
|
||||
struct Segment {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue