mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-24 13:58:00 -05:00
33 lines
1022 B
C++
33 lines
1022 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "LockWindow.hpp"
|
|
|
|
namespace gui
|
|
{
|
|
class PinLockBaseWindow : public LockWindow
|
|
{
|
|
public:
|
|
PinLockBaseWindow(app::Application *app, std::string name) : LockWindow(app, name)
|
|
{}
|
|
|
|
top_bar::Configuration configureTopBar(top_bar::Configuration appConfiguration) override;
|
|
|
|
void buildImages(const std::string &lockImg, const std::string &infoImg);
|
|
[[nodiscard]] auto getToken(Token token) const -> std::string;
|
|
void restore() noexcept override;
|
|
void setImagesVisible(bool lockImg, bool infoImg);
|
|
void setTitleBar(bool isVisible, bool isIceActive);
|
|
|
|
gui::HBox *iceBox = nullptr;
|
|
gui::Image *infoImage = nullptr;
|
|
gui::Image *lockImage = nullptr;
|
|
|
|
private:
|
|
void buildBottomBar() override;
|
|
void buildTitleBar() override;
|
|
};
|
|
} // namespace gui
|