mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
SpaceAnalyzer: Extract ProgressWindow into its own class
This commit is contained in:
parent
bcc4e5ee0b
commit
16bbdc812d
4 changed files with 77 additions and 38 deletions
23
Userland/Applications/SpaceAnalyzer/ProgressWindow.h
Normal file
23
Userland/Applications/SpaceAnalyzer/ProgressWindow.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibGUI/Window.h>
|
||||
|
||||
class ProgressWindow final : public GUI::Window {
|
||||
C_OBJECT_ABSTRACT(ProgressWindow)
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<ProgressWindow>> try_create(StringView title, GUI::Window* parent = nullptr);
|
||||
virtual ~ProgressWindow() override;
|
||||
|
||||
void update_progress_label(size_t files_encountered_count);
|
||||
|
||||
private:
|
||||
ProgressWindow(StringView title, GUI::Window* parent = nullptr);
|
||||
|
||||
RefPtr<GUI::Label> m_progress_label;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue